From 5286df03a6a6ef03d96f3c9dc075e42eead69bcf Mon Sep 17 00:00:00 2001 From: Sentio Bot Date: Fri, 29 Nov 2024 09:26:49 +0000 Subject: [PATCH] chore: update --- doc/index.html | 130 +++++++++--------- openapi.json | 6 +- ...ertServiceAlertServiceSaveAlertRuleBody.ts | 6 +- ...rviceAlertServiceSaveAlertRuleBodyRule.ts} | 4 +- src/models/ObjectSerializer.ts | 6 +- src/models/all.ts | 2 +- src/types/ObjectParamAPI.ts | 2 +- src/types/ObservableAPI.ts | 2 +- src/types/PromiseAPI.ts | 2 +- 9 files changed, 78 insertions(+), 82 deletions(-) rename src/models/{MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.ts => AlertServiceAlertServiceSaveAlertRuleBodyRule.ts} (96%) diff --git a/doc/index.html b/doc/index.html index 2faeb1a..37fb00f 100755 --- a/doc/index.html +++ b/doc/index.html @@ -919,7 +919,6 @@ } }; defs["alert_service.AlertRule"] = { - "title" : "maybe need to extract to common so it could used by web as well", "type" : "object", "properties" : { "id" : { @@ -994,7 +993,70 @@ "type" : "object", "properties" : { "rule" : { - "$ref" : "#/components/schemas/maybe_need_to_extract_to_common_so_it_could_used_by_web_as_well" + "$ref" : "#/components/schemas/alert_service_AlertService_SaveAlertRuleBody_rule" + } + } +}; + defs["alert_service_AlertService_SaveAlertRuleBody_rule"] = { + "type" : "object", + "properties" : { + "projectId" : { + "title" : "project it belongs to", + "type" : "string" + }, + "state" : { + "$ref" : "#/components/schemas/alert_service.AlertRule.State" + }, + "subject" : { + "type" : "string" + }, + "message" : { + "type" : "string" + }, + "group" : { + "type" : "string" + }, + "query" : { + "type" : "string" + }, + "for" : { + "$ref" : "#/components/schemas/common.Duration" + }, + "channels" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/common.Channel" + } + }, + "updateTime" : { + "type" : "string", + "format" : "date-time" + }, + "condition" : { + "$ref" : "#/components/schemas/alert_service.Condition" + }, + "renotifyDuration" : { + "$ref" : "#/components/schemas/common.Duration" + }, + "renotifyLimit" : { + "type" : "integer", + "format" : "int32" + }, + "alertType" : { + "$ref" : "#/components/schemas/alert_service.AlertType" + }, + "logCondition" : { + "$ref" : "#/components/schemas/alert_service.LogCondition" + }, + "lastQueryTime" : { + "type" : "string", + "format" : "date-time" + }, + "mute" : { + "type" : "boolean" + }, + "interval" : { + "$ref" : "#/components/schemas/common.Duration" } } }; @@ -3385,70 +3447,6 @@ "type" : "string" } } -}; - defs["maybe_need_to_extract_to_common_so_it_could_used_by_web_as_well"] = { - "title" : "maybe need to extract to common so it could used by web as well", - "type" : "object", - "properties" : { - "projectId" : { - "title" : "project it belongs to", - "type" : "string" - }, - "state" : { - "$ref" : "#/components/schemas/alert_service.AlertRule.State" - }, - "subject" : { - "type" : "string" - }, - "message" : { - "type" : "string" - }, - "group" : { - "type" : "string" - }, - "query" : { - "type" : "string" - }, - "for" : { - "$ref" : "#/components/schemas/common.Duration" - }, - "channels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/common.Channel" - } - }, - "updateTime" : { - "type" : "string", - "format" : "date-time" - }, - "condition" : { - "$ref" : "#/components/schemas/alert_service.Condition" - }, - "renotifyDuration" : { - "$ref" : "#/components/schemas/common.Duration" - }, - "renotifyLimit" : { - "type" : "integer", - "format" : "int32" - }, - "alertType" : { - "$ref" : "#/components/schemas/alert_service.AlertType" - }, - "logCondition" : { - "$ref" : "#/components/schemas/alert_service.LogCondition" - }, - "lastQueryTime" : { - "type" : "string", - "format" : "date-time" - }, - "mute" : { - "type" : "boolean" - }, - "interval" : { - "$ref" : "#/components/schemas/common.Duration" - } - } }; defs["metrics_service.GetMetricsResponse"] = { "type" : "object", diff --git a/openapi.json b/openapi.json index cf977f9..4a26813 100644 --- a/openapi.json +++ b/openapi.json @@ -2684,8 +2684,7 @@ "interval": { "$ref": "#/definitions/common.Duration" } - }, - "title": "maybe need to extract to common so it could used by web as well" + } }, "alert_service.AlertRule.State": { "type": "string", @@ -2761,8 +2760,7 @@ "interval": { "$ref": "#/definitions/common.Duration" } - }, - "title": "maybe need to extract to common so it could used by web as well" + } } } }, diff --git a/src/models/AlertServiceAlertServiceSaveAlertRuleBody.ts b/src/models/AlertServiceAlertServiceSaveAlertRuleBody.ts index c8d8db1..bc27367 100755 --- a/src/models/AlertServiceAlertServiceSaveAlertRuleBody.ts +++ b/src/models/AlertServiceAlertServiceSaveAlertRuleBody.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell } from '../models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.js'; +import { AlertServiceAlertServiceSaveAlertRuleBodyRule } from '../models/AlertServiceAlertServiceSaveAlertRuleBodyRule.js'; import { HttpFile } from '../http/http.js'; export class AlertServiceAlertServiceSaveAlertRuleBody { - 'rule'?: MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell; + 'rule'?: AlertServiceAlertServiceSaveAlertRuleBodyRule; static readonly discriminator: string | undefined = undefined; @@ -24,7 +24,7 @@ export class AlertServiceAlertServiceSaveAlertRuleBody { { "name": "rule", "baseName": "rule", - "type": "MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell", + "type": "AlertServiceAlertServiceSaveAlertRuleBodyRule", "format": "" } ]; diff --git a/src/models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.ts b/src/models/AlertServiceAlertServiceSaveAlertRuleBodyRule.ts similarity index 96% rename from src/models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.ts rename to src/models/AlertServiceAlertServiceSaveAlertRuleBodyRule.ts index 7e61e93..523f8ba 100755 --- a/src/models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.ts +++ b/src/models/AlertServiceAlertServiceSaveAlertRuleBodyRule.ts @@ -18,7 +18,7 @@ import { CommonChannel } from '../models/CommonChannel.js'; import { CommonDuration } from '../models/CommonDuration.js'; import { HttpFile } from '../http/http.js'; -export class MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell { +export class AlertServiceAlertServiceSaveAlertRuleBodyRule { 'projectId'?: string; 'state'?: AlertServiceAlertRuleState; 'subject'?: string; @@ -146,7 +146,7 @@ export class MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell { } ]; static getAttributeTypeMap() { - return MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.attributeTypeMap; + return AlertServiceAlertServiceSaveAlertRuleBodyRule.attributeTypeMap; } public constructor() { diff --git a/src/models/ObjectSerializer.ts b/src/models/ObjectSerializer.ts index d2f4a4b..b37b508 100755 --- a/src/models/ObjectSerializer.ts +++ b/src/models/ObjectSerializer.ts @@ -3,6 +3,7 @@ export * from '../models/AlertServiceAlertAlertState.js'; export * from '../models/AlertServiceAlertRule.js'; export * from '../models/AlertServiceAlertRuleState.js'; export * from '../models/AlertServiceAlertServiceSaveAlertRuleBody.js'; +export * from '../models/AlertServiceAlertServiceSaveAlertRuleBodyRule.js'; export * from '../models/AlertServiceAlertType.js'; export * from '../models/AlertServiceCondition.js'; export * from '../models/AlertServiceConditionInsightQuery.js'; @@ -131,7 +132,6 @@ export * from '../models/InsightsServiceQueryResponse.js'; export * from '../models/InsightsServiceQueryResponseResult.js'; export * from '../models/InsightsServiceRetentionRequest.js'; export * from '../models/InsightsServiceRetentionResponse.js'; -export * from '../models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.js'; export * from '../models/MetricsServiceGetMetricsResponse.js'; export * from '../models/MetricsServiceMetricInfo.js'; export * from '../models/MetricsServiceMetricInfoLabelValues.js'; @@ -263,6 +263,7 @@ import { AlertServiceAlertAlertState } from '../models/AlertServiceAler import { AlertServiceAlertRule } from '../models/AlertServiceAlertRule.js'; import { AlertServiceAlertRuleState } from '../models/AlertServiceAlertRuleState.js'; import { AlertServiceAlertServiceSaveAlertRuleBody } from '../models/AlertServiceAlertServiceSaveAlertRuleBody.js'; +import { AlertServiceAlertServiceSaveAlertRuleBodyRule } from '../models/AlertServiceAlertServiceSaveAlertRuleBodyRule.js'; import { AlertServiceAlertType } from '../models/AlertServiceAlertType.js'; import { AlertServiceCondition } from '../models/AlertServiceCondition.js'; import { AlertServiceConditionInsightQuery } from '../models/AlertServiceConditionInsightQuery.js'; @@ -391,7 +392,6 @@ import { InsightsServiceQueryResponse } from '../models/InsightsServiceQueryResp import { InsightsServiceQueryResponseResult } from '../models/InsightsServiceQueryResponseResult.js'; import { InsightsServiceRetentionRequest } from '../models/InsightsServiceRetentionRequest.js'; import { InsightsServiceRetentionResponse } from '../models/InsightsServiceRetentionResponse.js'; -import { MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell } from '../models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.js'; import { MetricsServiceGetMetricsResponse } from '../models/MetricsServiceGetMetricsResponse.js'; import { MetricsServiceMetricInfo } from '../models/MetricsServiceMetricInfo.js'; import { MetricsServiceMetricInfoLabelValues } from '../models/MetricsServiceMetricInfoLabelValues.js'; @@ -579,6 +579,7 @@ let typeMap: {[index: string]: any} = { "AlertServiceAlertAlertState": AlertServiceAlertAlertState, "AlertServiceAlertRule": AlertServiceAlertRule, "AlertServiceAlertServiceSaveAlertRuleBody": AlertServiceAlertServiceSaveAlertRuleBody, + "AlertServiceAlertServiceSaveAlertRuleBodyRule": AlertServiceAlertServiceSaveAlertRuleBodyRule, "AlertServiceCondition": AlertServiceCondition, "AlertServiceConditionInsightQuery": AlertServiceConditionInsightQuery, "AlertServiceGetAlertResponse": AlertServiceGetAlertResponse, @@ -683,7 +684,6 @@ let typeMap: {[index: string]: any} = { "InsightsServiceQueryResponseResult": InsightsServiceQueryResponseResult, "InsightsServiceRetentionRequest": InsightsServiceRetentionRequest, "InsightsServiceRetentionResponse": InsightsServiceRetentionResponse, - "MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell": MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell, "MetricsServiceGetMetricsResponse": MetricsServiceGetMetricsResponse, "MetricsServiceMetricInfo": MetricsServiceMetricInfo, "MetricsServiceMetricInfoLabelValues": MetricsServiceMetricInfoLabelValues, diff --git a/src/models/all.ts b/src/models/all.ts index 62ac5b3..4b3d1b8 100755 --- a/src/models/all.ts +++ b/src/models/all.ts @@ -3,6 +3,7 @@ export * from '../models/AlertServiceAlertAlertState.js' export * from '../models/AlertServiceAlertRule.js' export * from '../models/AlertServiceAlertRuleState.js' export * from '../models/AlertServiceAlertServiceSaveAlertRuleBody.js' +export * from '../models/AlertServiceAlertServiceSaveAlertRuleBodyRule.js' export * from '../models/AlertServiceAlertType.js' export * from '../models/AlertServiceCondition.js' export * from '../models/AlertServiceConditionInsightQuery.js' @@ -131,7 +132,6 @@ export * from '../models/InsightsServiceQueryResponse.js' export * from '../models/InsightsServiceQueryResponseResult.js' export * from '../models/InsightsServiceRetentionRequest.js' export * from '../models/InsightsServiceRetentionResponse.js' -export * from '../models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.js' export * from '../models/MetricsServiceGetMetricsResponse.js' export * from '../models/MetricsServiceMetricInfo.js' export * from '../models/MetricsServiceMetricInfoLabelValues.js' diff --git a/src/types/ObjectParamAPI.ts b/src/types/ObjectParamAPI.ts index 58951e8..51dc265 100755 --- a/src/types/ObjectParamAPI.ts +++ b/src/types/ObjectParamAPI.ts @@ -6,6 +6,7 @@ import { AlertServiceAlertAlertState } from '../models/AlertServiceAlertAlertSta import { AlertServiceAlertRule } from '../models/AlertServiceAlertRule.js'; import { AlertServiceAlertRuleState } from '../models/AlertServiceAlertRuleState.js'; import { AlertServiceAlertServiceSaveAlertRuleBody } from '../models/AlertServiceAlertServiceSaveAlertRuleBody.js'; +import { AlertServiceAlertServiceSaveAlertRuleBodyRule } from '../models/AlertServiceAlertServiceSaveAlertRuleBodyRule.js'; import { AlertServiceAlertType } from '../models/AlertServiceAlertType.js'; import { AlertServiceCondition } from '../models/AlertServiceCondition.js'; import { AlertServiceConditionInsightQuery } from '../models/AlertServiceConditionInsightQuery.js'; @@ -134,7 +135,6 @@ import { InsightsServiceQueryResponse } from '../models/InsightsServiceQueryResp import { InsightsServiceQueryResponseResult } from '../models/InsightsServiceQueryResponseResult.js'; import { InsightsServiceRetentionRequest } from '../models/InsightsServiceRetentionRequest.js'; import { InsightsServiceRetentionResponse } from '../models/InsightsServiceRetentionResponse.js'; -import { MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell } from '../models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.js'; import { MetricsServiceGetMetricsResponse } from '../models/MetricsServiceGetMetricsResponse.js'; import { MetricsServiceMetricInfo } from '../models/MetricsServiceMetricInfo.js'; import { MetricsServiceMetricInfoLabelValues } from '../models/MetricsServiceMetricInfoLabelValues.js'; diff --git a/src/types/ObservableAPI.ts b/src/types/ObservableAPI.ts index 0bd5d88..6d12a72 100755 --- a/src/types/ObservableAPI.ts +++ b/src/types/ObservableAPI.ts @@ -7,6 +7,7 @@ import { AlertServiceAlertAlertState } from '../models/AlertServiceAlertAlertSta import { AlertServiceAlertRule } from '../models/AlertServiceAlertRule.js'; import { AlertServiceAlertRuleState } from '../models/AlertServiceAlertRuleState.js'; import { AlertServiceAlertServiceSaveAlertRuleBody } from '../models/AlertServiceAlertServiceSaveAlertRuleBody.js'; +import { AlertServiceAlertServiceSaveAlertRuleBodyRule } from '../models/AlertServiceAlertServiceSaveAlertRuleBodyRule.js'; import { AlertServiceAlertType } from '../models/AlertServiceAlertType.js'; import { AlertServiceCondition } from '../models/AlertServiceCondition.js'; import { AlertServiceConditionInsightQuery } from '../models/AlertServiceConditionInsightQuery.js'; @@ -135,7 +136,6 @@ import { InsightsServiceQueryResponse } from '../models/InsightsServiceQueryResp import { InsightsServiceQueryResponseResult } from '../models/InsightsServiceQueryResponseResult.js'; import { InsightsServiceRetentionRequest } from '../models/InsightsServiceRetentionRequest.js'; import { InsightsServiceRetentionResponse } from '../models/InsightsServiceRetentionResponse.js'; -import { MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell } from '../models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.js'; import { MetricsServiceGetMetricsResponse } from '../models/MetricsServiceGetMetricsResponse.js'; import { MetricsServiceMetricInfo } from '../models/MetricsServiceMetricInfo.js'; import { MetricsServiceMetricInfoLabelValues } from '../models/MetricsServiceMetricInfoLabelValues.js'; diff --git a/src/types/PromiseAPI.ts b/src/types/PromiseAPI.ts index ca5dec2..33607b1 100755 --- a/src/types/PromiseAPI.ts +++ b/src/types/PromiseAPI.ts @@ -6,6 +6,7 @@ import { AlertServiceAlertAlertState } from '../models/AlertServiceAlertAlertSta import { AlertServiceAlertRule } from '../models/AlertServiceAlertRule.js'; import { AlertServiceAlertRuleState } from '../models/AlertServiceAlertRuleState.js'; import { AlertServiceAlertServiceSaveAlertRuleBody } from '../models/AlertServiceAlertServiceSaveAlertRuleBody.js'; +import { AlertServiceAlertServiceSaveAlertRuleBodyRule } from '../models/AlertServiceAlertServiceSaveAlertRuleBodyRule.js'; import { AlertServiceAlertType } from '../models/AlertServiceAlertType.js'; import { AlertServiceCondition } from '../models/AlertServiceCondition.js'; import { AlertServiceConditionInsightQuery } from '../models/AlertServiceConditionInsightQuery.js'; @@ -134,7 +135,6 @@ import { InsightsServiceQueryResponse } from '../models/InsightsServiceQueryResp import { InsightsServiceQueryResponseResult } from '../models/InsightsServiceQueryResponseResult.js'; import { InsightsServiceRetentionRequest } from '../models/InsightsServiceRetentionRequest.js'; import { InsightsServiceRetentionResponse } from '../models/InsightsServiceRetentionResponse.js'; -import { MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell } from '../models/MaybeNeedToExtractToCommonSoItCouldUsedByWebAsWell.js'; import { MetricsServiceGetMetricsResponse } from '../models/MetricsServiceGetMetricsResponse.js'; import { MetricsServiceMetricInfo } from '../models/MetricsServiceMetricInfo.js'; import { MetricsServiceMetricInfoLabelValues } from '../models/MetricsServiceMetricInfoLabelValues.js';