@alicloud/cms20190101 2.0.4 → 2.0.6
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/client.d.ts +46 -0
- package/dist/client.js +81 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +102 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cms20190101",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.7",
|
|
24
24
|
"@alicloud/openapi-client": "^0.4.4",
|
|
25
|
-
"@alicloud/openapi-util": "^0.3.
|
|
25
|
+
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
package/src/client.ts
CHANGED
|
@@ -2711,6 +2711,7 @@ export class CreateMonitoringAgentProcessResponse extends $tea.Model {
|
|
|
2711
2711
|
export class CreateSiteMonitorRequest extends $tea.Model {
|
|
2712
2712
|
address?: string;
|
|
2713
2713
|
alertIds?: string;
|
|
2714
|
+
customSchedule?: string;
|
|
2714
2715
|
interval?: string;
|
|
2715
2716
|
ispCities?: string;
|
|
2716
2717
|
optionsJson?: string;
|
|
@@ -2721,6 +2722,7 @@ export class CreateSiteMonitorRequest extends $tea.Model {
|
|
|
2721
2722
|
return {
|
|
2722
2723
|
address: 'Address',
|
|
2723
2724
|
alertIds: 'AlertIds',
|
|
2725
|
+
customSchedule: 'CustomSchedule',
|
|
2724
2726
|
interval: 'Interval',
|
|
2725
2727
|
ispCities: 'IspCities',
|
|
2726
2728
|
optionsJson: 'OptionsJson',
|
|
@@ -2734,6 +2736,7 @@ export class CreateSiteMonitorRequest extends $tea.Model {
|
|
|
2734
2736
|
return {
|
|
2735
2737
|
address: 'string',
|
|
2736
2738
|
alertIds: 'string',
|
|
2739
|
+
customSchedule: 'string',
|
|
2737
2740
|
interval: 'string',
|
|
2738
2741
|
ispCities: 'string',
|
|
2739
2742
|
optionsJson: 'string',
|
|
@@ -5065,6 +5068,7 @@ export class DescribeAlertLogCountRequest extends $tea.Model {
|
|
|
5065
5068
|
ruleName?: string;
|
|
5066
5069
|
searchKey?: string;
|
|
5067
5070
|
sendStatus?: string;
|
|
5071
|
+
sourceType?: string;
|
|
5068
5072
|
startTime?: number;
|
|
5069
5073
|
static names(): { [key: string]: string } {
|
|
5070
5074
|
return {
|
|
@@ -5083,6 +5087,7 @@ export class DescribeAlertLogCountRequest extends $tea.Model {
|
|
|
5083
5087
|
ruleName: 'RuleName',
|
|
5084
5088
|
searchKey: 'SearchKey',
|
|
5085
5089
|
sendStatus: 'SendStatus',
|
|
5090
|
+
sourceType: 'SourceType',
|
|
5086
5091
|
startTime: 'StartTime',
|
|
5087
5092
|
};
|
|
5088
5093
|
}
|
|
@@ -5104,6 +5109,7 @@ export class DescribeAlertLogCountRequest extends $tea.Model {
|
|
|
5104
5109
|
ruleName: 'string',
|
|
5105
5110
|
searchKey: 'string',
|
|
5106
5111
|
sendStatus: 'string',
|
|
5112
|
+
sourceType: 'string',
|
|
5107
5113
|
startTime: 'number',
|
|
5108
5114
|
};
|
|
5109
5115
|
}
|
|
@@ -5185,6 +5191,7 @@ export class DescribeAlertLogHistogramRequest extends $tea.Model {
|
|
|
5185
5191
|
ruleName?: string;
|
|
5186
5192
|
searchKey?: string;
|
|
5187
5193
|
sendStatus?: string;
|
|
5194
|
+
sourceType?: string;
|
|
5188
5195
|
startTime?: number;
|
|
5189
5196
|
static names(): { [key: string]: string } {
|
|
5190
5197
|
return {
|
|
@@ -5203,6 +5210,7 @@ export class DescribeAlertLogHistogramRequest extends $tea.Model {
|
|
|
5203
5210
|
ruleName: 'RuleName',
|
|
5204
5211
|
searchKey: 'SearchKey',
|
|
5205
5212
|
sendStatus: 'SendStatus',
|
|
5213
|
+
sourceType: 'SourceType',
|
|
5206
5214
|
startTime: 'StartTime',
|
|
5207
5215
|
};
|
|
5208
5216
|
}
|
|
@@ -5224,6 +5232,7 @@ export class DescribeAlertLogHistogramRequest extends $tea.Model {
|
|
|
5224
5232
|
ruleName: 'string',
|
|
5225
5233
|
searchKey: 'string',
|
|
5226
5234
|
sendStatus: 'string',
|
|
5235
|
+
sourceType: 'string',
|
|
5227
5236
|
startTime: 'number',
|
|
5228
5237
|
};
|
|
5229
5238
|
}
|
|
@@ -5306,6 +5315,7 @@ export class DescribeAlertLogListRequest extends $tea.Model {
|
|
|
5306
5315
|
ruleName?: string;
|
|
5307
5316
|
searchKey?: string;
|
|
5308
5317
|
sendStatus?: string;
|
|
5318
|
+
sourceType?: string;
|
|
5309
5319
|
startTime?: number;
|
|
5310
5320
|
static names(): { [key: string]: string } {
|
|
5311
5321
|
return {
|
|
@@ -5325,6 +5335,7 @@ export class DescribeAlertLogListRequest extends $tea.Model {
|
|
|
5325
5335
|
ruleName: 'RuleName',
|
|
5326
5336
|
searchKey: 'SearchKey',
|
|
5327
5337
|
sendStatus: 'SendStatus',
|
|
5338
|
+
sourceType: 'SourceType',
|
|
5328
5339
|
startTime: 'StartTime',
|
|
5329
5340
|
};
|
|
5330
5341
|
}
|
|
@@ -5347,6 +5358,7 @@ export class DescribeAlertLogListRequest extends $tea.Model {
|
|
|
5347
5358
|
ruleName: 'string',
|
|
5348
5359
|
searchKey: 'string',
|
|
5349
5360
|
sendStatus: 'string',
|
|
5361
|
+
sourceType: 'string',
|
|
5350
5362
|
startTime: 'number',
|
|
5351
5363
|
};
|
|
5352
5364
|
}
|
|
@@ -12996,6 +13008,7 @@ export class ModifyMonitorGroupInstancesResponse extends $tea.Model {
|
|
|
12996
13008
|
export class ModifySiteMonitorRequest extends $tea.Model {
|
|
12997
13009
|
address?: string;
|
|
12998
13010
|
alertIds?: string;
|
|
13011
|
+
customSchedule?: string;
|
|
12999
13012
|
interval?: string;
|
|
13000
13013
|
intervalUnit?: string;
|
|
13001
13014
|
ispCities?: string;
|
|
@@ -13007,6 +13020,7 @@ export class ModifySiteMonitorRequest extends $tea.Model {
|
|
|
13007
13020
|
return {
|
|
13008
13021
|
address: 'Address',
|
|
13009
13022
|
alertIds: 'AlertIds',
|
|
13023
|
+
customSchedule: 'CustomSchedule',
|
|
13010
13024
|
interval: 'Interval',
|
|
13011
13025
|
intervalUnit: 'IntervalUnit',
|
|
13012
13026
|
ispCities: 'IspCities',
|
|
@@ -13021,6 +13035,7 @@ export class ModifySiteMonitorRequest extends $tea.Model {
|
|
|
13021
13035
|
return {
|
|
13022
13036
|
address: 'string',
|
|
13023
13037
|
alertIds: 'string',
|
|
13038
|
+
customSchedule: 'string',
|
|
13024
13039
|
interval: 'string',
|
|
13025
13040
|
intervalUnit: 'string',
|
|
13026
13041
|
ispCities: 'string',
|
|
@@ -22503,6 +22518,7 @@ export class DescribeMonitoringAgentProcessesResponseBodyNodeProcesses extends $
|
|
|
22503
22518
|
export class DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus extends $tea.Model {
|
|
22504
22519
|
autoInstall?: boolean;
|
|
22505
22520
|
instanceId?: string;
|
|
22521
|
+
osMonitorConfig?: string;
|
|
22506
22522
|
osMonitorErrorCode?: string;
|
|
22507
22523
|
osMonitorErrorDetail?: string;
|
|
22508
22524
|
osMonitorStatus?: string;
|
|
@@ -22512,6 +22528,7 @@ export class DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus
|
|
|
22512
22528
|
return {
|
|
22513
22529
|
autoInstall: 'AutoInstall',
|
|
22514
22530
|
instanceId: 'InstanceId',
|
|
22531
|
+
osMonitorConfig: 'OsMonitorConfig',
|
|
22515
22532
|
osMonitorErrorCode: 'OsMonitorErrorCode',
|
|
22516
22533
|
osMonitorErrorDetail: 'OsMonitorErrorDetail',
|
|
22517
22534
|
osMonitorStatus: 'OsMonitorStatus',
|
|
@@ -22524,6 +22541,7 @@ export class DescribeMonitoringAgentStatusesResponseBodyNodeStatusListNodeStatus
|
|
|
22524
22541
|
return {
|
|
22525
22542
|
autoInstall: 'boolean',
|
|
22526
22543
|
instanceId: 'string',
|
|
22544
|
+
osMonitorConfig: 'string',
|
|
22527
22545
|
osMonitorErrorCode: 'string',
|
|
22528
22546
|
osMonitorErrorDetail: 'string',
|
|
22529
22547
|
osMonitorStatus: 'string',
|
|
@@ -22796,6 +22814,53 @@ export class DescribeSiteMonitorAttributeResponseBodyMetricRules extends $tea.Mo
|
|
|
22796
22814
|
}
|
|
22797
22815
|
}
|
|
22798
22816
|
|
|
22817
|
+
export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays extends $tea.Model {
|
|
22818
|
+
days?: number[];
|
|
22819
|
+
static names(): { [key: string]: string } {
|
|
22820
|
+
return {
|
|
22821
|
+
days: 'days',
|
|
22822
|
+
};
|
|
22823
|
+
}
|
|
22824
|
+
|
|
22825
|
+
static types(): { [key: string]: any } {
|
|
22826
|
+
return {
|
|
22827
|
+
days: { 'type': 'array', 'itemType': 'number' },
|
|
22828
|
+
};
|
|
22829
|
+
}
|
|
22830
|
+
|
|
22831
|
+
constructor(map?: { [key: string]: any }) {
|
|
22832
|
+
super(map);
|
|
22833
|
+
}
|
|
22834
|
+
}
|
|
22835
|
+
|
|
22836
|
+
export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule extends $tea.Model {
|
|
22837
|
+
days?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays;
|
|
22838
|
+
endHour?: number;
|
|
22839
|
+
startHour?: number;
|
|
22840
|
+
timeZone?: string;
|
|
22841
|
+
static names(): { [key: string]: string } {
|
|
22842
|
+
return {
|
|
22843
|
+
days: 'days',
|
|
22844
|
+
endHour: 'end_hour',
|
|
22845
|
+
startHour: 'start_hour',
|
|
22846
|
+
timeZone: 'time_zone',
|
|
22847
|
+
};
|
|
22848
|
+
}
|
|
22849
|
+
|
|
22850
|
+
static types(): { [key: string]: any } {
|
|
22851
|
+
return {
|
|
22852
|
+
days: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomScheduleDays,
|
|
22853
|
+
endHour: 'number',
|
|
22854
|
+
startHour: 'number',
|
|
22855
|
+
timeZone: 'string',
|
|
22856
|
+
};
|
|
22857
|
+
}
|
|
22858
|
+
|
|
22859
|
+
constructor(map?: { [key: string]: any }) {
|
|
22860
|
+
super(map);
|
|
22861
|
+
}
|
|
22862
|
+
}
|
|
22863
|
+
|
|
22799
22864
|
export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCitiesIspCity extends $tea.Model {
|
|
22800
22865
|
city?: string;
|
|
22801
22866
|
cityName?: string;
|
|
@@ -22993,6 +23058,7 @@ export class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson exte
|
|
|
22993
23058
|
export class DescribeSiteMonitorAttributeResponseBodySiteMonitors extends $tea.Model {
|
|
22994
23059
|
address?: string;
|
|
22995
23060
|
agentGroup?: string;
|
|
23061
|
+
customSchedule?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule;
|
|
22996
23062
|
interval?: string;
|
|
22997
23063
|
ispCities?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities;
|
|
22998
23064
|
optionJson?: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson;
|
|
@@ -23004,6 +23070,7 @@ export class DescribeSiteMonitorAttributeResponseBodySiteMonitors extends $tea.M
|
|
|
23004
23070
|
return {
|
|
23005
23071
|
address: 'Address',
|
|
23006
23072
|
agentGroup: 'AgentGroup',
|
|
23073
|
+
customSchedule: 'CustomSchedule',
|
|
23007
23074
|
interval: 'Interval',
|
|
23008
23075
|
ispCities: 'IspCities',
|
|
23009
23076
|
optionJson: 'OptionJson',
|
|
@@ -23018,6 +23085,7 @@ export class DescribeSiteMonitorAttributeResponseBodySiteMonitors extends $tea.M
|
|
|
23018
23085
|
return {
|
|
23019
23086
|
address: 'string',
|
|
23020
23087
|
agentGroup: 'string',
|
|
23088
|
+
customSchedule: DescribeSiteMonitorAttributeResponseBodySiteMonitorsCustomSchedule,
|
|
23021
23089
|
interval: 'string',
|
|
23022
23090
|
ispCities: DescribeSiteMonitorAttributeResponseBodySiteMonitorsIspCities,
|
|
23023
23091
|
optionJson: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson,
|
|
@@ -27395,6 +27463,10 @@ export default class Client extends OpenApi {
|
|
|
27395
27463
|
query["AlertIds"] = request.alertIds;
|
|
27396
27464
|
}
|
|
27397
27465
|
|
|
27466
|
+
if (!Util.isUnset(request.customSchedule)) {
|
|
27467
|
+
query["CustomSchedule"] = request.customSchedule;
|
|
27468
|
+
}
|
|
27469
|
+
|
|
27398
27470
|
if (!Util.isUnset(request.interval)) {
|
|
27399
27471
|
query["Interval"] = request.interval;
|
|
27400
27472
|
}
|
|
@@ -28525,6 +28597,10 @@ export default class Client extends OpenApi {
|
|
|
28525
28597
|
query["SendStatus"] = request.sendStatus;
|
|
28526
28598
|
}
|
|
28527
28599
|
|
|
28600
|
+
if (!Util.isUnset(request.sourceType)) {
|
|
28601
|
+
query["SourceType"] = request.sourceType;
|
|
28602
|
+
}
|
|
28603
|
+
|
|
28528
28604
|
if (!Util.isUnset(request.startTime)) {
|
|
28529
28605
|
query["StartTime"] = request.startTime;
|
|
28530
28606
|
}
|
|
@@ -28623,6 +28699,10 @@ export default class Client extends OpenApi {
|
|
|
28623
28699
|
query["SendStatus"] = request.sendStatus;
|
|
28624
28700
|
}
|
|
28625
28701
|
|
|
28702
|
+
if (!Util.isUnset(request.sourceType)) {
|
|
28703
|
+
query["SourceType"] = request.sourceType;
|
|
28704
|
+
}
|
|
28705
|
+
|
|
28626
28706
|
if (!Util.isUnset(request.startTime)) {
|
|
28627
28707
|
query["StartTime"] = request.startTime;
|
|
28628
28708
|
}
|
|
@@ -28727,6 +28807,10 @@ export default class Client extends OpenApi {
|
|
|
28727
28807
|
query["SendStatus"] = request.sendStatus;
|
|
28728
28808
|
}
|
|
28729
28809
|
|
|
28810
|
+
if (!Util.isUnset(request.sourceType)) {
|
|
28811
|
+
query["SourceType"] = request.sourceType;
|
|
28812
|
+
}
|
|
28813
|
+
|
|
28730
28814
|
if (!Util.isUnset(request.startTime)) {
|
|
28731
28815
|
query["StartTime"] = request.startTime;
|
|
28732
28816
|
}
|
|
@@ -32836,6 +32920,10 @@ export default class Client extends OpenApi {
|
|
|
32836
32920
|
query["AlertIds"] = request.alertIds;
|
|
32837
32921
|
}
|
|
32838
32922
|
|
|
32923
|
+
if (!Util.isUnset(request.customSchedule)) {
|
|
32924
|
+
query["CustomSchedule"] = request.customSchedule;
|
|
32925
|
+
}
|
|
32926
|
+
|
|
32839
32927
|
if (!Util.isUnset(request.interval)) {
|
|
32840
32928
|
query["Interval"] = request.interval;
|
|
32841
32929
|
}
|
|
@@ -32888,6 +32976,14 @@ export default class Client extends OpenApi {
|
|
|
32888
32976
|
return await this.modifySiteMonitorWithOptions(request, runtime);
|
|
32889
32977
|
}
|
|
32890
32978
|
|
|
32979
|
+
/**
|
|
32980
|
+
* @deprecated
|
|
32981
|
+
*
|
|
32982
|
+
* @param request OpenCmsServiceRequest
|
|
32983
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32984
|
+
* @return OpenCmsServiceResponse
|
|
32985
|
+
*/
|
|
32986
|
+
// Deprecated
|
|
32891
32987
|
async openCmsServiceWithOptions(runtime: $Util.RuntimeOptions): Promise<OpenCmsServiceResponse> {
|
|
32892
32988
|
let req = new $OpenApi.OpenApiRequest({ });
|
|
32893
32989
|
let params = new $OpenApi.Params({
|
|
@@ -32904,6 +33000,12 @@ export default class Client extends OpenApi {
|
|
|
32904
33000
|
return $tea.cast<OpenCmsServiceResponse>(await this.callApi(params, req, runtime), new OpenCmsServiceResponse({}));
|
|
32905
33001
|
}
|
|
32906
33002
|
|
|
33003
|
+
/**
|
|
33004
|
+
* @deprecated
|
|
33005
|
+
*
|
|
33006
|
+
* @return OpenCmsServiceResponse
|
|
33007
|
+
*/
|
|
33008
|
+
// Deprecated
|
|
32907
33009
|
async openCmsService(): Promise<OpenCmsServiceResponse> {
|
|
32908
33010
|
let runtime = new $Util.RuntimeOptions({ });
|
|
32909
33011
|
return await this.openCmsServiceWithOptions(runtime);
|