@ucloud-sdks/ucloud-sdk-js 0.2.49 → 0.2.51

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.
@@ -45,6 +45,12 @@ export default class CloudWatchClient extends Client {
45
45
  * See also: https://docs.ucloud.cn/api/cloudwatch-api/get_metric_data_aggregation_method
46
46
  */
47
47
  getMetricDataAggregationMethod(request?: GetMetricDataAggregationMethodRequest): Promise<GetMetricDataAggregationMethodResponse>;
48
+ /**
49
+ * GetProductHighPrecisionMetrics - 获取云产品关联的高精度指标列表
50
+ *
51
+ * See also: https://docs.ucloud.cn/api/cloudwatch-api/get_product_high_precision_metrics
52
+ */
53
+ getProductHighPrecisionMetrics(request?: GetProductHighPrecisionMetricsRequest): Promise<GetProductHighPrecisionMetricsResponse>;
48
54
  /**
49
55
  * GetProductMetrics - 获取云产品关联的指标列表
50
56
  *
@@ -93,6 +99,12 @@ export default class CloudWatchClient extends Client {
93
99
  * See also: https://docs.ucloud.cn/api/cloudwatch-api/query_metric_data_summary
94
100
  */
95
101
  queryMetricDataSummary(request?: QueryMetricDataSummaryRequest): Promise<QueryMetricDataSummaryResponse>;
102
+ /**
103
+ * QueryMetricDenseData - 获取高精度指标样本数据
104
+ *
105
+ * See also: https://docs.ucloud.cn/api/cloudwatch-api/query_metric_dense_data
106
+ */
107
+ queryMetricDenseData(request?: QueryMetricDenseDataRequest): Promise<QueryMetricDenseDataResponse>;
96
108
  /**
97
109
  * UnBindAlertStrategy - 解绑告警策略
98
110
  *
@@ -404,6 +416,173 @@ export interface GetMetricDataAggregationMethodResponse {
404
416
  }[];
405
417
  };
406
418
  }
419
+ /**
420
+ * GetProductHighPrecisionMetrics - 获取云产品关联的高精度指标列表
421
+ */
422
+ export interface GetProductHighPrecisionMetricsRequest {
423
+ /**
424
+ * 产品唯一标识,参见 [产品概览](https://docs.ucloud.cn/cloudwatch/metric/intro)
425
+ */
426
+ ProductKey: string;
427
+ }
428
+ /**
429
+ * GetProductHighPrecisionMetrics - 获取云产品关联的高精度指标列表
430
+ */
431
+ export interface GetProductHighPrecisionMetricsResponse {
432
+ /**
433
+ * 返回数据
434
+ */
435
+ Data: {
436
+ /**
437
+ * 查询结果总数
438
+ */
439
+ Total?: number;
440
+ /**
441
+ * 指标列表
442
+ */
443
+ List?: {
444
+ /**
445
+ * 云产品ID
446
+ */
447
+ ProductType?: number;
448
+ /**
449
+ * 单位ID
450
+ */
451
+ UnitID?: number;
452
+ /**
453
+ * 指标ID
454
+ */
455
+ MetricID?: number;
456
+ /**
457
+ * 指标唯一标识 (uhost_cpu_usage)
458
+ */
459
+ Metric?: string;
460
+ /**
461
+ * 指标英文名称
462
+ */
463
+ MetricEnName?: string;
464
+ /**
465
+ * 指标中文名称
466
+ */
467
+ MetricChName?: string;
468
+ /**
469
+ * 指标英文描述
470
+ */
471
+ MetricEnDesc?: string;
472
+ /**
473
+ * 指标中文描述
474
+ */
475
+ MetricChDesc?: string;
476
+ /**
477
+ * 指标分类/指标组
478
+ */
479
+ MetricGroup?: string;
480
+ /**
481
+ * 上报频率毫秒
482
+ */
483
+ FrequencyMs?: number;
484
+ /**
485
+ * 单位
486
+ */
487
+ Unit?: {
488
+ /**
489
+ * 单位id
490
+ */
491
+ UnitID?: number;
492
+ /**
493
+ * GroupId
494
+ */
495
+ GroupId?: number;
496
+ /**
497
+ * 单位英文名称
498
+ */
499
+ UnitEnName?: string;
500
+ /**
501
+ * 单位中文名称
502
+ */
503
+ UnitChName?: string;
504
+ /**
505
+ * 单位描述
506
+ */
507
+ UnitDesc?: string;
508
+ /**
509
+ * 转换因子
510
+ */
511
+ ConversionFactor?: number;
512
+ /**
513
+ * 创建人
514
+ */
515
+ CreatedBy?: string;
516
+ /**
517
+ * 修改人
518
+ */
519
+ UpdatedBy?: string;
520
+ /**
521
+ * 创建时间
522
+ */
523
+ CreatedAt?: string;
524
+ /**
525
+ * 修改时间
526
+ */
527
+ UpdatedAt?: string;
528
+ /**
529
+ * 删除时间
530
+ */
531
+ DeletedAt?: number;
532
+ };
533
+ /**
534
+ * 创建者
535
+ */
536
+ CreatedBy?: string;
537
+ /**
538
+ * 创建时间
539
+ */
540
+ CreatedAt?: string;
541
+ /**
542
+ * 修改者
543
+ */
544
+ UpdatedBy?: string;
545
+ /**
546
+ * 修改时间
547
+ */
548
+ UpdatedAt?: string;
549
+ }[];
550
+ /**
551
+ * 单位转换信息
552
+ */
553
+ UnitConfigs?: {
554
+ /**
555
+ * 指标中文名列表
556
+ */
557
+ UnitCnNames?: string[];
558
+ /**
559
+ * 指标英文名列表
560
+ */
561
+ UnitEnNames?: string[];
562
+ /**
563
+ * 转换因子
564
+ */
565
+ ConversionFactor?: number;
566
+ /**
567
+ * 转换规则
568
+ */
569
+ ConversionRules?: {
570
+ /**
571
+ * 来源
572
+ */
573
+ From?: string;
574
+ /**
575
+ * 目标
576
+ */
577
+ To?: string;
578
+ /**
579
+ * 转换因子
580
+ */
581
+ ConversionFactor?: number;
582
+ }[];
583
+ }[];
584
+ };
585
+ }
407
586
  /**
408
587
  * GetProductMetrics - 获取云产品关联的指标列表
409
588
  */
@@ -1425,6 +1604,128 @@ export interface QueryMetricDataSummaryResponse {
1425
1604
  }[];
1426
1605
  };
1427
1606
  }
1607
+ /**
1608
+ * QueryMetricDenseData - 获取高精度指标样本数据
1609
+ */
1610
+ export interface QueryMetricDenseDataRequest {
1611
+ /**
1612
+ * 资源类型
1613
+ */
1614
+ ProductKey: string;
1615
+ /**
1616
+ * 开始时间戳
1617
+ */
1618
+ StartTime: number;
1619
+ /**
1620
+ * 截止时间戳
1621
+ */
1622
+ EndTime: number;
1623
+ /**
1624
+ *
1625
+ */
1626
+ MetricInfos?: {
1627
+ /**
1628
+ * 指标名
1629
+ */
1630
+ Metric?: string;
1631
+ /**
1632
+ * 资源id
1633
+ */
1634
+ ResourceId?: string;
1635
+ /**
1636
+ *
1637
+ */
1638
+ Tags?: {
1639
+ /**
1640
+ * AnyKey:代表任意一个用户自定义的key。Tags是一个用户自定义对象map,是要查询指标的tag的key和value。用户自定义的Tags对象里的key和value,它们分别是要查询的tag的key和value。如:"Tags":{ "tag1":"value1", "tag2":"value2", "tag3":"value3"}
1641
+ */
1642
+ AnyKey?: string;
1643
+ };
1644
+ }[];
1645
+ }
1646
+ /**
1647
+ * QueryMetricDenseData - 获取高精度指标样本数据
1648
+ */
1649
+ export interface QueryMetricDenseDataResponse {
1650
+ /**
1651
+ * 返回高精度指标监控数据
1652
+ */
1653
+ Data?: {
1654
+ /**
1655
+ * 无效或无权限资源的 ID 列表
1656
+ */
1657
+ InvalidResourceIds?: string[];
1658
+ /**
1659
+ * 查询的结果集
1660
+ */
1661
+ List?: {
1662
+ /**
1663
+ * 指标名
1664
+ */
1665
+ Metric?: string;
1666
+ /**
1667
+ * 该指标查询的处理状态码
1668
+ */
1669
+ ErrCode?: number;
1670
+ /**
1671
+ * 该指标查询的状态说明
1672
+ */
1673
+ ErrMsg?: string;
1674
+ /**
1675
+ * 标签列表。每项为 TagEntry:TagName(标签名)和 KeyList(该标签的全部候选值)。
1676
+ */
1677
+ TagEntries?: {
1678
+ /**
1679
+ * 标签名称
1680
+ */
1681
+ TagName?: string;
1682
+ /**
1683
+ * 标签候选值列表
1684
+ */
1685
+ KeyList?: string[];
1686
+ }[];
1687
+ /**
1688
+ * 查询到的时间序列列表
1689
+ */
1690
+ Results?: {
1691
+ /**
1692
+ * 资源的短id
1693
+ */
1694
+ ResourceId?: string;
1695
+ /**
1696
+ * 资源名称
1697
+ */
1698
+ ResourceName?: string;
1699
+ /**
1700
+ * 资源标签列表。每项为 TagListItem:Tag(标签名)和 TagValue(标签值)。
1701
+ */
1702
+ TagList?: {
1703
+ /**
1704
+ * 标签名
1705
+ */
1706
+ Tag?: string;
1707
+ /**
1708
+ * 标签值
1709
+ */
1710
+ TagValue?: string;
1711
+ }[];
1712
+ /**
1713
+ * 指标数据点列表,元素为 MetricPoint
1714
+ */
1715
+ Values?: {
1716
+ /**
1717
+ * 时间戳
1718
+ */
1719
+ Timestamp?: number;
1720
+ /**
1721
+ * 样本值
1722
+ */
1723
+ Value?: number;
1724
+ }[];
1725
+ }[];
1726
+ }[];
1727
+ };
1728
+ }
1428
1729
  /**
1429
1730
  * UnBindAlertStrategy - 解绑告警策略
1430
1731
  */
@@ -66,6 +66,15 @@ class CloudWatchClient extends client_1.default {
66
66
  const args = Object.assign({ Action: 'GetMetricDataAggregationMethod' }, (request || {}));
67
67
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
68
68
  }
69
+ /**
70
+ * GetProductHighPrecisionMetrics - 获取云产品关联的高精度指标列表
71
+ *
72
+ * See also: https://docs.ucloud.cn/api/cloudwatch-api/get_product_high_precision_metrics
73
+ */
74
+ getProductHighPrecisionMetrics(request) {
75
+ const args = Object.assign({ Action: 'GetProductHighPrecisionMetrics' }, (request || {}));
76
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
77
+ }
69
78
  /**
70
79
  * GetProductMetrics - 获取云产品关联的指标列表
71
80
  *
@@ -138,6 +147,15 @@ class CloudWatchClient extends client_1.default {
138
147
  const args = Object.assign({ Action: 'QueryMetricDataSummary' }, (request || {}));
139
148
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
140
149
  }
150
+ /**
151
+ * QueryMetricDenseData - 获取高精度指标样本数据
152
+ *
153
+ * See also: https://docs.ucloud.cn/api/cloudwatch-api/query_metric_dense_data
154
+ */
155
+ queryMetricDenseData(request) {
156
+ const args = Object.assign({ Action: 'QueryMetricDenseData' }, (request || {}));
157
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
158
+ }
141
159
  /**
142
160
  * UnBindAlertStrategy - 解绑告警策略
143
161
  *
@@ -130,7 +130,7 @@ export interface SendSESEmailResponse {
130
130
  */
131
131
  Bcc?: string[];
132
132
  /**
133
- * 模版变量
133
+ * 模版变量,variableName{##}variableValue 格式;仅使用模版发送(SendSESEmailTemplate)时返回,未使用模版发送(SendSESEmail)时不返回该字段
134
134
  */
135
135
  TemplateVariableParams?: string[];
136
136
  /**
@@ -252,7 +252,7 @@ export interface SendSESEmailTemplateResponse {
252
252
  */
253
253
  Bcc?: string[];
254
254
  /**
255
- * 模版变量
255
+ * 模版变量,variableName{##}variableValue 格式;仅使用模版发送(SendSESEmailTemplate)时返回,未使用模版发送(SendSESEmail)时不返回该字段
256
256
  */
257
257
  TemplateVariableParams?: string[];
258
258
  /**
@@ -628,6 +628,10 @@ export interface ListULogServiceLogSetResponse {
628
628
  * 日志集下主题数量
629
629
  */
630
630
  TopicCount?: number;
631
+ /**
632
+ * 日志集ID
633
+ */
634
+ LogSetId?: string;
631
635
  /**
632
636
  * 日志集备注
633
637
  */
@@ -645,6 +649,10 @@ export interface ListULogServiceLogSetResponse {
645
649
  */
646
650
  UpdateTime?: number;
647
651
  }[];
652
+ /**
653
+ * 日志集数量
654
+ */
655
+ TotalCount?: number;
648
656
  }
649
657
  /**
650
658
  * ListULogServiceMachineGroup - 查看机器组列表
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.49",
4
+ "version": "0.2.51",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,