tencentcloud-sdk-nodejs-intl-en 3.0.1387 → 3.0.1389
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/package.json +1 -1
- package/tencentcloud/cam/v20190116/cam_client.js +27 -0
- package/tencentcloud/cam/v20190116/models.js +221 -0
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cwp/v20180228/cwp_client.js +1 -1
- package/tencentcloud/cwp/v20180228/models.js +2 -2
- package/tencentcloud/monitor/index.js +1 -1
- package/tencentcloud/monitor/v20180724/models.js +291 -0
- package/tencentcloud/monitor/v20180724/monitor_client.js +58 -0
- package/tencentcloud/monitor/v20230616/index.js +4 -0
- package/tencentcloud/monitor/v20230616/models.js +536 -0
- package/tencentcloud/monitor/v20230616/monitor_client.js +52 -0
- package/tencentcloud/mps/v20190612/models.js +1205 -224
- package/tencentcloud/mps/v20190612/mps_client.js +65 -4
- package/tencentcloud/ocr/v20181119/models.js +2049 -7844
- package/tencentcloud/ocr/v20181119/ocr_client.js +33 -393
- package/tencentcloud/trtc/v20190722/models.js +17 -50
- package/tencentcloud/vod/v20180717/models.js +495 -107
- package/tencentcloud/vod/v20180717/vod_client.js +78 -17
|
@@ -7126,6 +7126,77 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
7128
7128
|
|
|
7129
|
+
/**
|
|
7130
|
+
* ExportPrometheusReadOnlyDynamicAPI request structure.
|
|
7131
|
+
* @class
|
|
7132
|
+
*/
|
|
7133
|
+
class ExportPrometheusReadOnlyDynamicAPIRequest extends AbstractModel {
|
|
7134
|
+
constructor(){
|
|
7135
|
+
super();
|
|
7136
|
+
|
|
7137
|
+
/**
|
|
7138
|
+
* <p>Prometheus Instance ID</p>
|
|
7139
|
+
* @type {string || null}
|
|
7140
|
+
*/
|
|
7141
|
+
this.InstanceId = null;
|
|
7142
|
+
|
|
7143
|
+
/**
|
|
7144
|
+
* <p>HTTP method name GET/POST/PUT/DELETE</p>
|
|
7145
|
+
* @type {string || null}
|
|
7146
|
+
*/
|
|
7147
|
+
this.Method = null;
|
|
7148
|
+
|
|
7149
|
+
/**
|
|
7150
|
+
* <p>HTTP path (including query string)</p>
|
|
7151
|
+
* @type {string || null}
|
|
7152
|
+
*/
|
|
7153
|
+
this.Path = null;
|
|
7154
|
+
|
|
7155
|
+
/**
|
|
7156
|
+
* <p>HTTP request body, any data</p>
|
|
7157
|
+
* @type {string || null}
|
|
7158
|
+
*/
|
|
7159
|
+
this.RequestBody = null;
|
|
7160
|
+
|
|
7161
|
+
/**
|
|
7162
|
+
* <p>HTTP headers</p>
|
|
7163
|
+
* @type {Array.<PrometheusStringKeyValuePair> || null}
|
|
7164
|
+
*/
|
|
7165
|
+
this.Headers = null;
|
|
7166
|
+
|
|
7167
|
+
/**
|
|
7168
|
+
* <p>Whether to request self-monitoring data. Self-monitoring is only supported for the /api/v1/query and /api/v1/query_range APIs.</p>
|
|
7169
|
+
* @type {boolean || null}
|
|
7170
|
+
*/
|
|
7171
|
+
this.SelfMonitor = null;
|
|
7172
|
+
|
|
7173
|
+
}
|
|
7174
|
+
|
|
7175
|
+
/**
|
|
7176
|
+
* @private
|
|
7177
|
+
*/
|
|
7178
|
+
deserialize(params) {
|
|
7179
|
+
if (!params) {
|
|
7180
|
+
return;
|
|
7181
|
+
}
|
|
7182
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
7183
|
+
this.Method = 'Method' in params ? params.Method : null;
|
|
7184
|
+
this.Path = 'Path' in params ? params.Path : null;
|
|
7185
|
+
this.RequestBody = 'RequestBody' in params ? params.RequestBody : null;
|
|
7186
|
+
|
|
7187
|
+
if (params.Headers) {
|
|
7188
|
+
this.Headers = new Array();
|
|
7189
|
+
for (let z in params.Headers) {
|
|
7190
|
+
let obj = new PrometheusStringKeyValuePair();
|
|
7191
|
+
obj.deserialize(params.Headers[z]);
|
|
7192
|
+
this.Headers.push(obj);
|
|
7193
|
+
}
|
|
7194
|
+
}
|
|
7195
|
+
this.SelfMonitor = 'SelfMonitor' in params ? params.SelfMonitor : null;
|
|
7196
|
+
|
|
7197
|
+
}
|
|
7198
|
+
}
|
|
7199
|
+
|
|
7129
7200
|
/**
|
|
7130
7201
|
* TMP tag
|
|
7131
7202
|
* @class
|
|
@@ -11291,6 +11362,41 @@ class UninstallGrafanaPluginsRequest extends AbstractModel {
|
|
|
11291
11362
|
}
|
|
11292
11363
|
}
|
|
11293
11364
|
|
|
11365
|
+
/**
|
|
11366
|
+
* TMP universal character string type KV
|
|
11367
|
+
* @class
|
|
11368
|
+
*/
|
|
11369
|
+
class PrometheusStringKeyValuePair extends AbstractModel {
|
|
11370
|
+
constructor(){
|
|
11371
|
+
super();
|
|
11372
|
+
|
|
11373
|
+
/**
|
|
11374
|
+
* <p>Key</p>
|
|
11375
|
+
* @type {string || null}
|
|
11376
|
+
*/
|
|
11377
|
+
this.Key = null;
|
|
11378
|
+
|
|
11379
|
+
/**
|
|
11380
|
+
* <p>Value</p>
|
|
11381
|
+
* @type {string || null}
|
|
11382
|
+
*/
|
|
11383
|
+
this.Value = null;
|
|
11384
|
+
|
|
11385
|
+
}
|
|
11386
|
+
|
|
11387
|
+
/**
|
|
11388
|
+
* @private
|
|
11389
|
+
*/
|
|
11390
|
+
deserialize(params) {
|
|
11391
|
+
if (!params) {
|
|
11392
|
+
return;
|
|
11393
|
+
}
|
|
11394
|
+
this.Key = 'Key' in params ? params.Key : null;
|
|
11395
|
+
this.Value = 'Value' in params ? params.Value : null;
|
|
11396
|
+
|
|
11397
|
+
}
|
|
11398
|
+
}
|
|
11399
|
+
|
|
11294
11400
|
/**
|
|
11295
11401
|
* DeleteSSOAccount response structure.
|
|
11296
11402
|
* @class
|
|
@@ -13392,6 +13498,46 @@ class MetricDataPoint extends AbstractModel {
|
|
|
13392
13498
|
}
|
|
13393
13499
|
}
|
|
13394
13500
|
|
|
13501
|
+
/**
|
|
13502
|
+
* ExportPrometheusReadOnlyDynamicAPI response structure.
|
|
13503
|
+
* @class
|
|
13504
|
+
*/
|
|
13505
|
+
class ExportPrometheusReadOnlyDynamicAPIResponse extends AbstractModel {
|
|
13506
|
+
constructor(){
|
|
13507
|
+
super();
|
|
13508
|
+
|
|
13509
|
+
/**
|
|
13510
|
+
* <p>HTTP response data</p>
|
|
13511
|
+
* @type {PrometheusDynamicAPIResponseHTTP || null}
|
|
13512
|
+
*/
|
|
13513
|
+
this.HTTP = null;
|
|
13514
|
+
|
|
13515
|
+
/**
|
|
13516
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
13517
|
+
* @type {string || null}
|
|
13518
|
+
*/
|
|
13519
|
+
this.RequestId = null;
|
|
13520
|
+
|
|
13521
|
+
}
|
|
13522
|
+
|
|
13523
|
+
/**
|
|
13524
|
+
* @private
|
|
13525
|
+
*/
|
|
13526
|
+
deserialize(params) {
|
|
13527
|
+
if (!params) {
|
|
13528
|
+
return;
|
|
13529
|
+
}
|
|
13530
|
+
|
|
13531
|
+
if (params.HTTP) {
|
|
13532
|
+
let obj = new PrometheusDynamicAPIResponseHTTP();
|
|
13533
|
+
obj.deserialize(params.HTTP)
|
|
13534
|
+
this.HTTP = obj;
|
|
13535
|
+
}
|
|
13536
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
13537
|
+
|
|
13538
|
+
}
|
|
13539
|
+
}
|
|
13540
|
+
|
|
13395
13541
|
/**
|
|
13396
13542
|
* GetMonitorData request structure.
|
|
13397
13543
|
* @class
|
|
@@ -14031,6 +14177,46 @@ class ModifyAlarmReceiversResponse extends AbstractModel {
|
|
|
14031
14177
|
}
|
|
14032
14178
|
}
|
|
14033
14179
|
|
|
14180
|
+
/**
|
|
14181
|
+
* RoutePrometheusDynamicAPI response structure.
|
|
14182
|
+
* @class
|
|
14183
|
+
*/
|
|
14184
|
+
class RoutePrometheusDynamicAPIResponse extends AbstractModel {
|
|
14185
|
+
constructor(){
|
|
14186
|
+
super();
|
|
14187
|
+
|
|
14188
|
+
/**
|
|
14189
|
+
* <p>HTTP response data</p>
|
|
14190
|
+
* @type {PrometheusDynamicAPIResponseHTTP || null}
|
|
14191
|
+
*/
|
|
14192
|
+
this.HTTP = null;
|
|
14193
|
+
|
|
14194
|
+
/**
|
|
14195
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
14196
|
+
* @type {string || null}
|
|
14197
|
+
*/
|
|
14198
|
+
this.RequestId = null;
|
|
14199
|
+
|
|
14200
|
+
}
|
|
14201
|
+
|
|
14202
|
+
/**
|
|
14203
|
+
* @private
|
|
14204
|
+
*/
|
|
14205
|
+
deserialize(params) {
|
|
14206
|
+
if (!params) {
|
|
14207
|
+
return;
|
|
14208
|
+
}
|
|
14209
|
+
|
|
14210
|
+
if (params.HTTP) {
|
|
14211
|
+
let obj = new PrometheusDynamicAPIResponseHTTP();
|
|
14212
|
+
obj.deserialize(params.HTTP)
|
|
14213
|
+
this.HTTP = obj;
|
|
14214
|
+
}
|
|
14215
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
14216
|
+
|
|
14217
|
+
}
|
|
14218
|
+
}
|
|
14219
|
+
|
|
14034
14220
|
/**
|
|
14035
14221
|
* Grafana alert channel
|
|
14036
14222
|
* @class
|
|
@@ -14856,6 +15042,70 @@ class DescribePrometheusRecordRuleYamlResponse extends AbstractModel {
|
|
|
14856
15042
|
}
|
|
14857
15043
|
}
|
|
14858
15044
|
|
|
15045
|
+
/**
|
|
15046
|
+
* RoutePrometheusDynamicAPI request structure.
|
|
15047
|
+
* @class
|
|
15048
|
+
*/
|
|
15049
|
+
class RoutePrometheusDynamicAPIRequest extends AbstractModel {
|
|
15050
|
+
constructor(){
|
|
15051
|
+
super();
|
|
15052
|
+
|
|
15053
|
+
/**
|
|
15054
|
+
* <p>Prometheus Instance ID</p>
|
|
15055
|
+
* @type {string || null}
|
|
15056
|
+
*/
|
|
15057
|
+
this.InstanceId = null;
|
|
15058
|
+
|
|
15059
|
+
/**
|
|
15060
|
+
* <p>HTTP method name GET/POST/PUT/DELETE</p>
|
|
15061
|
+
* @type {string || null}
|
|
15062
|
+
*/
|
|
15063
|
+
this.Method = null;
|
|
15064
|
+
|
|
15065
|
+
/**
|
|
15066
|
+
* <p>HTTP path (including query string)</p>
|
|
15067
|
+
* @type {string || null}
|
|
15068
|
+
*/
|
|
15069
|
+
this.Path = null;
|
|
15070
|
+
|
|
15071
|
+
/**
|
|
15072
|
+
* <p>HTTP request body, any data</p>
|
|
15073
|
+
* @type {string || null}
|
|
15074
|
+
*/
|
|
15075
|
+
this.RequestBody = null;
|
|
15076
|
+
|
|
15077
|
+
/**
|
|
15078
|
+
* <p>HTTP headers</p>
|
|
15079
|
+
* @type {Array.<PrometheusStringKeyValuePair> || null}
|
|
15080
|
+
*/
|
|
15081
|
+
this.Headers = null;
|
|
15082
|
+
|
|
15083
|
+
}
|
|
15084
|
+
|
|
15085
|
+
/**
|
|
15086
|
+
* @private
|
|
15087
|
+
*/
|
|
15088
|
+
deserialize(params) {
|
|
15089
|
+
if (!params) {
|
|
15090
|
+
return;
|
|
15091
|
+
}
|
|
15092
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
15093
|
+
this.Method = 'Method' in params ? params.Method : null;
|
|
15094
|
+
this.Path = 'Path' in params ? params.Path : null;
|
|
15095
|
+
this.RequestBody = 'RequestBody' in params ? params.RequestBody : null;
|
|
15096
|
+
|
|
15097
|
+
if (params.Headers) {
|
|
15098
|
+
this.Headers = new Array();
|
|
15099
|
+
for (let z in params.Headers) {
|
|
15100
|
+
let obj = new PrometheusStringKeyValuePair();
|
|
15101
|
+
obj.deserialize(params.Headers[z]);
|
|
15102
|
+
this.Headers.push(obj);
|
|
15103
|
+
}
|
|
15104
|
+
}
|
|
15105
|
+
|
|
15106
|
+
}
|
|
15107
|
+
}
|
|
15108
|
+
|
|
14859
15109
|
/**
|
|
14860
15110
|
* Template list
|
|
14861
15111
|
* @class
|
|
@@ -15272,6 +15522,41 @@ class ModifyAlarmPolicyNoticeResponse extends AbstractModel {
|
|
|
15272
15522
|
}
|
|
15273
15523
|
}
|
|
15274
15524
|
|
|
15525
|
+
/**
|
|
15526
|
+
* TMP internal dynamics API agent response
|
|
15527
|
+
* @class
|
|
15528
|
+
*/
|
|
15529
|
+
class PrometheusDynamicAPIResponseHTTP extends AbstractModel {
|
|
15530
|
+
constructor(){
|
|
15531
|
+
super();
|
|
15532
|
+
|
|
15533
|
+
/**
|
|
15534
|
+
* <p>HTTP status code</p>
|
|
15535
|
+
* @type {number || null}
|
|
15536
|
+
*/
|
|
15537
|
+
this.StatusCode = null;
|
|
15538
|
+
|
|
15539
|
+
/**
|
|
15540
|
+
* <p>HTTP response body</p>
|
|
15541
|
+
* @type {string || null}
|
|
15542
|
+
*/
|
|
15543
|
+
this.ResponseBody = null;
|
|
15544
|
+
|
|
15545
|
+
}
|
|
15546
|
+
|
|
15547
|
+
/**
|
|
15548
|
+
* @private
|
|
15549
|
+
*/
|
|
15550
|
+
deserialize(params) {
|
|
15551
|
+
if (!params) {
|
|
15552
|
+
return;
|
|
15553
|
+
}
|
|
15554
|
+
this.StatusCode = 'StatusCode' in params ? params.StatusCode : null;
|
|
15555
|
+
this.ResponseBody = 'ResponseBody' in params ? params.ResponseBody : null;
|
|
15556
|
+
|
|
15557
|
+
}
|
|
15558
|
+
}
|
|
15559
|
+
|
|
15275
15560
|
/**
|
|
15276
15561
|
* Prometheus alerting rule
|
|
15277
15562
|
* @class
|
|
@@ -24764,6 +25049,7 @@ module.exports = {
|
|
|
24764
25049
|
InstallPluginsRequest: InstallPluginsRequest,
|
|
24765
25050
|
DescribeAlarmEventsResponse: DescribeAlarmEventsResponse,
|
|
24766
25051
|
DescribeServiceDiscoveryResponse: DescribeServiceDiscoveryResponse,
|
|
25052
|
+
ExportPrometheusReadOnlyDynamicAPIRequest: ExportPrometheusReadOnlyDynamicAPIRequest,
|
|
24767
25053
|
PrometheusTag: PrometheusTag,
|
|
24768
25054
|
DescribePolicyConditionListMetric: DescribePolicyConditionListMetric,
|
|
24769
25055
|
BindingPolicyObjectRequest: BindingPolicyObjectRequest,
|
|
@@ -24846,6 +25132,7 @@ module.exports = {
|
|
|
24846
25132
|
DeleteRecordingRulesRequest: DeleteRecordingRulesRequest,
|
|
24847
25133
|
MonitorTypeNamespace: MonitorTypeNamespace,
|
|
24848
25134
|
UninstallGrafanaPluginsRequest: UninstallGrafanaPluginsRequest,
|
|
25135
|
+
PrometheusStringKeyValuePair: PrometheusStringKeyValuePair,
|
|
24849
25136
|
DeleteSSOAccountResponse: DeleteSSOAccountResponse,
|
|
24850
25137
|
DescribePolicyGroupListGroup: DescribePolicyGroupListGroup,
|
|
24851
25138
|
GrafanaAccountInfo: GrafanaAccountInfo,
|
|
@@ -24879,6 +25166,7 @@ module.exports = {
|
|
|
24879
25166
|
DescribeConditionsTemplateListRequest: DescribeConditionsTemplateListRequest,
|
|
24880
25167
|
DeletePrometheusRecordRuleYamlResponse: DeletePrometheusRecordRuleYamlResponse,
|
|
24881
25168
|
MetricDataPoint: MetricDataPoint,
|
|
25169
|
+
ExportPrometheusReadOnlyDynamicAPIResponse: ExportPrometheusReadOnlyDynamicAPIResponse,
|
|
24882
25170
|
GetMonitorDataRequest: GetMonitorDataRequest,
|
|
24883
25171
|
CreateRecordingRuleRequest: CreateRecordingRuleRequest,
|
|
24884
25172
|
ModifyPrometheusConfigRequest: ModifyPrometheusConfigRequest,
|
|
@@ -24893,6 +25181,7 @@ module.exports = {
|
|
|
24893
25181
|
CreateServiceDiscoveryRequest: CreateServiceDiscoveryRequest,
|
|
24894
25182
|
PeriodsSt: PeriodsSt,
|
|
24895
25183
|
ModifyAlarmReceiversResponse: ModifyAlarmReceiversResponse,
|
|
25184
|
+
RoutePrometheusDynamicAPIResponse: RoutePrometheusDynamicAPIResponse,
|
|
24896
25185
|
GrafanaChannel: GrafanaChannel,
|
|
24897
25186
|
CreatePrometheusConfigRequest: CreatePrometheusConfigRequest,
|
|
24898
25187
|
DescribeSSOAccountResponse: DescribeSSOAccountResponse,
|
|
@@ -24906,6 +25195,7 @@ module.exports = {
|
|
|
24906
25195
|
DescribePrometheusInstancesOverviewResponse: DescribePrometheusInstancesOverviewResponse,
|
|
24907
25196
|
MetricSet: MetricSet,
|
|
24908
25197
|
DescribePrometheusRecordRuleYamlResponse: DescribePrometheusRecordRuleYamlResponse,
|
|
25198
|
+
RoutePrometheusDynamicAPIRequest: RoutePrometheusDynamicAPIRequest,
|
|
24909
25199
|
TemplateGroup: TemplateGroup,
|
|
24910
25200
|
DescribeBindingPolicyObjectListInstance: DescribeBindingPolicyObjectListInstance,
|
|
24911
25201
|
UpdateGrafanaIntegrationResponse: UpdateGrafanaIntegrationResponse,
|
|
@@ -24914,6 +25204,7 @@ module.exports = {
|
|
|
24914
25204
|
CreateSSOAccountRequest: CreateSSOAccountRequest,
|
|
24915
25205
|
AlarmPolicyFilter: AlarmPolicyFilter,
|
|
24916
25206
|
ModifyAlarmPolicyNoticeResponse: ModifyAlarmPolicyNoticeResponse,
|
|
25207
|
+
PrometheusDynamicAPIResponseHTTP: PrometheusDynamicAPIResponseHTTP,
|
|
24917
25208
|
PrometheusAlertRule: PrometheusAlertRule,
|
|
24918
25209
|
UnbindPrometheusManagedGrafanaResponse: UnbindPrometheusManagedGrafanaResponse,
|
|
24919
25210
|
DescribeGrafanaChannelsResponse: DescribeGrafanaChannelsResponse,
|
|
@@ -137,6 +137,7 @@ const DescribePolicyConditionListConfigManual = models.DescribePolicyConditionLi
|
|
|
137
137
|
const InstallPluginsRequest = models.InstallPluginsRequest;
|
|
138
138
|
const DescribeAlarmEventsResponse = models.DescribeAlarmEventsResponse;
|
|
139
139
|
const DescribeServiceDiscoveryResponse = models.DescribeServiceDiscoveryResponse;
|
|
140
|
+
const ExportPrometheusReadOnlyDynamicAPIRequest = models.ExportPrometheusReadOnlyDynamicAPIRequest;
|
|
140
141
|
const PrometheusTag = models.PrometheusTag;
|
|
141
142
|
const DescribePolicyConditionListMetric = models.DescribePolicyConditionListMetric;
|
|
142
143
|
const BindingPolicyObjectRequest = models.BindingPolicyObjectRequest;
|
|
@@ -219,6 +220,7 @@ const DescribeDNSConfigResponse = models.DescribeDNSConfigResponse;
|
|
|
219
220
|
const DeleteRecordingRulesRequest = models.DeleteRecordingRulesRequest;
|
|
220
221
|
const MonitorTypeNamespace = models.MonitorTypeNamespace;
|
|
221
222
|
const UninstallGrafanaPluginsRequest = models.UninstallGrafanaPluginsRequest;
|
|
223
|
+
const PrometheusStringKeyValuePair = models.PrometheusStringKeyValuePair;
|
|
222
224
|
const DeleteSSOAccountResponse = models.DeleteSSOAccountResponse;
|
|
223
225
|
const DescribePolicyGroupListGroup = models.DescribePolicyGroupListGroup;
|
|
224
226
|
const GrafanaAccountInfo = models.GrafanaAccountInfo;
|
|
@@ -252,6 +254,7 @@ const PrometheusInstancesItem = models.PrometheusInstancesItem;
|
|
|
252
254
|
const DescribeConditionsTemplateListRequest = models.DescribeConditionsTemplateListRequest;
|
|
253
255
|
const DeletePrometheusRecordRuleYamlResponse = models.DeletePrometheusRecordRuleYamlResponse;
|
|
254
256
|
const MetricDataPoint = models.MetricDataPoint;
|
|
257
|
+
const ExportPrometheusReadOnlyDynamicAPIResponse = models.ExportPrometheusReadOnlyDynamicAPIResponse;
|
|
255
258
|
const GetMonitorDataRequest = models.GetMonitorDataRequest;
|
|
256
259
|
const CreateRecordingRuleRequest = models.CreateRecordingRuleRequest;
|
|
257
260
|
const ModifyPrometheusConfigRequest = models.ModifyPrometheusConfigRequest;
|
|
@@ -266,6 +269,7 @@ const DescribePrometheusTargetsTMPRequest = models.DescribePrometheusTargetsTMPR
|
|
|
266
269
|
const CreateServiceDiscoveryRequest = models.CreateServiceDiscoveryRequest;
|
|
267
270
|
const PeriodsSt = models.PeriodsSt;
|
|
268
271
|
const ModifyAlarmReceiversResponse = models.ModifyAlarmReceiversResponse;
|
|
272
|
+
const RoutePrometheusDynamicAPIResponse = models.RoutePrometheusDynamicAPIResponse;
|
|
269
273
|
const GrafanaChannel = models.GrafanaChannel;
|
|
270
274
|
const CreatePrometheusConfigRequest = models.CreatePrometheusConfigRequest;
|
|
271
275
|
const DescribeSSOAccountResponse = models.DescribeSSOAccountResponse;
|
|
@@ -279,6 +283,7 @@ const ModifyAlarmPolicyConditionResponse = models.ModifyAlarmPolicyConditionResp
|
|
|
279
283
|
const DescribePrometheusInstancesOverviewResponse = models.DescribePrometheusInstancesOverviewResponse;
|
|
280
284
|
const MetricSet = models.MetricSet;
|
|
281
285
|
const DescribePrometheusRecordRuleYamlResponse = models.DescribePrometheusRecordRuleYamlResponse;
|
|
286
|
+
const RoutePrometheusDynamicAPIRequest = models.RoutePrometheusDynamicAPIRequest;
|
|
282
287
|
const TemplateGroup = models.TemplateGroup;
|
|
283
288
|
const DescribeBindingPolicyObjectListInstance = models.DescribeBindingPolicyObjectListInstance;
|
|
284
289
|
const UpdateGrafanaIntegrationResponse = models.UpdateGrafanaIntegrationResponse;
|
|
@@ -287,6 +292,7 @@ const DescribeAlarmMetricsRequest = models.DescribeAlarmMetricsRequest;
|
|
|
287
292
|
const CreateSSOAccountRequest = models.CreateSSOAccountRequest;
|
|
288
293
|
const AlarmPolicyFilter = models.AlarmPolicyFilter;
|
|
289
294
|
const ModifyAlarmPolicyNoticeResponse = models.ModifyAlarmPolicyNoticeResponse;
|
|
295
|
+
const PrometheusDynamicAPIResponseHTTP = models.PrometheusDynamicAPIResponseHTTP;
|
|
290
296
|
const PrometheusAlertRule = models.PrometheusAlertRule;
|
|
291
297
|
const UnbindPrometheusManagedGrafanaResponse = models.UnbindPrometheusManagedGrafanaResponse;
|
|
292
298
|
const DescribeGrafanaChannelsResponse = models.DescribeGrafanaChannelsResponse;
|
|
@@ -526,6 +532,31 @@ Note that alert object and alert message are special fields of Prometheus Rule A
|
|
|
526
532
|
this.request("UpdateAlertRule", req, resp, cb);
|
|
527
533
|
}
|
|
528
534
|
|
|
535
|
+
/**
|
|
536
|
+
* Prometheus internal read-only dynamic api proxy supports accessing native Prometheus APIs via cloud api format
|
|
537
|
+
support the following APIs:
|
|
538
|
+
|
|
539
|
+
| path | method | purpose |
|
|
540
|
+
| - | - | - |
|
|
541
|
+
/api/v1/query | GET, POST | point query
|
|
542
|
+
/api/v1/query_range | GET, POST | Range query
|
|
543
|
+
/api/v1/series | GET, POST | Query the series list
|
|
544
|
+
/api/v1/labels | GET, POST | Query labels
|
|
545
|
+
/api/v1/label/{label_name}/values | GET | Query label values.
|
|
546
|
+
/api/v1/rules | GET | Query pre-aggregation and alert rules.
|
|
547
|
+
/api/v1/user_limits | GET | Query prometheus instance limits
|
|
548
|
+
/alertmanager/api/v2/alerts/groups | GET | Query current alarm information
|
|
549
|
+
/alertmanager/api/v2/silences | GET | Query alert silences
|
|
550
|
+
/alertmanager/api/v2/silence/{id} | GET | Query alert silence details
|
|
551
|
+
* @param {ExportPrometheusReadOnlyDynamicAPIRequest} req
|
|
552
|
+
* @param {function(string, ExportPrometheusReadOnlyDynamicAPIResponse):void} cb
|
|
553
|
+
* @public
|
|
554
|
+
*/
|
|
555
|
+
ExportPrometheusReadOnlyDynamicAPI(req, cb) {
|
|
556
|
+
let resp = new ExportPrometheusReadOnlyDynamicAPIResponse();
|
|
557
|
+
this.request("ExportPrometheusReadOnlyDynamicAPI", req, resp, cb);
|
|
558
|
+
}
|
|
559
|
+
|
|
529
560
|
/**
|
|
530
561
|
* This API is used to modify a TMP 2.0 instance alerting rule.
|
|
531
562
|
* @param {ModifyPrometheusAlertPolicyRequest} req
|
|
@@ -878,6 +909,33 @@ Note that alert object and alert message are special fields of Prometheus Rule A
|
|
|
878
909
|
this.request("UnBindingPolicyObject", req, resp, cb);
|
|
879
910
|
}
|
|
880
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Prometheus internal dynamics api proxy supports accessing Prometheus native APIs via cloud APIs.
|
|
914
|
+
support the following APIs:
|
|
915
|
+
|
|
916
|
+
It is recommended to use the ExportPrometheusReadOnlyDynamicAPI call for Read API, supporting longer query latency and response size. Meanwhile, it makes permission management easy.
|
|
917
|
+
|
|
918
|
+
| path | method | purpose |
|
|
919
|
+
| - | - | - |
|
|
920
|
+
/api/v1/query | GET, POST | point query
|
|
921
|
+
/api/v1/query_range | GET, POST | Range query
|
|
922
|
+
/api/v1/series | GET, POST | Query the series list
|
|
923
|
+
/api/v1/labels | GET, POST | Query labels
|
|
924
|
+
/api/v1/label/{label_name}/values | GET | Query label values.
|
|
925
|
+
/api/v1/rules | GET | Query pre-aggregation and alert rules.
|
|
926
|
+
/api/v1/user_limits | GET | Query prometheus instance limits
|
|
927
|
+
/alertmanager/api/v2/alerts/groups | GET | Query current alarm information
|
|
928
|
+
/alertmanager/api/v2/silences | GET, POST | Query, create, or modify alert silences
|
|
929
|
+
/alertmanager/api/v2/silence/{id} | GET, DELETE | Query alert silence details, Delete alert silence
|
|
930
|
+
* @param {RoutePrometheusDynamicAPIRequest} req
|
|
931
|
+
* @param {function(string, RoutePrometheusDynamicAPIResponse):void} cb
|
|
932
|
+
* @public
|
|
933
|
+
*/
|
|
934
|
+
RoutePrometheusDynamicAPI(req, cb) {
|
|
935
|
+
let resp = new RoutePrometheusDynamicAPIResponse();
|
|
936
|
+
this.request("RoutePrometheusDynamicAPI", req, resp, cb);
|
|
937
|
+
}
|
|
938
|
+
|
|
881
939
|
/**
|
|
882
940
|
* This API is used to query the list of exporter integrations.
|
|
883
941
|
* @param {DescribeExporterIntegrationsRequest} req
|