kb-cloud-client-typescript 2.3.50 → 2.3.52
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.
- package/dist/adminapi/apis/aiagent-api.d.ts +6 -6
- package/dist/adminapi/apis/aiagent-api.js +4 -4
- package/dist/adminapi/apis/alert-rule-api.d.ts +223 -0
- package/dist/adminapi/apis/alert-rule-api.d.ts.map +1 -1
- package/dist/adminapi/apis/alert-rule-api.js +241 -0
- package/dist/adminapi/apis/alert-rule-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +222 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +241 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/ai-agent-turn-action-list.d.ts +12 -0
- package/dist/adminapi/models/ai-agent-turn-action-list.d.ts.map +1 -1
- package/dist/adminapi/models/alert-resource-type.d.ts +22 -0
- package/dist/adminapi/models/alert-resource-type.d.ts.map +1 -0
- package/dist/adminapi/models/alert-resource-type.js +26 -0
- package/dist/adminapi/models/alert-resource-type.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/openapi/apis/aiagent-api.d.ts +6 -6
- package/dist/openapi/apis/aiagent-api.js +4 -4
- package/dist/openapi/apis/alert-rule-api.d.ts +223 -0
- package/dist/openapi/apis/alert-rule-api.d.ts.map +1 -1
- package/dist/openapi/apis/alert-rule-api.js +241 -0
- package/dist/openapi/apis/alert-rule-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +222 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +241 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/ai-agent-turn-action-list.d.ts +12 -0
- package/dist/openapi/models/ai-agent-turn-action-list.d.ts.map +1 -1
- package/dist/openapi/models/alert-resource-type.d.ts +22 -0
- package/dist/openapi/models/alert-resource-type.d.ts.map +1 -0
- package/dist/openapi/models/alert-resource-type.js +26 -0
- package/dist/openapi/models/alert-resource-type.js.map +1 -0
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/aiagent-api.ts +6 -6
- package/src/adminapi/apis/alert-rule-api.ts +388 -0
- package/src/adminapi/apis/shared-api.ts +386 -0
- package/src/adminapi/models/ai-agent-turn-action-list.ts +12 -0
- package/src/adminapi/models/alert-resource-type.ts +31 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi.yaml +131 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/aiagent-api.ts +6 -6
- package/src/openapi/apis/alert-rule-api.ts +388 -0
- package/src/openapi/apis/shared-api.ts +386 -0
- package/src/openapi/models/ai-agent-turn-action-list.ts +12 -0
- package/src/openapi/models/alert-resource-type.ts +31 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi.yaml +131 -0
|
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { APIErrorResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { AlertCluster } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { AlertResourceType } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
27
31
|
import type { AlertRule } from '../models';
|
|
28
32
|
// @ts-ignore
|
|
29
33
|
import type { AlertRuleList } from '../models';
|
|
@@ -162,6 +166,55 @@ export const AlertRuleApiAxiosParamCreator = function (configuration?: Configura
|
|
|
162
166
|
|
|
163
167
|
|
|
164
168
|
|
|
169
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
url: toPathString(localVarUrlObj),
|
|
175
|
+
options: localVarRequestOptions,
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @summary Get resource alert settings
|
|
181
|
+
* @param {string} orgName name of the Org
|
|
182
|
+
* @param {AlertResourceType} resourceType resourceType
|
|
183
|
+
* @param {string} resourceID
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
getResourceAlertDisabled: async (orgName: string, resourceType: AlertResourceType, resourceID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
188
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
189
|
+
assertParamExists('getResourceAlertDisabled', 'orgName', orgName)
|
|
190
|
+
// verify required parameter 'resourceType' is not null or undefined
|
|
191
|
+
assertParamExists('getResourceAlertDisabled', 'resourceType', resourceType)
|
|
192
|
+
// verify required parameter 'resourceID' is not null or undefined
|
|
193
|
+
assertParamExists('getResourceAlertDisabled', 'resourceID', resourceID)
|
|
194
|
+
const localVarPath = `/api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}`
|
|
195
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
196
|
+
.replace(`{${"resourceType"}}`, encodeURIComponent(String(resourceType)))
|
|
197
|
+
.replace(`{${"resourceID"}}`, encodeURIComponent(String(resourceID)));
|
|
198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
200
|
+
let baseOptions;
|
|
201
|
+
if (configuration) {
|
|
202
|
+
baseOptions = configuration.baseOptions;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
206
|
+
const localVarHeaderParameter = {} as any;
|
|
207
|
+
const localVarQueryParameter = {} as any;
|
|
208
|
+
|
|
209
|
+
// authentication BearerToken required
|
|
210
|
+
// http bearer authentication required
|
|
211
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
212
|
+
|
|
213
|
+
// authentication DigestAuth required
|
|
214
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
165
218
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
166
219
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
220
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -208,6 +261,55 @@ export const AlertRuleApiAxiosParamCreator = function (configuration?: Configura
|
|
|
208
261
|
|
|
209
262
|
|
|
210
263
|
|
|
264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
266
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
267
|
+
|
|
268
|
+
return {
|
|
269
|
+
url: toPathString(localVarUrlObj),
|
|
270
|
+
options: localVarRequestOptions,
|
|
271
|
+
};
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @summary List applicable alert rules for a resource
|
|
276
|
+
* @param {string} orgName name of the Org
|
|
277
|
+
* @param {AlertResourceType} resourceType resourceType
|
|
278
|
+
* @param {string} resourceID
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
listResourceAlertRules: async (orgName: string, resourceType: AlertResourceType, resourceID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
283
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
284
|
+
assertParamExists('listResourceAlertRules', 'orgName', orgName)
|
|
285
|
+
// verify required parameter 'resourceType' is not null or undefined
|
|
286
|
+
assertParamExists('listResourceAlertRules', 'resourceType', resourceType)
|
|
287
|
+
// verify required parameter 'resourceID' is not null or undefined
|
|
288
|
+
assertParamExists('listResourceAlertRules', 'resourceID', resourceID)
|
|
289
|
+
const localVarPath = `/api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}/rules`
|
|
290
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
291
|
+
.replace(`{${"resourceType"}}`, encodeURIComponent(String(resourceType)))
|
|
292
|
+
.replace(`{${"resourceID"}}`, encodeURIComponent(String(resourceID)));
|
|
293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
294
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
295
|
+
let baseOptions;
|
|
296
|
+
if (configuration) {
|
|
297
|
+
baseOptions = configuration.baseOptions;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
301
|
+
const localVarHeaderParameter = {} as any;
|
|
302
|
+
const localVarQueryParameter = {} as any;
|
|
303
|
+
|
|
304
|
+
// authentication BearerToken required
|
|
305
|
+
// http bearer authentication required
|
|
306
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
307
|
+
|
|
308
|
+
// authentication DigestAuth required
|
|
309
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
211
313
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
212
314
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
315
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -258,6 +360,59 @@ export const AlertRuleApiAxiosParamCreator = function (configuration?: Configura
|
|
|
258
360
|
options: localVarRequestOptions,
|
|
259
361
|
};
|
|
260
362
|
},
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @summary Update resource alert settings
|
|
366
|
+
* @param {string} orgName name of the Org
|
|
367
|
+
* @param {AlertResourceType} resourceType resourceType
|
|
368
|
+
* @param {string} resourceID
|
|
369
|
+
* @param {AlertCluster} [alertCluster]
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
setResourceAlertDisabled: async (orgName: string, resourceType: AlertResourceType, resourceID: string, alertCluster?: AlertCluster, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
374
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
375
|
+
assertParamExists('setResourceAlertDisabled', 'orgName', orgName)
|
|
376
|
+
// verify required parameter 'resourceType' is not null or undefined
|
|
377
|
+
assertParamExists('setResourceAlertDisabled', 'resourceType', resourceType)
|
|
378
|
+
// verify required parameter 'resourceID' is not null or undefined
|
|
379
|
+
assertParamExists('setResourceAlertDisabled', 'resourceID', resourceID)
|
|
380
|
+
const localVarPath = `/api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}`
|
|
381
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
382
|
+
.replace(`{${"resourceType"}}`, encodeURIComponent(String(resourceType)))
|
|
383
|
+
.replace(`{${"resourceID"}}`, encodeURIComponent(String(resourceID)));
|
|
384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
386
|
+
let baseOptions;
|
|
387
|
+
if (configuration) {
|
|
388
|
+
baseOptions = configuration.baseOptions;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
392
|
+
const localVarHeaderParameter = {} as any;
|
|
393
|
+
const localVarQueryParameter = {} as any;
|
|
394
|
+
|
|
395
|
+
// authentication BearerToken required
|
|
396
|
+
// http bearer authentication required
|
|
397
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
398
|
+
|
|
399
|
+
// authentication DigestAuth required
|
|
400
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
405
|
+
|
|
406
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
408
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
409
|
+
localVarRequestOptions.data = serializeDataIfNeeded(alertCluster, localVarRequestOptions, configuration)
|
|
410
|
+
|
|
411
|
+
return {
|
|
412
|
+
url: toPathString(localVarUrlObj),
|
|
413
|
+
options: localVarRequestOptions,
|
|
414
|
+
};
|
|
415
|
+
},
|
|
261
416
|
/**
|
|
262
417
|
*
|
|
263
418
|
* @summary Update alert rule
|
|
@@ -360,6 +515,21 @@ export const AlertRuleApiFp = function(configuration?: Configuration) {
|
|
|
360
515
|
const localVarOperationServerBasePath = operationServerMap['AlertRuleApi.getAlertRule']?.[localVarOperationServerIndex]?.url;
|
|
361
516
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
362
517
|
},
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @summary Get resource alert settings
|
|
521
|
+
* @param {string} orgName name of the Org
|
|
522
|
+
* @param {AlertResourceType} resourceType resourceType
|
|
523
|
+
* @param {string} resourceID
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
async getResourceAlertDisabled(orgName: string, resourceType: AlertResourceType, resourceID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertCluster>> {
|
|
528
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getResourceAlertDisabled(orgName, resourceType, resourceID, options);
|
|
529
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
530
|
+
const localVarOperationServerBasePath = operationServerMap['AlertRuleApi.getResourceAlertDisabled']?.[localVarOperationServerIndex]?.url;
|
|
531
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
532
|
+
},
|
|
363
533
|
/**
|
|
364
534
|
*
|
|
365
535
|
* @summary List alert rules
|
|
@@ -374,6 +544,21 @@ export const AlertRuleApiFp = function(configuration?: Configuration) {
|
|
|
374
544
|
const localVarOperationServerBasePath = operationServerMap['AlertRuleApi.listAlertRules']?.[localVarOperationServerIndex]?.url;
|
|
375
545
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
376
546
|
},
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @summary List applicable alert rules for a resource
|
|
550
|
+
* @param {string} orgName name of the Org
|
|
551
|
+
* @param {AlertResourceType} resourceType resourceType
|
|
552
|
+
* @param {string} resourceID
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
*/
|
|
556
|
+
async listResourceAlertRules(orgName: string, resourceType: AlertResourceType, resourceID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>> {
|
|
557
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listResourceAlertRules(orgName, resourceType, resourceID, options);
|
|
558
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
559
|
+
const localVarOperationServerBasePath = operationServerMap['AlertRuleApi.listResourceAlertRules']?.[localVarOperationServerIndex]?.url;
|
|
560
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
561
|
+
},
|
|
377
562
|
/**
|
|
378
563
|
* Restores the alert rule configuration for a specific organization to the system default settings.
|
|
379
564
|
* @summary Restore organization\'s alert rule configuration to defaults
|
|
@@ -387,6 +572,22 @@ export const AlertRuleApiFp = function(configuration?: Configuration) {
|
|
|
387
572
|
const localVarOperationServerBasePath = operationServerMap['AlertRuleApi.restoreOrgAlertRuleToDefault']?.[localVarOperationServerIndex]?.url;
|
|
388
573
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
389
574
|
},
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @summary Update resource alert settings
|
|
578
|
+
* @param {string} orgName name of the Org
|
|
579
|
+
* @param {AlertResourceType} resourceType resourceType
|
|
580
|
+
* @param {string} resourceID
|
|
581
|
+
* @param {AlertCluster} [alertCluster]
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
async setResourceAlertDisabled(orgName: string, resourceType: AlertResourceType, resourceID: string, alertCluster?: AlertCluster, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertCluster>> {
|
|
586
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setResourceAlertDisabled(orgName, resourceType, resourceID, alertCluster, options);
|
|
587
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
588
|
+
const localVarOperationServerBasePath = operationServerMap['AlertRuleApi.setResourceAlertDisabled']?.[localVarOperationServerIndex]?.url;
|
|
589
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
590
|
+
},
|
|
390
591
|
/**
|
|
391
592
|
*
|
|
392
593
|
* @summary Update alert rule
|
|
@@ -441,6 +642,16 @@ export const AlertRuleApiFactory = function (configuration?: Configuration, base
|
|
|
441
642
|
getAlertRule(requestParameters: AlertRuleApiGetAlertRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRule> {
|
|
442
643
|
return localVarFp.getAlertRule(requestParameters.orgName, requestParameters.alertName, options).then((request) => request(axios, basePath));
|
|
443
644
|
},
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @summary Get resource alert settings
|
|
648
|
+
* @param {AlertRuleApiGetResourceAlertDisabledRequest} requestParameters Request parameters.
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
*/
|
|
652
|
+
getResourceAlertDisabled(requestParameters: AlertRuleApiGetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertCluster> {
|
|
653
|
+
return localVarFp.getResourceAlertDisabled(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, options).then((request) => request(axios, basePath));
|
|
654
|
+
},
|
|
444
655
|
/**
|
|
445
656
|
*
|
|
446
657
|
* @summary List alert rules
|
|
@@ -451,6 +662,16 @@ export const AlertRuleApiFactory = function (configuration?: Configuration, base
|
|
|
451
662
|
listAlertRules(requestParameters: AlertRuleApiListAlertRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList> {
|
|
452
663
|
return localVarFp.listAlertRules(requestParameters.orgName, requestParameters.disabled, options).then((request) => request(axios, basePath));
|
|
453
664
|
},
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @summary List applicable alert rules for a resource
|
|
668
|
+
* @param {AlertRuleApiListResourceAlertRulesRequest} requestParameters Request parameters.
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
*/
|
|
672
|
+
listResourceAlertRules(requestParameters: AlertRuleApiListResourceAlertRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList> {
|
|
673
|
+
return localVarFp.listResourceAlertRules(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, options).then((request) => request(axios, basePath));
|
|
674
|
+
},
|
|
454
675
|
/**
|
|
455
676
|
* Restores the alert rule configuration for a specific organization to the system default settings.
|
|
456
677
|
* @summary Restore organization\'s alert rule configuration to defaults
|
|
@@ -461,6 +682,16 @@ export const AlertRuleApiFactory = function (configuration?: Configuration, base
|
|
|
461
682
|
restoreOrgAlertRuleToDefault(requestParameters: AlertRuleApiRestoreOrgAlertRuleToDefaultRequest, options?: RawAxiosRequestConfig): AxiosPromise<RestoreOrgAlertRuleToDefault200Response> {
|
|
462
683
|
return localVarFp.restoreOrgAlertRuleToDefault(requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
463
684
|
},
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @summary Update resource alert settings
|
|
688
|
+
* @param {AlertRuleApiSetResourceAlertDisabledRequest} requestParameters Request parameters.
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
setResourceAlertDisabled(requestParameters: AlertRuleApiSetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertCluster> {
|
|
693
|
+
return localVarFp.setResourceAlertDisabled(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, requestParameters.alertCluster, options).then((request) => request(axios, basePath));
|
|
694
|
+
},
|
|
464
695
|
/**
|
|
465
696
|
*
|
|
466
697
|
* @summary Update alert rule
|
|
@@ -509,6 +740,16 @@ export interface AlertRuleApiInterface {
|
|
|
509
740
|
*/
|
|
510
741
|
getAlertRule(requestParameters: AlertRuleApiGetAlertRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRule>;
|
|
511
742
|
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @summary Get resource alert settings
|
|
746
|
+
* @param {AlertRuleApiGetResourceAlertDisabledRequest} requestParameters Request parameters.
|
|
747
|
+
* @param {*} [options] Override http request option.
|
|
748
|
+
* @throws {RequiredError}
|
|
749
|
+
* @memberof AlertRuleApiInterface
|
|
750
|
+
*/
|
|
751
|
+
getResourceAlertDisabled(requestParameters: AlertRuleApiGetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertCluster>;
|
|
752
|
+
|
|
512
753
|
/**
|
|
513
754
|
*
|
|
514
755
|
* @summary List alert rules
|
|
@@ -519,6 +760,16 @@ export interface AlertRuleApiInterface {
|
|
|
519
760
|
*/
|
|
520
761
|
listAlertRules(requestParameters: AlertRuleApiListAlertRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList>;
|
|
521
762
|
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @summary List applicable alert rules for a resource
|
|
766
|
+
* @param {AlertRuleApiListResourceAlertRulesRequest} requestParameters Request parameters.
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
* @memberof AlertRuleApiInterface
|
|
770
|
+
*/
|
|
771
|
+
listResourceAlertRules(requestParameters: AlertRuleApiListResourceAlertRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList>;
|
|
772
|
+
|
|
522
773
|
/**
|
|
523
774
|
* Restores the alert rule configuration for a specific organization to the system default settings.
|
|
524
775
|
* @summary Restore organization\'s alert rule configuration to defaults
|
|
@@ -529,6 +780,16 @@ export interface AlertRuleApiInterface {
|
|
|
529
780
|
*/
|
|
530
781
|
restoreOrgAlertRuleToDefault(requestParameters: AlertRuleApiRestoreOrgAlertRuleToDefaultRequest, options?: RawAxiosRequestConfig): AxiosPromise<RestoreOrgAlertRuleToDefault200Response>;
|
|
531
782
|
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @summary Update resource alert settings
|
|
786
|
+
* @param {AlertRuleApiSetResourceAlertDisabledRequest} requestParameters Request parameters.
|
|
787
|
+
* @param {*} [options] Override http request option.
|
|
788
|
+
* @throws {RequiredError}
|
|
789
|
+
* @memberof AlertRuleApiInterface
|
|
790
|
+
*/
|
|
791
|
+
setResourceAlertDisabled(requestParameters: AlertRuleApiSetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertCluster>;
|
|
792
|
+
|
|
532
793
|
/**
|
|
533
794
|
*
|
|
534
795
|
* @summary Update alert rule
|
|
@@ -604,6 +865,34 @@ export interface AlertRuleApiGetAlertRuleRequest {
|
|
|
604
865
|
readonly alertName: string
|
|
605
866
|
}
|
|
606
867
|
|
|
868
|
+
/**
|
|
869
|
+
* Request parameters for getResourceAlertDisabled operation in AlertRuleApi.
|
|
870
|
+
* @export
|
|
871
|
+
* @interface AlertRuleApiGetResourceAlertDisabledRequest
|
|
872
|
+
*/
|
|
873
|
+
export interface AlertRuleApiGetResourceAlertDisabledRequest {
|
|
874
|
+
/**
|
|
875
|
+
* name of the Org
|
|
876
|
+
* @type {string}
|
|
877
|
+
* @memberof AlertRuleApiGetResourceAlertDisabled
|
|
878
|
+
*/
|
|
879
|
+
readonly orgName: string
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* resourceType
|
|
883
|
+
* @type {AlertResourceType}
|
|
884
|
+
* @memberof AlertRuleApiGetResourceAlertDisabled
|
|
885
|
+
*/
|
|
886
|
+
readonly resourceType: AlertResourceType
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
*
|
|
890
|
+
* @type {string}
|
|
891
|
+
* @memberof AlertRuleApiGetResourceAlertDisabled
|
|
892
|
+
*/
|
|
893
|
+
readonly resourceID: string
|
|
894
|
+
}
|
|
895
|
+
|
|
607
896
|
/**
|
|
608
897
|
* Request parameters for listAlertRules operation in AlertRuleApi.
|
|
609
898
|
* @export
|
|
@@ -625,6 +914,34 @@ export interface AlertRuleApiListAlertRulesRequest {
|
|
|
625
914
|
readonly disabled?: boolean
|
|
626
915
|
}
|
|
627
916
|
|
|
917
|
+
/**
|
|
918
|
+
* Request parameters for listResourceAlertRules operation in AlertRuleApi.
|
|
919
|
+
* @export
|
|
920
|
+
* @interface AlertRuleApiListResourceAlertRulesRequest
|
|
921
|
+
*/
|
|
922
|
+
export interface AlertRuleApiListResourceAlertRulesRequest {
|
|
923
|
+
/**
|
|
924
|
+
* name of the Org
|
|
925
|
+
* @type {string}
|
|
926
|
+
* @memberof AlertRuleApiListResourceAlertRules
|
|
927
|
+
*/
|
|
928
|
+
readonly orgName: string
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* resourceType
|
|
932
|
+
* @type {AlertResourceType}
|
|
933
|
+
* @memberof AlertRuleApiListResourceAlertRules
|
|
934
|
+
*/
|
|
935
|
+
readonly resourceType: AlertResourceType
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {string}
|
|
940
|
+
* @memberof AlertRuleApiListResourceAlertRules
|
|
941
|
+
*/
|
|
942
|
+
readonly resourceID: string
|
|
943
|
+
}
|
|
944
|
+
|
|
628
945
|
/**
|
|
629
946
|
* Request parameters for restoreOrgAlertRuleToDefault operation in AlertRuleApi.
|
|
630
947
|
* @export
|
|
@@ -639,6 +956,41 @@ export interface AlertRuleApiRestoreOrgAlertRuleToDefaultRequest {
|
|
|
639
956
|
readonly orgName: string
|
|
640
957
|
}
|
|
641
958
|
|
|
959
|
+
/**
|
|
960
|
+
* Request parameters for setResourceAlertDisabled operation in AlertRuleApi.
|
|
961
|
+
* @export
|
|
962
|
+
* @interface AlertRuleApiSetResourceAlertDisabledRequest
|
|
963
|
+
*/
|
|
964
|
+
export interface AlertRuleApiSetResourceAlertDisabledRequest {
|
|
965
|
+
/**
|
|
966
|
+
* name of the Org
|
|
967
|
+
* @type {string}
|
|
968
|
+
* @memberof AlertRuleApiSetResourceAlertDisabled
|
|
969
|
+
*/
|
|
970
|
+
readonly orgName: string
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* resourceType
|
|
974
|
+
* @type {AlertResourceType}
|
|
975
|
+
* @memberof AlertRuleApiSetResourceAlertDisabled
|
|
976
|
+
*/
|
|
977
|
+
readonly resourceType: AlertResourceType
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
*
|
|
981
|
+
* @type {string}
|
|
982
|
+
* @memberof AlertRuleApiSetResourceAlertDisabled
|
|
983
|
+
*/
|
|
984
|
+
readonly resourceID: string
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
*
|
|
988
|
+
* @type {AlertCluster}
|
|
989
|
+
* @memberof AlertRuleApiSetResourceAlertDisabled
|
|
990
|
+
*/
|
|
991
|
+
readonly alertCluster?: AlertCluster
|
|
992
|
+
}
|
|
993
|
+
|
|
642
994
|
/**
|
|
643
995
|
* Request parameters for updateAlertRule operation in AlertRuleApi.
|
|
644
996
|
* @export
|
|
@@ -709,6 +1061,18 @@ export class AlertRuleApi extends BaseAPI implements AlertRuleApiInterface {
|
|
|
709
1061
|
return AlertRuleApiFp(this.configuration).getAlertRule(requestParameters.orgName, requestParameters.alertName, options).then((request) => request(this.axios, this.basePath));
|
|
710
1062
|
}
|
|
711
1063
|
|
|
1064
|
+
/**
|
|
1065
|
+
*
|
|
1066
|
+
* @summary Get resource alert settings
|
|
1067
|
+
* @param {AlertRuleApiGetResourceAlertDisabledRequest} requestParameters Request parameters.
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
* @memberof AlertRuleApi
|
|
1071
|
+
*/
|
|
1072
|
+
public getResourceAlertDisabled(requestParameters: AlertRuleApiGetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig) {
|
|
1073
|
+
return AlertRuleApiFp(this.configuration).getResourceAlertDisabled(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, options).then((request) => request(this.axios, this.basePath));
|
|
1074
|
+
}
|
|
1075
|
+
|
|
712
1076
|
/**
|
|
713
1077
|
*
|
|
714
1078
|
* @summary List alert rules
|
|
@@ -721,6 +1085,18 @@ export class AlertRuleApi extends BaseAPI implements AlertRuleApiInterface {
|
|
|
721
1085
|
return AlertRuleApiFp(this.configuration).listAlertRules(requestParameters.orgName, requestParameters.disabled, options).then((request) => request(this.axios, this.basePath));
|
|
722
1086
|
}
|
|
723
1087
|
|
|
1088
|
+
/**
|
|
1089
|
+
*
|
|
1090
|
+
* @summary List applicable alert rules for a resource
|
|
1091
|
+
* @param {AlertRuleApiListResourceAlertRulesRequest} requestParameters Request parameters.
|
|
1092
|
+
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @throws {RequiredError}
|
|
1094
|
+
* @memberof AlertRuleApi
|
|
1095
|
+
*/
|
|
1096
|
+
public listResourceAlertRules(requestParameters: AlertRuleApiListResourceAlertRulesRequest, options?: RawAxiosRequestConfig) {
|
|
1097
|
+
return AlertRuleApiFp(this.configuration).listResourceAlertRules(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, options).then((request) => request(this.axios, this.basePath));
|
|
1098
|
+
}
|
|
1099
|
+
|
|
724
1100
|
/**
|
|
725
1101
|
* Restores the alert rule configuration for a specific organization to the system default settings.
|
|
726
1102
|
* @summary Restore organization\'s alert rule configuration to defaults
|
|
@@ -733,6 +1109,18 @@ export class AlertRuleApi extends BaseAPI implements AlertRuleApiInterface {
|
|
|
733
1109
|
return AlertRuleApiFp(this.configuration).restoreOrgAlertRuleToDefault(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
734
1110
|
}
|
|
735
1111
|
|
|
1112
|
+
/**
|
|
1113
|
+
*
|
|
1114
|
+
* @summary Update resource alert settings
|
|
1115
|
+
* @param {AlertRuleApiSetResourceAlertDisabledRequest} requestParameters Request parameters.
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
* @memberof AlertRuleApi
|
|
1119
|
+
*/
|
|
1120
|
+
public setResourceAlertDisabled(requestParameters: AlertRuleApiSetResourceAlertDisabledRequest, options?: RawAxiosRequestConfig) {
|
|
1121
|
+
return AlertRuleApiFp(this.configuration).setResourceAlertDisabled(requestParameters.orgName, requestParameters.resourceType, requestParameters.resourceID, requestParameters.alertCluster, options).then((request) => request(this.axios, this.basePath));
|
|
1122
|
+
}
|
|
1123
|
+
|
|
736
1124
|
/**
|
|
737
1125
|
*
|
|
738
1126
|
* @summary Update alert rule
|