@stacksjs/ts-cloud 0.5.14 → 0.5.15

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.
@@ -5,6 +5,8 @@ export interface MetricDatapoint {
5
5
  Average?: number;
6
6
  Maximum?: number;
7
7
  Minimum?: number;
8
+ /** Percentile values when ExtendedStatistics were requested, e.g. { p95: 86 }. */
9
+ Percentiles?: Record<string, number>;
8
10
  Unit?: string;
9
11
  }
10
12
  /** A CloudWatch alarm summary. */
@@ -36,8 +38,27 @@ export declare class CloudWatchClient {
36
38
  StartTime: Date;
37
39
  EndTime: Date;
38
40
  Period: number;
39
- Statistics: Array<'Sum' | 'Average' | 'Maximum' | 'Minimum'>;
41
+ Statistics?: Array<'Sum' | 'Average' | 'Maximum' | 'Minimum'>;
42
+ /** Percentiles like ['p50','p95','p99'] (CloudWatch ExtendedStatistics). */
43
+ ExtendedStatistics?: string[];
40
44
  }): Promise<MetricDatapoint[]>;
45
+ /**
46
+ * Return a time-ordered series of a single statistic over a window — for
47
+ * sparklines. `stat` is 'Sum'|'Average'|'Maximum'|'Minimum' or a percentile
48
+ * like 'p95'.
49
+ */
50
+ getMetricSeries(options: {
51
+ Namespace: string;
52
+ MetricName: string;
53
+ Dimensions?: Array<{
54
+ Name: string;
55
+ Value: string;
56
+ }>;
57
+ StartTime: Date;
58
+ EndTime: Date;
59
+ Period: number;
60
+ Stat: string;
61
+ }): Promise<number[]>;
41
62
  /** List alarms, optionally filtered by name prefix. */
42
63
  describeAlarms(options?: {
43
64
  AlarmNamePrefix?: string;