From 8e04e38ed5f20072654d7f9492d5d35399cf88b1 Mon Sep 17 00:00:00 2001 From: Sentio Bot Date: Fri, 22 Nov 2024 14:34:37 +0000 Subject: [PATCH] chore: update --- doc/index.html | 10 ++++++++-- openapi.json | 2 ++ src/AlertsApi.md | 4 ++-- src/apis/AlertsApi.ts | 2 ++ src/types/ObjectParamAPI.ts | 4 ++++ src/types/ObservableAPI.ts | 4 ++++ src/types/PromiseAPI.ts | 4 ++++ 7 files changed, 26 insertions(+), 4 deletions(-) diff --git a/doc/index.html b/doc/index.html index 23bc543..d845cd8 100755 --- a/doc/index.html +++ b/doc/index.html @@ -6474,7 +6474,7 @@

saveAlertRule

-

+

Save an alert rule

@@ -6599,6 +6599,7 @@

Usage and SDK Samples

AlertsApi *apiInstance = [[AlertsApi alloc] init]; AlertServiceSaveAlertRuleRequest *body = ; // +// Save an alert rule [apiInstance saveAlertRuleWith:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -6662,6 +6663,7 @@

Usage and SDK Samples

var body = new AlertServiceSaveAlertRuleRequest(); // AlertServiceSaveAlertRuleRequest | try { + // Save an alert rule Object result = apiInstance.saveAlertRule(body); Debug.WriteLine(result); } catch (Exception e) { @@ -6735,6 +6737,7 @@

Usage and SDK Samples

body = # AlertServiceSaveAlertRuleRequest | try: + # Save an alert rule api_response = api_instance.save_alert_rule(body) pprint(api_response) except ApiException as e: @@ -6900,7 +6903,7 @@

saveAlertRule2

-

+

Save an alert rule

@@ -7029,6 +7032,7 @@

Usage and SDK Samples

String *id = id_example; // (default to null) AlertServiceAlertServiceSaveAlertRuleBody *body = ; // +// Save an alert rule [apiInstance saveAlertRule2With:id body:body completionHandler: ^(Object output, NSError* error) { @@ -7095,6 +7099,7 @@

Usage and SDK Samples

var body = new AlertServiceAlertServiceSaveAlertRuleBody(); // AlertServiceAlertServiceSaveAlertRuleBody | try { + // Save an alert rule Object result = apiInstance.saveAlertRule2(id, body); Debug.WriteLine(result); } catch (Exception e) { @@ -7171,6 +7176,7 @@

Usage and SDK Samples

body = # AlertServiceAlertServiceSaveAlertRuleBody | try: + # Save an alert rule api_response = api_instance.save_alert_rule2(id, body) pprint(api_response) except ApiException as e: diff --git a/openapi.json b/openapi.json index fdc08d0..c373a2b 100644 --- a/openapi.json +++ b/openapi.json @@ -18,6 +18,7 @@ "paths": { "/api/v1/alerts/rule": { "post": { + "summary": "Save an alert rule", "operationId": "SaveAlertRule", "responses": { "200": { @@ -70,6 +71,7 @@ }, "/api/v1/alerts/rule/{id}": { "put": { + "summary": "Save an alert rule", "operationId": "SaveAlertRule2", "responses": { "200": { diff --git a/src/AlertsApi.md b/src/AlertsApi.md index 884eca2..43e26eb 100755 --- a/src/AlertsApi.md +++ b/src/AlertsApi.md @@ -6,8 +6,8 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**getAlert**](AlertsApi.md#getAlert) | **GET** /api/v1/alerts/{ruleId} | Find an alert rule by id, and list all alerts for this rule [**getAlertRules**](AlertsApi.md#getAlertRules) | **GET** /api/v1/alerts/rule/project/{projectId} | List all alert rules for a project -[**saveAlertRule**](AlertsApi.md#saveAlertRule) | **POST** /api/v1/alerts/rule | -[**saveAlertRule2**](AlertsApi.md#saveAlertRule2) | **PUT** /api/v1/alerts/rule/{id} | +[**saveAlertRule**](AlertsApi.md#saveAlertRule) | **POST** /api/v1/alerts/rule | Save an alert rule +[**saveAlertRule2**](AlertsApi.md#saveAlertRule2) | **PUT** /api/v1/alerts/rule/{id} | Save an alert rule # **getAlert** diff --git a/src/apis/AlertsApi.ts b/src/apis/AlertsApi.ts index 887010d..1f36814 100755 --- a/src/apis/AlertsApi.ts +++ b/src/apis/AlertsApi.ts @@ -107,6 +107,7 @@ export class AlertsApiRequestFactory extends BaseAPIRequestFactory { } /** + * Save an alert rule * @param body */ public async saveAlertRule(body: AlertServiceSaveAlertRuleRequest, _options?: Configuration): Promise { @@ -153,6 +154,7 @@ export class AlertsApiRequestFactory extends BaseAPIRequestFactory { } /** + * Save an alert rule * @param id * @param body */ diff --git a/src/types/ObjectParamAPI.ts b/src/types/ObjectParamAPI.ts index 87c3d7b..25cdf66 100755 --- a/src/types/ObjectParamAPI.ts +++ b/src/types/ObjectParamAPI.ts @@ -352,6 +352,7 @@ export class ObjectAlertsApi { } /** + * Save an alert rule * @param param the request object */ public saveAlertRuleWithHttpInfo(param: AlertsApiSaveAlertRuleRequest, options?: Configuration): Promise> { @@ -359,6 +360,7 @@ export class ObjectAlertsApi { } /** + * Save an alert rule * @param param the request object */ public saveAlertRule(param: AlertsApiSaveAlertRuleRequest, options?: Configuration): Promise { @@ -366,6 +368,7 @@ export class ObjectAlertsApi { } /** + * Save an alert rule * @param param the request object */ public saveAlertRule2WithHttpInfo(param: AlertsApiSaveAlertRule2Request, options?: Configuration): Promise> { @@ -373,6 +376,7 @@ export class ObjectAlertsApi { } /** + * Save an alert rule * @param param the request object */ public saveAlertRule2(param: AlertsApiSaveAlertRule2Request, options?: Configuration): Promise { diff --git a/src/types/ObservableAPI.ts b/src/types/ObservableAPI.ts index 69b9e63..506c419 100755 --- a/src/types/ObservableAPI.ts +++ b/src/types/ObservableAPI.ts @@ -334,6 +334,7 @@ export class ObservableAlertsApi { } /** + * Save an alert rule * @param body */ public saveAlertRuleWithHttpInfo(body: AlertServiceSaveAlertRuleRequest, _options?: Configuration): Observable> { @@ -356,6 +357,7 @@ export class ObservableAlertsApi { } /** + * Save an alert rule * @param body */ public saveAlertRule(body: AlertServiceSaveAlertRuleRequest, _options?: Configuration): Observable { @@ -363,6 +365,7 @@ export class ObservableAlertsApi { } /** + * Save an alert rule * @param id * @param body */ @@ -386,6 +389,7 @@ export class ObservableAlertsApi { } /** + * Save an alert rule * @param id * @param body */ diff --git a/src/types/PromiseAPI.ts b/src/types/PromiseAPI.ts index 1d87943..a1e59c5 100755 --- a/src/types/PromiseAPI.ts +++ b/src/types/PromiseAPI.ts @@ -304,6 +304,7 @@ export class PromiseAlertsApi { } /** + * Save an alert rule * @param body */ public saveAlertRuleWithHttpInfo(body: AlertServiceSaveAlertRuleRequest, _options?: Configuration): Promise> { @@ -312,6 +313,7 @@ export class PromiseAlertsApi { } /** + * Save an alert rule * @param body */ public saveAlertRule(body: AlertServiceSaveAlertRuleRequest, _options?: Configuration): Promise { @@ -320,6 +322,7 @@ export class PromiseAlertsApi { } /** + * Save an alert rule * @param id * @param body */ @@ -329,6 +332,7 @@ export class PromiseAlertsApi { } /** + * Save an alert rule * @param id * @param body */