@aws-sdk/client-cloudwatch 3.692.0 → 3.694.0

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.
Files changed (46) hide show
  1. package/README.md +13 -13
  2. package/dist-cjs/index.js +110 -17
  3. package/dist-es/protocols/Aws_query.js +112 -16
  4. package/dist-types/CloudWatch.d.ts +13 -13
  5. package/dist-types/CloudWatchClient.d.ts +13 -13
  6. package/dist-types/commands/DeleteAlarmsCommand.d.ts +18 -16
  7. package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +5 -10
  8. package/dist-types/commands/DeleteDashboardsCommand.d.ts +4 -4
  9. package/dist-types/commands/DeleteInsightRulesCommand.d.ts +2 -3
  10. package/dist-types/commands/DeleteMetricStreamCommand.d.ts +2 -1
  11. package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +7 -5
  12. package/dist-types/commands/DescribeAlarmsCommand.d.ts +6 -5
  13. package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +5 -5
  14. package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +8 -8
  15. package/dist-types/commands/DescribeInsightRulesCommand.d.ts +2 -2
  16. package/dist-types/commands/DisableAlarmActionsCommand.d.ts +2 -2
  17. package/dist-types/commands/DisableInsightRulesCommand.d.ts +2 -2
  18. package/dist-types/commands/EnableInsightRulesCommand.d.ts +2 -1
  19. package/dist-types/commands/GetDashboardCommand.d.ts +5 -4
  20. package/dist-types/commands/GetInsightRuleReportCommand.d.ts +23 -14
  21. package/dist-types/commands/GetMetricDataCommand.d.ts +50 -34
  22. package/dist-types/commands/GetMetricStatisticsCommand.d.ts +38 -27
  23. package/dist-types/commands/GetMetricStreamCommand.d.ts +2 -1
  24. package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +9 -8
  25. package/dist-types/commands/ListDashboardsCommand.d.ts +9 -9
  26. package/dist-types/commands/ListManagedInsightRulesCommand.d.ts +3 -6
  27. package/dist-types/commands/ListMetricStreamsCommand.d.ts +2 -1
  28. package/dist-types/commands/ListMetricsCommand.d.ts +10 -11
  29. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -3
  30. package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +8 -6
  31. package/dist-types/commands/PutCompositeAlarmCommand.d.ts +33 -31
  32. package/dist-types/commands/PutDashboardCommand.d.ts +15 -12
  33. package/dist-types/commands/PutInsightRuleCommand.d.ts +6 -5
  34. package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +9 -16
  35. package/dist-types/commands/PutMetricAlarmCommand.d.ts +32 -35
  36. package/dist-types/commands/PutMetricDataCommand.d.ts +85 -38
  37. package/dist-types/commands/PutMetricStreamCommand.d.ts +22 -21
  38. package/dist-types/commands/SetAlarmStateCommand.d.ts +16 -16
  39. package/dist-types/commands/StartMetricStreamsCommand.d.ts +2 -1
  40. package/dist-types/commands/StopMetricStreamsCommand.d.ts +2 -1
  41. package/dist-types/commands/TagResourceCommand.d.ts +15 -11
  42. package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
  43. package/dist-types/index.d.ts +13 -13
  44. package/dist-types/models/models_0.d.ts +1312 -1203
  45. package/dist-types/ts3.4/models/models_0.d.ts +28 -18
  46. package/package.json +13 -13
@@ -445,6 +445,31 @@ export declare class LimitExceededException extends __BaseException {
445
445
  opts: __ExceptionOptionType<LimitExceededException, __BaseException>
446
446
  );
447
447
  }
448
+ export interface Entity {
449
+ KeyAttributes?: Record<string, string> | undefined;
450
+ Attributes?: Record<string, string> | undefined;
451
+ }
452
+ export interface StatisticSet {
453
+ SampleCount: number | undefined;
454
+ Sum: number | undefined;
455
+ Minimum: number | undefined;
456
+ Maximum: number | undefined;
457
+ }
458
+ export interface MetricDatum {
459
+ MetricName: string | undefined;
460
+ Dimensions?: Dimension[] | undefined;
461
+ Timestamp?: Date | undefined;
462
+ Value?: number | undefined;
463
+ StatisticValues?: StatisticSet | undefined;
464
+ Values?: number[] | undefined;
465
+ Counts?: number[] | undefined;
466
+ Unit?: StandardUnit | undefined;
467
+ StorageResolution?: number | undefined;
468
+ }
469
+ export interface EntityMetricData {
470
+ Entity?: Entity | undefined;
471
+ MetricData?: MetricDatum[] | undefined;
472
+ }
448
473
  export interface GetDashboardInput {
449
474
  DashboardName: string | undefined;
450
475
  }
@@ -733,26 +758,11 @@ export interface PutMetricAlarmInput {
733
758
  Tags?: Tag[] | undefined;
734
759
  ThresholdMetricId?: string | undefined;
735
760
  }
736
- export interface StatisticSet {
737
- SampleCount: number | undefined;
738
- Sum: number | undefined;
739
- Minimum: number | undefined;
740
- Maximum: number | undefined;
741
- }
742
- export interface MetricDatum {
743
- MetricName: string | undefined;
744
- Dimensions?: Dimension[] | undefined;
745
- Timestamp?: Date | undefined;
746
- Value?: number | undefined;
747
- StatisticValues?: StatisticSet | undefined;
748
- Values?: number[] | undefined;
749
- Counts?: number[] | undefined;
750
- Unit?: StandardUnit | undefined;
751
- StorageResolution?: number | undefined;
752
- }
753
761
  export interface PutMetricDataInput {
754
762
  Namespace: string | undefined;
755
- MetricData: MetricDatum[] | undefined;
763
+ MetricData?: MetricDatum[] | undefined;
764
+ EntityMetricData?: EntityMetricData[] | undefined;
765
+ StrictEntityValidation?: boolean | undefined;
756
766
  }
757
767
  export interface PutMetricStreamInput {
758
768
  Name: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
4
- "version": "3.692.0",
4
+ "version": "3.694.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudwatch",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.692.0",
24
- "@aws-sdk/client-sts": "3.692.0",
25
- "@aws-sdk/core": "3.692.0",
26
- "@aws-sdk/credential-provider-node": "3.692.0",
27
- "@aws-sdk/middleware-host-header": "3.692.0",
28
- "@aws-sdk/middleware-logger": "3.692.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.692.0",
30
- "@aws-sdk/middleware-user-agent": "3.692.0",
31
- "@aws-sdk/region-config-resolver": "3.692.0",
23
+ "@aws-sdk/client-sso-oidc": "3.693.0",
24
+ "@aws-sdk/client-sts": "3.693.0",
25
+ "@aws-sdk/core": "3.693.0",
26
+ "@aws-sdk/credential-provider-node": "3.693.0",
27
+ "@aws-sdk/middleware-host-header": "3.693.0",
28
+ "@aws-sdk/middleware-logger": "3.693.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.693.0",
30
+ "@aws-sdk/middleware-user-agent": "3.693.0",
31
+ "@aws-sdk/region-config-resolver": "3.693.0",
32
32
  "@aws-sdk/types": "3.692.0",
33
- "@aws-sdk/util-endpoints": "3.692.0",
34
- "@aws-sdk/util-user-agent-browser": "3.692.0",
35
- "@aws-sdk/util-user-agent-node": "3.692.0",
33
+ "@aws-sdk/util-endpoints": "3.693.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.693.0",
35
+ "@aws-sdk/util-user-agent-node": "3.693.0",
36
36
  "@smithy/config-resolver": "^3.0.11",
37
37
  "@smithy/core": "^2.5.2",
38
38
  "@smithy/fetch-http-handler": "^4.1.0",