@leaflow/sdk 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1008,8 +1008,12 @@ export interface components {
1008
1008
  /** Format: date-time */
1009
1009
  resolved_at: string | null;
1010
1010
  resolved_trigger_expression: string;
1011
- /** Format: uuid */
1012
- server_id: string;
1011
+ /**
1012
+ * Format: uuid
1013
+ * @description The machine this alert is about. Null when the alert is not about a machine
1014
+ */
1015
+ server_id: string | null;
1016
+ /** @description Empty when server_id is null */
1013
1017
  server_name: string;
1014
1018
  /** @enum {string} */
1015
1019
  severity: "NOT_CLASSIFIED" | "INFORMATION" | "WARNING" | "AVERAGE" | "HIGH" | "DISASTER";
@@ -1017,6 +1021,11 @@ export interface components {
1017
1021
  started_at: string;
1018
1022
  tags: components["schemas"]["TagResource"][] | null;
1019
1023
  trigger_expression: string;
1024
+ /**
1025
+ * Format: uuid
1026
+ * @description The web check that reported this alert. Null when the alert did not come from a web check. Both this and server_id are set when the check runs on one of your machines
1027
+ */
1028
+ web_check_id: string | null;
1020
1029
  zabbix_event_id: string;
1021
1030
  };
1022
1031
  LengthAwarePageIncidentResource: {
@@ -1973,6 +1982,8 @@ export interface operations {
1973
1982
  offset?: number;
1974
1983
  /** @description Restrict to a single machine */
1975
1984
  server_id?: string;
1985
+ /** @description Restrict to a single web check */
1986
+ web_check_id?: string;
1976
1987
  incident_status?: "PROBLEM" | "RESOLVED";
1977
1988
  /** @description Matches at or above this severity, not exactly this severity */
1978
1989
  min_severity?: "NOT_CLASSIFIED" | "INFORMATION" | "WARNING" | "AVERAGE" | "HIGH" | "DISASTER";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {