UNPKG

5.11 kBTypeScriptView Raw
1import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
2declare module "./topic-base" {
3 interface ITopic {
4 /**
5 * Return the given named metric for this Topic
6 */
7 metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
8 /**
9 * Metric for the size of messages published through this topic
10 *
11 * Average over 5 minutes
12 */
13 metricPublishSize(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
14 /**
15 * The number of messages published to your Amazon SNS topics.
16 *
17 * Sum over 5 minutes
18 */
19 metricNumberOfMessagesPublished(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
20 /**
21 * The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.
22 *
23 * Sum over 5 minutes
24 */
25 metricNumberOfNotificationsDelivered(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
26 /**
27 * The number of messages that Amazon SNS failed to deliver.
28 *
29 * Sum over 5 minutes
30 */
31 metricNumberOfNotificationsFailed(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
32 /**
33 * The number of messages that were rejected by subscription filter policies.
34 *
35 * Sum over 5 minutes
36 */
37 metricNumberOfNotificationsFilteredOut(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
38 /**
39 * The number of messages that were rejected by subscription filter policies because the messages have no attributes.
40 *
41 * Sum over 5 minutes
42 */
43 metricNumberOfNotificationsFilteredOutNoMessageAttributes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
44 /**
45 * The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid
46 *
47 * Sum over 5 minutes
48 */
49 metricNumberOfNotificationsFilteredOutInvalidAttributes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
50 /**
51 * The charges you have accrued since the start of the current calendar month for sending SMS messages.
52 *
53 * Maximum over 5 minutes
54 */
55 metricSMSMonthToDateSpentUSD(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
56 /**
57 * The rate of successful SMS message deliveries.
58 *
59 * Sum over 5 minutes
60 */
61 metricSMSSuccessRate(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
62 }
63 interface TopicBase {
64 /**
65 * Return the given named metric for this Topic
66 */
67 metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
68 /**
69 * Metric for the size of messages published through this topic
70 *
71 * Average over 5 minutes
72 */
73 metricPublishSize(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
74 /**
75 * The number of messages published to your Amazon SNS topics.
76 *
77 * Sum over 5 minutes
78 */
79 metricNumberOfMessagesPublished(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
80 /**
81 * The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.
82 *
83 * Sum over 5 minutes
84 */
85 metricNumberOfNotificationsDelivered(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
86 /**
87 * The number of messages that Amazon SNS failed to deliver.
88 *
89 * Sum over 5 minutes
90 */
91 metricNumberOfNotificationsFailed(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
92 /**
93 * The number of messages that were rejected by subscription filter policies.
94 *
95 * Sum over 5 minutes
96 */
97 metricNumberOfNotificationsFilteredOut(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
98 /**
99 * The number of messages that were rejected by subscription filter policies because the messages have no attributes.
100 *
101 * Sum over 5 minutes
102 */
103 metricNumberOfNotificationsFilteredOutNoMessageAttributes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
104 /**
105 * The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid
106 *
107 * Sum over 5 minutes
108 */
109 metricNumberOfNotificationsFilteredOutInvalidAttributes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
110 /**
111 * The charges you have accrued since the start of the current calendar month for sending SMS messages.
112 *
113 * Maximum over 5 minutes
114 */
115 metricSMSMonthToDateSpentUSD(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
116 /**
117 * The rate of successful SMS message deliveries.
118 *
119 * Sum over 5 minutes
120 */
121 metricSMSSuccessRate(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
122 }
123}