UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

126 lines (125 loc) 4.39 kB
import * as cw from "../../aws-cloudwatch"; declare module "./queue-base" { interface IQueue { /** * Return the given named metric for this Queue */ metric(metricName: string, props?: cw.MetricOptions): cw.Metric; /** * The approximate age of the oldest non-deleted message in the queue. * * Maximum over 5 minutes */ metricApproximateAgeOfOldestMessage(props?: cw.MetricOptions): cw.Metric; /** * The number of messages in the queue that are delayed and not available for reading immediately. * * Maximum over 5 minutes */ metricApproximateNumberOfMessagesDelayed(props?: cw.MetricOptions): cw.Metric; /** * The number of messages that are in flight. * * Maximum over 5 minutes */ metricApproximateNumberOfMessagesNotVisible(props?: cw.MetricOptions): cw.Metric; /** * The number of messages available for retrieval from the queue. * * Maximum over 5 minutes */ metricApproximateNumberOfMessagesVisible(props?: cw.MetricOptions): cw.Metric; /** * The number of ReceiveMessage API calls that did not return a message. * * Sum over 5 minutes */ metricNumberOfEmptyReceives(props?: cw.MetricOptions): cw.Metric; /** * The number of messages deleted from the queue. * * Sum over 5 minutes */ metricNumberOfMessagesDeleted(props?: cw.MetricOptions): cw.Metric; /** * The number of messages returned by calls to the ReceiveMessage action. * * Sum over 5 minutes */ metricNumberOfMessagesReceived(props?: cw.MetricOptions): cw.Metric; /** * The number of messages added to a queue. * * Sum over 5 minutes */ metricNumberOfMessagesSent(props?: cw.MetricOptions): cw.Metric; /** * The size of messages added to a queue. * * Average over 5 minutes */ metricSentMessageSize(props?: cw.MetricOptions): cw.Metric; } } declare module "./queue-base" { interface QueueBase { /** * Return the given named metric for this Queue */ metric(metricName: string, props?: cw.MetricOptions): cw.Metric; /** * The approximate age of the oldest non-deleted message in the queue. * * Maximum over 5 minutes */ metricApproximateAgeOfOldestMessage(props?: cw.MetricOptions): cw.Metric; /** * The number of messages in the queue that are delayed and not available for reading immediately. * * Maximum over 5 minutes */ metricApproximateNumberOfMessagesDelayed(props?: cw.MetricOptions): cw.Metric; /** * The number of messages that are in flight. * * Maximum over 5 minutes */ metricApproximateNumberOfMessagesNotVisible(props?: cw.MetricOptions): cw.Metric; /** * The number of messages available for retrieval from the queue. * * Maximum over 5 minutes */ metricApproximateNumberOfMessagesVisible(props?: cw.MetricOptions): cw.Metric; /** * The number of ReceiveMessage API calls that did not return a message. * * Sum over 5 minutes */ metricNumberOfEmptyReceives(props?: cw.MetricOptions): cw.Metric; /** * The number of messages deleted from the queue. * * Sum over 5 minutes */ metricNumberOfMessagesDeleted(props?: cw.MetricOptions): cw.Metric; /** * The number of messages returned by calls to the ReceiveMessage action. * * Sum over 5 minutes */ metricNumberOfMessagesReceived(props?: cw.MetricOptions): cw.Metric; /** * The number of messages added to a queue. * * Sum over 5 minutes */ metricNumberOfMessagesSent(props?: cw.MetricOptions): cw.Metric; /** * The size of messages added to a queue. * * Average over 5 minutes */ metricSentMessageSize(props?: cw.MetricOptions): cw.Metric; } }