-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Amazon CloudWatch SDK.
--
-- Amazon CloudWatch is a monitoring service for AWS cloud resources and
-- the applications you run on AWS. You can use Amazon CloudWatch to
-- collect and track metrics, collect and monitor log files, and set
-- alarms. Amazon CloudWatch can monitor AWS resources such as Amazon EC2
-- instances, Amazon DynamoDB tables, and Amazon RDS DB instances, as
-- well as custom metrics generated by your applications and services,
-- and any log files your applications generate. You can use Amazon
-- CloudWatch to gain system-wide visibility into resource utilization,
-- application performance, and operational health. You can use these
-- insights to react and keep your application running smoothly.
--
-- See: AWS API Reference
--
-- Warning: This is an experimental preview release which is still
-- under heavy development and not intended for public consumption,
-- caveat emptor!
@package amazonka-cloudwatch
@version 0.2.2
module Network.AWS.CloudWatch.Types
-- | Version 2010-08-01 of the Amazon CloudWatch service.
data CloudWatch
data RESTError :: *
ns :: Text
data StatisticSet
-- | StatisticSet constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
statisticSet :: Double -> Double -> Double -> Double -> StatisticSet
-- | The maximum value of the sample set.
ssMaximum :: Lens' StatisticSet Double
-- | The minimum value of the sample set.
ssMinimum :: Lens' StatisticSet Double
-- | The number of samples used for the statistic set.
ssSampleCount :: Lens' StatisticSet Double
-- | The sum of values for the sample set.
ssSum :: Lens' StatisticSet Double
data MetricAlarm
-- | MetricAlarm constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
metricAlarm :: MetricAlarm
-- | Indicates whether actions should be executed during any changes to the
-- alarm's state.
maActionsEnabled :: Lens' MetricAlarm (Maybe Bool)
-- | The list of actions to execute when this alarm transitions into an
-- ALARM state from any other state. Each action is specified as
-- an Amazon Resource Number (ARN). Currently the only actions supported
-- are publishing to an Amazon SNS topic and triggering an Auto Scaling
-- policy.
maAlarmActions :: Lens' MetricAlarm [Text]
-- | The Amazon Resource Name (ARN) of the alarm.
maAlarmArn :: Lens' MetricAlarm (Maybe Text)
-- | The time stamp of the last update to the alarm configuration. Amazon
-- CloudWatch uses Coordinated Universal Time (UTC) when returning time
-- stamps, which do not accommodate seasonal adjustments such as daylight
-- savings time. For more information, see Time stamps in the
-- Amazon CloudWatch Developer Guide .
maAlarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
-- | The description for the alarm.
maAlarmDescription :: Lens' MetricAlarm (Maybe Text)
-- | The name of the alarm.
maAlarmName :: Lens' MetricAlarm (Maybe Text)
-- | The arithmetic operation to use when comparing the specified
-- Statistic and Threshold. The specified
-- Statistic value is used as the first operand.
maComparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator)
-- | The list of dimensions associated with the alarm's associated metric.
maDimensions :: Lens' MetricAlarm [Dimension]
-- | The number of periods over which data is compared to the specified
-- threshold.
maEvaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
-- | The list of actions to execute when this alarm transitions into an
-- INSUFFICIENT_DATA state from any other state. Each action is
-- specified as an Amazon Resource Number (ARN). Currently the only
-- actions supported are publishing to an Amazon SNS topic or triggering
-- an Auto Scaling policy.
--
-- The current WSDL lists this attribute as UnknownActions.
maInsufficientDataActions :: Lens' MetricAlarm [Text]
-- | The name of the alarm's metric.
maMetricName :: Lens' MetricAlarm (Maybe Text)
-- | The namespace of alarm's associated metric.
maNamespace :: Lens' MetricAlarm (Maybe Text)
-- | The list of actions to execute when this alarm transitions into an
-- OK state from any other state. Each action is specified as an
-- Amazon Resource Number (ARN). Currently the only actions supported are
-- publishing to an Amazon SNS topic and triggering an Auto Scaling
-- policy.
maOKActions :: Lens' MetricAlarm [Text]
-- | The period in seconds over which the statistic is applied.
maPeriod :: Lens' MetricAlarm (Maybe Natural)
-- | A human-readable explanation for the alarm's state.
maStateReason :: Lens' MetricAlarm (Maybe Text)
-- | An explanation for the alarm's state in machine-readable JSON format
maStateReasonData :: Lens' MetricAlarm (Maybe Text)
-- | The time stamp of the last update to the alarm's state. Amazon
-- CloudWatch uses Coordinated Universal Time (UTC) when returning time
-- stamps, which do not accommodate seasonal adjustments such as daylight
-- savings time. For more information, see Time stamps in the
-- Amazon CloudWatch Developer Guide.
maStateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
-- | The state value for the alarm.
maStateValue :: Lens' MetricAlarm (Maybe StateValue)
-- | The statistic to apply to the alarm's associated metric.
maStatistic :: Lens' MetricAlarm (Maybe Statistic)
-- | The value against which the specified statistic is compared.
maThreshold :: Lens' MetricAlarm (Maybe Double)
-- | The unit of the alarm's associated metric.
maUnit :: Lens' MetricAlarm (Maybe StandardUnit)
data HistoryItemType
-- | Action
Action :: HistoryItemType
-- | ConfigurationUpdate
ConfigurationUpdate :: HistoryItemType
-- | StateUpdate
StateUpdate :: HistoryItemType
data MetricDatum
-- | MetricDatum constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
metricDatum :: Text -> MetricDatum
-- | A list of dimensions associated with the metric. Note, when using the
-- Dimensions value in a query, you need to append .member.N to it (e.g.,
-- Dimensions.member.N).
mdDimensions :: Lens' MetricDatum [Dimension]
-- | The name of the metric.
mdMetricName :: Lens' MetricDatum Text
-- | A set of statistical values describing the metric.
mdStatisticValues :: Lens' MetricDatum (Maybe StatisticSet)
-- | The time stamp used for the metric. If not specified, the default
-- value is set to the time the metric data was received. Amazon
-- CloudWatch uses Coordinated Universal Time (UTC) when returning time
-- stamps, which do not accommodate seasonal adjustments such as daylight
-- savings time. For more information, see Time stamps in the
-- Amazon CloudWatch Developer Guide.
mdTimestamp :: Lens' MetricDatum (Maybe UTCTime)
-- | The unit of the metric.
mdUnit :: Lens' MetricDatum (Maybe StandardUnit)
-- | The value for the metric.
--
-- Although the Value parameter accepts numbers of type
-- Double, Amazon CloudWatch truncates values with very large
-- exponents. Values with base-10 exponents greater than 126 (1 x 10^126)
-- are truncated. Likewise, values with base-10 exponents less than -130
-- (1 x 10^-130) are also truncated.
mdValue :: Lens' MetricDatum (Maybe Double)
data StandardUnit
-- | Bits
Bits :: StandardUnit
-- | Bits/Second
BitsSecond :: StandardUnit
-- | Bytes
Bytes :: StandardUnit
-- | Bytes/Second
BytesSecond :: StandardUnit
-- | Count
Count :: StandardUnit
-- | Count/Second
CountSecond :: StandardUnit
-- | Gigabits
Gigabits :: StandardUnit
-- | Gigabits/Second
GigabitsSecond :: StandardUnit
-- | Gigabytes
Gigabytes :: StandardUnit
-- | Gigabytes/Second
GigabytesSecond :: StandardUnit
-- | Kilobits
Kilobits :: StandardUnit
-- | Kilobits/Second
KilobitsSecond :: StandardUnit
-- | Kilobytes
Kilobytes :: StandardUnit
-- | Kilobytes/Second
KilobytesSecond :: StandardUnit
-- | Megabits
Megabits :: StandardUnit
-- | Megabits/Second
MegabitsSecond :: StandardUnit
-- | Megabytes
Megabytes :: StandardUnit
-- | Megabytes/Second
MegabytesSecond :: StandardUnit
-- | Microseconds
Microseconds :: StandardUnit
-- | Milliseconds
Milliseconds :: StandardUnit
-- | None
None :: StandardUnit
-- | Percent
Percent :: StandardUnit
-- | Seconds
Seconds :: StandardUnit
-- | Terabits
Terabits :: StandardUnit
-- | Terabits/Second
TerabitsSecond :: StandardUnit
-- | Terabytes
Terabytes :: StandardUnit
-- | Terabytes/Second
TerabytesSecond :: StandardUnit
data Dimension
-- | Dimension constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
dimension :: Text -> Text -> Dimension
-- | The name of the dimension.
dName :: Lens' Dimension Text
-- | The value representing the dimension measurement
dValue :: Lens' Dimension Text
data ComparisonOperator
-- | GreaterThanOrEqualToThreshold
GreaterThanOrEqualToThreshold :: ComparisonOperator
-- | GreaterThanThreshold
GreaterThanThreshold :: ComparisonOperator
-- | LessThanOrEqualToThreshold
LessThanOrEqualToThreshold :: ComparisonOperator
-- | LessThanThreshold
LessThanThreshold :: ComparisonOperator
data AlarmHistoryItem
-- | AlarmHistoryItem constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
alarmHistoryItem :: AlarmHistoryItem
-- | The descriptive name for the alarm.
ahiAlarmName :: Lens' AlarmHistoryItem (Maybe Text)
-- | Machine-readable data about the alarm in JSON format.
ahiHistoryData :: Lens' AlarmHistoryItem (Maybe Text)
-- | The type of alarm history item.
ahiHistoryItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
-- | A human-readable summary of the alarm history.
ahiHistorySummary :: Lens' AlarmHistoryItem (Maybe Text)
-- | The time stamp for the alarm history item. Amazon CloudWatch uses
-- Coordinated Universal Time (UTC) when returning time stamps, which do
-- not accommodate seasonal adjustments such as daylight savings time.
-- For more information, see Time stamps in the Amazon
-- CloudWatch Developer Guide.
ahiTimestamp :: Lens' AlarmHistoryItem (Maybe UTCTime)
data Metric
-- | Metric constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
metric :: Metric
-- | A list of dimensions associated with the metric.
mDimensions :: Lens' Metric [Dimension]
-- | The name of the metric.
mMetricName :: Lens' Metric (Maybe Text)
-- | The namespace of the metric.
mNamespace :: Lens' Metric (Maybe Text)
data StateValue
-- | ALARM
Alarm :: StateValue
-- | INSUFFICIENT_DATA
InsufficientData :: StateValue
-- | OK
Ok :: StateValue
data Datapoint
-- | Datapoint constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
datapoint :: Datapoint
-- | The average of metric values that correspond to the datapoint.
dAverage :: Lens' Datapoint (Maybe Double)
-- | The maximum of the metric value used for the datapoint.
dMaximum :: Lens' Datapoint (Maybe Double)
-- | The minimum metric value used for the datapoint.
dMinimum :: Lens' Datapoint (Maybe Double)
-- | The number of metric values that contributed to the aggregate value of
-- this datapoint.
dSampleCount :: Lens' Datapoint (Maybe Double)
-- | The sum of metric values used for the datapoint.
dSum :: Lens' Datapoint (Maybe Double)
-- | The time stamp used for the datapoint. Amazon CloudWatch uses
-- Coordinated Universal Time (UTC) when returning time stamps, which do
-- not accommodate seasonal adjustments such as daylight savings time.
-- For more information, see Time stamps in the Amazon
-- CloudWatch Developer Guide.
dTimestamp :: Lens' Datapoint (Maybe UTCTime)
-- | The standard unit used for the datapoint.
dUnit :: Lens' Datapoint (Maybe StandardUnit)
data DimensionFilter
-- | DimensionFilter constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
dimensionFilter :: Text -> DimensionFilter
-- | The dimension name to be matched.
dfName :: Lens' DimensionFilter Text
-- | The value of the dimension to be matched.
dfValue :: Lens' DimensionFilter (Maybe Text)
data Statistic
-- | Average
Average :: Statistic
-- | Maximum
Maximum :: Statistic
-- | Minimum
Minimum :: Statistic
-- | SampleCount
SampleCount :: Statistic
-- | Sum
Sum :: Statistic
instance Eq StatisticSet
instance Ord StatisticSet
instance Read StatisticSet
instance Show StatisticSet
instance Eq HistoryItemType
instance Ord HistoryItemType
instance Read HistoryItemType
instance Show HistoryItemType
instance Generic HistoryItemType
instance Enum HistoryItemType
instance Eq StandardUnit
instance Ord StandardUnit
instance Read StandardUnit
instance Show StandardUnit
instance Generic StandardUnit
instance Enum StandardUnit
instance Eq Dimension
instance Ord Dimension
instance Read Dimension
instance Show Dimension
instance Eq MetricDatum
instance Read MetricDatum
instance Show MetricDatum
instance Eq ComparisonOperator
instance Ord ComparisonOperator
instance Read ComparisonOperator
instance Show ComparisonOperator
instance Generic ComparisonOperator
instance Enum ComparisonOperator
instance Eq AlarmHistoryItem
instance Read AlarmHistoryItem
instance Show AlarmHistoryItem
instance Eq Metric
instance Read Metric
instance Show Metric
instance Eq StateValue
instance Ord StateValue
instance Read StateValue
instance Show StateValue
instance Generic StateValue
instance Enum StateValue
instance Eq Datapoint
instance Read Datapoint
instance Show Datapoint
instance Eq DimensionFilter
instance Ord DimensionFilter
instance Read DimensionFilter
instance Show DimensionFilter
instance Eq Statistic
instance Ord Statistic
instance Read Statistic
instance Show Statistic
instance Generic Statistic
instance Enum Statistic
instance Eq MetricAlarm
instance Read MetricAlarm
instance Show MetricAlarm
instance Datatype D1HistoryItemType
instance Constructor C1_0HistoryItemType
instance Constructor C1_1HistoryItemType
instance Constructor C1_2HistoryItemType
instance Datatype D1StandardUnit
instance Constructor C1_0StandardUnit
instance Constructor C1_1StandardUnit
instance Constructor C1_2StandardUnit
instance Constructor C1_3StandardUnit
instance Constructor C1_4StandardUnit
instance Constructor C1_5StandardUnit
instance Constructor C1_6StandardUnit
instance Constructor C1_7StandardUnit
instance Constructor C1_8StandardUnit
instance Constructor C1_9StandardUnit
instance Constructor C1_10StandardUnit
instance Constructor C1_11StandardUnit
instance Constructor C1_12StandardUnit
instance Constructor C1_13StandardUnit
instance Constructor C1_14StandardUnit
instance Constructor C1_15StandardUnit
instance Constructor C1_16StandardUnit
instance Constructor C1_17StandardUnit
instance Constructor C1_18StandardUnit
instance Constructor C1_19StandardUnit
instance Constructor C1_20StandardUnit
instance Constructor C1_21StandardUnit
instance Constructor C1_22StandardUnit
instance Constructor C1_23StandardUnit
instance Constructor C1_24StandardUnit
instance Constructor C1_25StandardUnit
instance Constructor C1_26StandardUnit
instance Datatype D1ComparisonOperator
instance Constructor C1_0ComparisonOperator
instance Constructor C1_1ComparisonOperator
instance Constructor C1_2ComparisonOperator
instance Constructor C1_3ComparisonOperator
instance Datatype D1StateValue
instance Constructor C1_0StateValue
instance Constructor C1_1StateValue
instance Constructor C1_2StateValue
instance Datatype D1Statistic
instance Constructor C1_0Statistic
instance Constructor C1_1Statistic
instance Constructor C1_2Statistic
instance Constructor C1_3Statistic
instance Constructor C1_4Statistic
instance FromXML Statistic
instance ToQuery Statistic
instance ToHeader Statistic
instance ToByteString Statistic
instance ToText Statistic
instance FromText Statistic
instance Hashable Statistic
instance ToQuery DimensionFilter
instance FromXML DimensionFilter
instance ToQuery Datapoint
instance FromXML Datapoint
instance FromXML StateValue
instance ToQuery StateValue
instance ToHeader StateValue
instance ToByteString StateValue
instance ToText StateValue
instance FromText StateValue
instance Hashable StateValue
instance ToQuery Metric
instance FromXML Metric
instance ToQuery AlarmHistoryItem
instance FromXML AlarmHistoryItem
instance FromXML ComparisonOperator
instance ToQuery ComparisonOperator
instance ToHeader ComparisonOperator
instance ToByteString ComparisonOperator
instance ToText ComparisonOperator
instance FromText ComparisonOperator
instance Hashable ComparisonOperator
instance ToQuery Dimension
instance FromXML Dimension
instance FromXML StandardUnit
instance ToQuery StandardUnit
instance ToHeader StandardUnit
instance ToByteString StandardUnit
instance ToText StandardUnit
instance FromText StandardUnit
instance Hashable StandardUnit
instance ToQuery MetricDatum
instance FromXML MetricDatum
instance FromXML HistoryItemType
instance ToQuery HistoryItemType
instance ToHeader HistoryItemType
instance ToByteString HistoryItemType
instance ToText HistoryItemType
instance FromText HistoryItemType
instance Hashable HistoryItemType
instance ToQuery MetricAlarm
instance FromXML MetricAlarm
instance ToQuery StatisticSet
instance FromXML StatisticSet
instance AWSService CloudWatch
-- | Temporarily sets the state of an alarm. When the updated
-- StateValue differs from the previous value, the action
-- configured for the appropriate state is invoked. This is not a
-- permanent change. The next periodic alarm check (in about a minute)
-- will set the alarm to its actual state.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_SetAlarmState.html
module Network.AWS.CloudWatch.SetAlarmState
data SetAlarmState
-- | SetAlarmState constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
setAlarmState :: Text -> StateValue -> Text -> SetAlarmState
-- | The descriptive name for the alarm. This name must be unique within
-- the user's AWS account. The maximum length is 255 characters.
sasAlarmName :: Lens' SetAlarmState Text
-- | The reason that this alarm is set to this specific state (in
-- human-readable text format)
sasStateReason :: Lens' SetAlarmState Text
-- | The reason that this alarm is set to this specific state (in
-- machine-readable JSON format)
sasStateReasonData :: Lens' SetAlarmState (Maybe Text)
-- | The value of the state.
sasStateValue :: Lens' SetAlarmState StateValue
data SetAlarmStateResponse
-- | SetAlarmStateResponse constructor.
setAlarmStateResponse :: SetAlarmStateResponse
instance Eq SetAlarmState
instance Read SetAlarmState
instance Show SetAlarmState
instance Eq SetAlarmStateResponse
instance Ord SetAlarmStateResponse
instance Read SetAlarmStateResponse
instance Show SetAlarmStateResponse
instance Generic SetAlarmStateResponse
instance Datatype D1SetAlarmStateResponse
instance Constructor C1_0SetAlarmStateResponse
instance AWSRequest SetAlarmState
instance ToHeaders SetAlarmState
instance ToQuery SetAlarmState
instance ToPath SetAlarmState
-- | Publishes metric data points to Amazon CloudWatch. Amazon Cloudwatch
-- associates the data points with the specified metric. If the specified
-- metric does not exist, Amazon CloudWatch creates the metric. It can
-- take up to fifteen minutes for a new metric to appear in calls to the
-- ListMetrics action.
--
-- The size of a PutMetricData request is limited to 8 KB for HTTP GET
-- requests and 40 KB for HTTP POST requests.
--
-- Although the Value parameter accepts numbers of type
-- Double, Amazon CloudWatch truncates values with very large
-- exponents. Values with base-10 exponents greater than 126 (1 x 10^126)
-- are truncated. Likewise, values with base-10 exponents less than -130
-- (1 x 10^-130) are also truncated. Data that is timestamped 24 hours or
-- more in the past may take in excess of 48 hours to become available
-- from submission time using GetMetricStatistics.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html
module Network.AWS.CloudWatch.PutMetricData
data PutMetricData
-- | PutMetricData constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
putMetricData :: Text -> PutMetricData
-- | A list of data describing the metric.
pmdMetricData :: Lens' PutMetricData [MetricDatum]
-- | The namespace for the metric data.
pmdNamespace :: Lens' PutMetricData Text
data PutMetricDataResponse
-- | PutMetricDataResponse constructor.
putMetricDataResponse :: PutMetricDataResponse
instance Eq PutMetricData
instance Read PutMetricData
instance Show PutMetricData
instance Eq PutMetricDataResponse
instance Ord PutMetricDataResponse
instance Read PutMetricDataResponse
instance Show PutMetricDataResponse
instance Generic PutMetricDataResponse
instance Datatype D1PutMetricDataResponse
instance Constructor C1_0PutMetricDataResponse
instance AWSRequest PutMetricData
instance ToHeaders PutMetricData
instance ToQuery PutMetricData
instance ToPath PutMetricData
-- | Creates or updates an alarm and associates it with the specified
-- Amazon CloudWatch metric. Optionally, this operation can associate one
-- or more Amazon Simple Notification Service resources with the alarm.
--
-- When this operation creates an alarm, the alarm state is immediately
-- set to INSUFFICIENT_DATA. The alarm is evaluated and its
-- StateValue is set appropriately. Any actions associated with
-- the StateValue is then executed.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricAlarm.html
module Network.AWS.CloudWatch.PutMetricAlarm
data PutMetricAlarm
-- | PutMetricAlarm constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
putMetricAlarm :: Text -> Text -> Text -> Statistic -> Natural -> Natural -> Double -> ComparisonOperator -> PutMetricAlarm
-- | Indicates whether or not actions should be executed during any changes
-- to the alarm's state.
pmaActionsEnabled :: Lens' PutMetricAlarm (Maybe Bool)
-- | The list of actions to execute when this alarm transitions into an
-- ALARM state from any other state. Each action is specified as
-- an Amazon Resource Number (ARN). Currently the only action supported
-- is publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.
pmaAlarmActions :: Lens' PutMetricAlarm [Text]
-- | The description for the alarm.
pmaAlarmDescription :: Lens' PutMetricAlarm (Maybe Text)
-- | The descriptive name for the alarm. This name must be unique within
-- the user's AWS account
pmaAlarmName :: Lens' PutMetricAlarm Text
-- | The arithmetic operation to use when comparing the specified
-- Statistic and Threshold. The specified
-- Statistic value is used as the first operand.
pmaComparisonOperator :: Lens' PutMetricAlarm ComparisonOperator
-- | The dimensions for the alarm's associated metric.
pmaDimensions :: Lens' PutMetricAlarm [Dimension]
-- | The number of periods over which data is compared to the specified
-- threshold.
pmaEvaluationPeriods :: Lens' PutMetricAlarm Natural
-- | The list of actions to execute when this alarm transitions into an
-- INSUFFICIENT_DATA state from any other state. Each action is
-- specified as an Amazon Resource Number (ARN). Currently the only
-- action supported is publishing to an Amazon SNS topic or an Amazon
-- Auto Scaling policy.
pmaInsufficientDataActions :: Lens' PutMetricAlarm [Text]
-- | The name for the alarm's associated metric.
pmaMetricName :: Lens' PutMetricAlarm Text
-- | The namespace for the alarm's associated metric.
pmaNamespace :: Lens' PutMetricAlarm Text
-- | The list of actions to execute when this alarm transitions into an
-- OK state from any other state. Each action is specified as an
-- Amazon Resource Number (ARN). Currently the only action supported is
-- publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.
pmaOKActions :: Lens' PutMetricAlarm [Text]
-- | The period in seconds over which the specified statistic is applied.
pmaPeriod :: Lens' PutMetricAlarm Natural
-- | The statistic to apply to the alarm's associated metric.
pmaStatistic :: Lens' PutMetricAlarm Statistic
-- | The value against which the specified statistic is compared.
pmaThreshold :: Lens' PutMetricAlarm Double
-- | The unit for the alarm's associated metric.
pmaUnit :: Lens' PutMetricAlarm (Maybe StandardUnit)
data PutMetricAlarmResponse
-- | PutMetricAlarmResponse constructor.
putMetricAlarmResponse :: PutMetricAlarmResponse
instance Eq PutMetricAlarm
instance Read PutMetricAlarm
instance Show PutMetricAlarm
instance Eq PutMetricAlarmResponse
instance Ord PutMetricAlarmResponse
instance Read PutMetricAlarmResponse
instance Show PutMetricAlarmResponse
instance Generic PutMetricAlarmResponse
instance Datatype D1PutMetricAlarmResponse
instance Constructor C1_0PutMetricAlarmResponse
instance AWSRequest PutMetricAlarm
instance ToHeaders PutMetricAlarm
instance ToQuery PutMetricAlarm
instance ToPath PutMetricAlarm
-- | Returns a list of valid metrics stored for the AWS account owner.
-- Returned metrics can be used with GetMetricStatistics to
-- obtain statistical data for a given metric.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html
module Network.AWS.CloudWatch.ListMetrics
data ListMetrics
-- | ListMetrics constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
listMetrics :: ListMetrics
-- | A list of dimensions to filter against.
lmDimensions :: Lens' ListMetrics [DimensionFilter]
-- | The name of the metric to filter against.
lmMetricName :: Lens' ListMetrics (Maybe Text)
-- | The namespace to filter against.
lmNamespace :: Lens' ListMetrics (Maybe Text)
-- | The token returned by a previous call to indicate that there is more
-- data available.
lmNextToken :: Lens' ListMetrics (Maybe Text)
data ListMetricsResponse
-- | ListMetricsResponse constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
listMetricsResponse :: ListMetricsResponse
-- | A list of metrics used to generate statistics for an AWS account.
lmrMetrics :: Lens' ListMetricsResponse [Metric]
-- | A string that marks the start of the next batch of returned results.
lmrNextToken :: Lens' ListMetricsResponse (Maybe Text)
instance Eq ListMetrics
instance Read ListMetrics
instance Show ListMetrics
instance Eq ListMetricsResponse
instance Read ListMetricsResponse
instance Show ListMetricsResponse
instance AWSPager ListMetrics
instance FromXML ListMetricsResponse
instance AWSRequest ListMetrics
instance ToHeaders ListMetrics
instance ToQuery ListMetrics
instance ToPath ListMetrics
-- | Gets statistics for the specified metric.
--
-- The maximum number of data points returned from a single
-- GetMetricStatistics request is 1,440, wereas the maximum number
-- of data points that can be queried is 50,850. If you make a request
-- that generates more than 1,440 data points, Amazon CloudWatch returns
-- an error. In such a case, you can alter the request by narrowing the
-- specified time range or increasing the specified period.
-- Alternatively, you can make multiple requests across adjacent time
-- ranges.
--
-- Amazon CloudWatch aggregates data points based on the length of the
-- period that you specify. For example, if you request
-- statistics with a one-minute granularity, Amazon CloudWatch aggregates
-- data points with time stamps that fall within the same one-minute
-- period. In such a case, the data points queried can greatly outnumber
-- the data points returned.
--
-- The following examples show various statistics allowed by the data
-- point query maximum of 50,850 when you call GetMetricStatistics
-- on Amazon EC2 instances with detailed (one-minute) monitoring enabled:
--
-- Statistics for up to 400 instances for a span of one hour Statistics
-- for up to 35 instances over a span of 24 hours Statistics for up to 2
-- instances over a span of 2 weeks For information about the namespace,
-- metric names, and dimensions that other Amazon Web Services products
-- use to send metrics to Cloudwatch, go to Amazon CloudWatch Metrics,
-- Namespaces, and DimensionsReference in the Amazon CloudWatch
-- Developer Guide.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html
module Network.AWS.CloudWatch.GetMetricStatistics
data GetMetricStatistics
-- | GetMetricStatistics constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
getMetricStatistics :: Text -> Text -> UTCTime -> UTCTime -> Natural -> NonEmpty Statistic -> GetMetricStatistics
-- | A list of dimensions describing qualities of the metric.
gmsDimensions :: Lens' GetMetricStatistics [Dimension]
-- | The time stamp to use for determining the last datapoint to return.
-- The value specified is exclusive; results will include datapoints up
-- to the time stamp specified.
gmsEndTime :: Lens' GetMetricStatistics UTCTime
-- | The name of the metric, with or without spaces.
gmsMetricName :: Lens' GetMetricStatistics Text
-- | The namespace of the metric, with or without spaces.
gmsNamespace :: Lens' GetMetricStatistics Text
-- | The granularity, in seconds, of the returned datapoints.
-- Period must be at least 60 seconds and must be a multiple of
-- 60. The default value is 60.
gmsPeriod :: Lens' GetMetricStatistics Natural
-- | The time stamp to use for determining the first datapoint to return.
-- The value specified is inclusive; results include datapoints with the
-- time stamp specified.
gmsStartTime :: Lens' GetMetricStatistics UTCTime
-- | The metric statistics to return. For information about specific
-- statistics returned by GetMetricStatistics, go to Statistics in
-- the Amazon CloudWatchDeveloper Guide.
--
-- Valid Values: 'Average | Sum | SampleCount | Maximum | Minimum'
gmsStatistics :: Lens' GetMetricStatistics (NonEmpty Statistic)
-- | The unit for the metric.
gmsUnit :: Lens' GetMetricStatistics (Maybe StandardUnit)
data GetMetricStatisticsResponse
-- | GetMetricStatisticsResponse constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
getMetricStatisticsResponse :: GetMetricStatisticsResponse
-- | The datapoints for the specified metric.
gmsrDatapoints :: Lens' GetMetricStatisticsResponse [Datapoint]
-- | A label describing the specified metric.
gmsrLabel :: Lens' GetMetricStatisticsResponse (Maybe Text)
instance Eq GetMetricStatistics
instance Read GetMetricStatistics
instance Show GetMetricStatistics
instance Eq GetMetricStatisticsResponse
instance Read GetMetricStatisticsResponse
instance Show GetMetricStatisticsResponse
instance FromXML GetMetricStatisticsResponse
instance AWSRequest GetMetricStatistics
instance ToHeaders GetMetricStatistics
instance ToQuery GetMetricStatistics
instance ToPath GetMetricStatistics
-- | Enables actions for the specified alarms.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_EnableAlarmActions.html
module Network.AWS.CloudWatch.EnableAlarmActions
data EnableAlarmActions
-- | EnableAlarmActions constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
enableAlarmActions :: EnableAlarmActions
-- | The names of the alarms to enable actions for.
eaaAlarmNames :: Lens' EnableAlarmActions [Text]
data EnableAlarmActionsResponse
-- | EnableAlarmActionsResponse constructor.
enableAlarmActionsResponse :: EnableAlarmActionsResponse
instance Eq EnableAlarmActions
instance Ord EnableAlarmActions
instance Read EnableAlarmActions
instance Show EnableAlarmActions
instance Monoid EnableAlarmActions
instance Semigroup EnableAlarmActions
instance Eq EnableAlarmActionsResponse
instance Ord EnableAlarmActionsResponse
instance Read EnableAlarmActionsResponse
instance Show EnableAlarmActionsResponse
instance Generic EnableAlarmActionsResponse
instance Datatype D1EnableAlarmActionsResponse
instance Constructor C1_0EnableAlarmActionsResponse
instance AWSRequest EnableAlarmActions
instance ToHeaders EnableAlarmActions
instance ToQuery EnableAlarmActions
instance ToPath EnableAlarmActions
instance IsList EnableAlarmActions
-- | Disables actions for the specified alarms. When an alarm's actions are
-- disabled the alarm's state may change, but none of the alarm's actions
-- will execute.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DisableAlarmActions.html
module Network.AWS.CloudWatch.DisableAlarmActions
data DisableAlarmActions
-- | DisableAlarmActions constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
disableAlarmActions :: DisableAlarmActions
-- | The names of the alarms to disable actions for.
daaAlarmNames :: Lens' DisableAlarmActions [Text]
data DisableAlarmActionsResponse
-- | DisableAlarmActionsResponse constructor.
disableAlarmActionsResponse :: DisableAlarmActionsResponse
instance Eq DisableAlarmActions
instance Ord DisableAlarmActions
instance Read DisableAlarmActions
instance Show DisableAlarmActions
instance Monoid DisableAlarmActions
instance Semigroup DisableAlarmActions
instance Eq DisableAlarmActionsResponse
instance Ord DisableAlarmActionsResponse
instance Read DisableAlarmActionsResponse
instance Show DisableAlarmActionsResponse
instance Generic DisableAlarmActionsResponse
instance Datatype D1DisableAlarmActionsResponse
instance Constructor C1_0DisableAlarmActionsResponse
instance AWSRequest DisableAlarmActions
instance ToHeaders DisableAlarmActions
instance ToQuery DisableAlarmActions
instance ToPath DisableAlarmActions
instance IsList DisableAlarmActions
-- | Retrieves all alarms for a single metric. Specify a statistic, period,
-- or unit to filter the set of alarms further.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmsForMetric.html
module Network.AWS.CloudWatch.DescribeAlarmsForMetric
data DescribeAlarmsForMetric
-- | DescribeAlarmsForMetric constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
describeAlarmsForMetric :: Text -> Text -> DescribeAlarmsForMetric
-- | The list of dimensions associated with the metric.
dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension]
-- | The name of the metric.
dafmMetricName :: Lens' DescribeAlarmsForMetric Text
-- | The namespace of the metric.
dafmNamespace :: Lens' DescribeAlarmsForMetric Text
-- | The period in seconds over which the statistic is applied.
dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)
-- | The statistic for the metric.
dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)
-- | The unit for the metric.
dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)
data DescribeAlarmsForMetricResponse
-- | DescribeAlarmsForMetricResponse constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
describeAlarmsForMetricResponse :: DescribeAlarmsForMetricResponse
-- | A list of information for each alarm with the specified metric.
dafmrMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm]
instance Eq DescribeAlarmsForMetric
instance Read DescribeAlarmsForMetric
instance Show DescribeAlarmsForMetric
instance Eq DescribeAlarmsForMetricResponse
instance Read DescribeAlarmsForMetricResponse
instance Show DescribeAlarmsForMetricResponse
instance Monoid DescribeAlarmsForMetricResponse
instance Semigroup DescribeAlarmsForMetricResponse
instance FromXML DescribeAlarmsForMetricResponse
instance AWSRequest DescribeAlarmsForMetric
instance ToHeaders DescribeAlarmsForMetric
instance ToQuery DescribeAlarmsForMetric
instance ToPath DescribeAlarmsForMetric
instance IsList DescribeAlarmsForMetricResponse
-- | Retrieves alarms with the specified names. If no name is specified,
-- all alarms for the user are returned. Alarms can be retrieved by using
-- only a prefix for the alarm name, the alarm state, or a prefix for any
-- action.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html
module Network.AWS.CloudWatch.DescribeAlarms
data DescribeAlarms
-- | DescribeAlarms constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
describeAlarms :: DescribeAlarms
-- | The action name prefix.
daActionPrefix :: Lens' DescribeAlarms (Maybe Text)
-- | The alarm name prefix. AlarmNames cannot be specified if this
-- parameter is specified.
daAlarmNamePrefix :: Lens' DescribeAlarms (Maybe Text)
-- | A list of alarm names to retrieve information for.
daAlarmNames :: Lens' DescribeAlarms [Text]
-- | The maximum number of alarm descriptions to retrieve.
daMaxRecords :: Lens' DescribeAlarms (Maybe Natural)
-- | The token returned by a previous call to indicate that there is more
-- data available.
daNextToken :: Lens' DescribeAlarms (Maybe Text)
-- | The state value to be used in matching alarms.
daStateValue :: Lens' DescribeAlarms (Maybe StateValue)
data DescribeAlarmsResponse
-- | DescribeAlarmsResponse constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
describeAlarmsResponse :: DescribeAlarmsResponse
-- | A list of information for the specified alarms.
darMetricAlarms :: Lens' DescribeAlarmsResponse [MetricAlarm]
-- | A string that marks the start of the next batch of returned results.
darNextToken :: Lens' DescribeAlarmsResponse (Maybe Text)
instance Eq DescribeAlarms
instance Read DescribeAlarms
instance Show DescribeAlarms
instance Eq DescribeAlarmsResponse
instance Read DescribeAlarmsResponse
instance Show DescribeAlarmsResponse
instance AWSPager DescribeAlarms
instance FromXML DescribeAlarmsResponse
instance AWSRequest DescribeAlarms
instance ToHeaders DescribeAlarms
instance ToQuery DescribeAlarms
instance ToPath DescribeAlarms
-- | Retrieves history for the specified alarm. Filter alarms by date range
-- or item type. If an alarm name is not specified, Amazon CloudWatch
-- returns histories for all of the owner's alarms.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html
module Network.AWS.CloudWatch.DescribeAlarmHistory
data DescribeAlarmHistory
-- | DescribeAlarmHistory constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
describeAlarmHistory :: DescribeAlarmHistory
-- | The name of the alarm.
dahAlarmName :: Lens' DescribeAlarmHistory (Maybe Text)
-- | The ending date to retrieve alarm history.
dahEndDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
-- | The type of alarm histories to retrieve.
dahHistoryItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType)
-- | The maximum number of alarm history records to retrieve.
dahMaxRecords :: Lens' DescribeAlarmHistory (Maybe Natural)
-- | The token returned by a previous call to indicate that there is more
-- data available.
dahNextToken :: Lens' DescribeAlarmHistory (Maybe Text)
-- | The starting date to retrieve alarm history.
dahStartDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
data DescribeAlarmHistoryResponse
-- | DescribeAlarmHistoryResponse constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
describeAlarmHistoryResponse :: DescribeAlarmHistoryResponse
-- | A list of alarm histories in JSON format.
dahrAlarmHistoryItems :: Lens' DescribeAlarmHistoryResponse [AlarmHistoryItem]
-- | A string that marks the start of the next batch of returned results.
dahrNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text)
instance Eq DescribeAlarmHistory
instance Read DescribeAlarmHistory
instance Show DescribeAlarmHistory
instance Eq DescribeAlarmHistoryResponse
instance Read DescribeAlarmHistoryResponse
instance Show DescribeAlarmHistoryResponse
instance AWSPager DescribeAlarmHistory
instance FromXML DescribeAlarmHistoryResponse
instance AWSRequest DescribeAlarmHistory
instance ToHeaders DescribeAlarmHistory
instance ToQuery DescribeAlarmHistory
instance ToPath DescribeAlarmHistory
-- | Deletes all specified alarms. In the event of an error, no alarms are
-- deleted.
--
--
-- http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DeleteAlarms.html
module Network.AWS.CloudWatch.DeleteAlarms
data DeleteAlarms
-- | DeleteAlarms constructor.
--
-- The fields accessible through corresponding lenses are:
--
--
deleteAlarms :: DeleteAlarms
-- | A list of alarms to be deleted.
da1AlarmNames :: Lens' DeleteAlarms [Text]
data DeleteAlarmsResponse
-- | DeleteAlarmsResponse constructor.
deleteAlarmsResponse :: DeleteAlarmsResponse
instance Eq DeleteAlarms
instance Ord DeleteAlarms
instance Read DeleteAlarms
instance Show DeleteAlarms
instance Monoid DeleteAlarms
instance Semigroup DeleteAlarms
instance Eq DeleteAlarmsResponse
instance Ord DeleteAlarmsResponse
instance Read DeleteAlarmsResponse
instance Show DeleteAlarmsResponse
instance Generic DeleteAlarmsResponse
instance Datatype D1DeleteAlarmsResponse
instance Constructor C1_0DeleteAlarmsResponse
instance AWSRequest DeleteAlarms
instance ToHeaders DeleteAlarms
instance ToQuery DeleteAlarms
instance ToPath DeleteAlarms
instance IsList DeleteAlarms
-- | Amazon CloudWatch is a monitoring service for AWS cloud resources and
-- the applications you run on AWS. You can use Amazon CloudWatch to
-- collect and track metrics, collect and monitor log files, and set
-- alarms. Amazon CloudWatch can monitor AWS resources such as Amazon EC2
-- instances, Amazon DynamoDB tables, and Amazon RDS DB instances, as
-- well as custom metrics generated by your applications and services,
-- and any log files your applications generate. You can use Amazon
-- CloudWatch to gain system-wide visibility into resource utilization,
-- application performance, and operational health. You can use these
-- insights to react and keep your application running smoothly.
module Network.AWS.CloudWatch