-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Amazon CloudWatch SDK.
--
@package amazonka-cloudwatch
@version 1.3.2
module Network.AWS.CloudWatch.Types
-- | API version '2010-08-01' of the Amazon CloudWatch SDK configuration.
cloudWatch :: Service
-- | The quota for alarms for this customer has already been reached.
_LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError
-- | The next token specified is invalid.
_InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError
-- | Indicates that the request processing has failed due to some unknown
-- error, exception, or failure.
_InternalServiceFault :: AsError a => Getting (First ServiceError) a ServiceError
-- | Bad or out-of-range value was supplied for the input parameter.
_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError
-- | Data was not syntactically valid JSON.
_InvalidFormatFault :: AsError a => Getting (First ServiceError) a ServiceError
-- | An input parameter that is mandatory for processing the request is not
-- supplied.
_MissingRequiredParameterException :: AsError a => Getting (First ServiceError) a ServiceError
-- | Parameters that must not be used together were used together.
_InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError
-- | The named resource does not exist.
_ResourceNotFound :: AsError a => Getting (First ServiceError) a ServiceError
data ComparisonOperator
GreaterThanOrEqualToThreshold :: ComparisonOperator
GreaterThanThreshold :: ComparisonOperator
LessThanOrEqualToThreshold :: ComparisonOperator
LessThanThreshold :: ComparisonOperator
data HistoryItemType
Action :: HistoryItemType
ConfigurationUpdate :: HistoryItemType
StateUpdate :: HistoryItemType
data StandardUnit
Bits :: StandardUnit
BitsSecond :: StandardUnit
Bytes :: StandardUnit
BytesSecond :: StandardUnit
Count :: StandardUnit
CountSecond :: StandardUnit
Gigabits :: StandardUnit
GigabitsSecond :: StandardUnit
Gigabytes :: StandardUnit
GigabytesSecond :: StandardUnit
Kilobits :: StandardUnit
KilobitsSecond :: StandardUnit
Kilobytes :: StandardUnit
KilobytesSecond :: StandardUnit
Megabits :: StandardUnit
MegabitsSecond :: StandardUnit
Megabytes :: StandardUnit
MegabytesSecond :: StandardUnit
Microseconds :: StandardUnit
Milliseconds :: StandardUnit
None :: StandardUnit
Percent :: StandardUnit
Seconds :: StandardUnit
Terabits :: StandardUnit
TerabitsSecond :: StandardUnit
Terabytes :: StandardUnit
TerabytesSecond :: StandardUnit
data StateValue
Alarm :: StateValue
InsufficientData :: StateValue
OK :: StateValue
data Statistic
Average :: Statistic
Maximum :: Statistic
Minimum :: Statistic
SampleCount :: Statistic
Sum :: Statistic
-- | The AlarmHistoryItem data type contains descriptive information
-- about the history of a specific alarm. If you call
-- DescribeAlarmHistory, Amazon CloudWatch returns this data type as part
-- of the DescribeAlarmHistoryResult data type.
--
-- See: alarmHistoryItem smart constructor.
data AlarmHistoryItem
-- | Creates a value of AlarmHistoryItem with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
alarmHistoryItem :: AlarmHistoryItem
-- | The descriptive name for the alarm.
ahiAlarmName :: Lens' AlarmHistoryItem (Maybe Text)
-- | The type of alarm history item.
ahiHistoryItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
-- | Machine-readable data about the alarm in JSON format.
ahiHistoryData :: Lens' AlarmHistoryItem (Maybe Text)
-- | 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)
-- | The Datapoint data type encapsulates the statistical data that
-- Amazon CloudWatch computes from metric data.
--
-- See: datapoint smart constructor.
data Datapoint
-- | Creates a value of Datapoint with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
datapoint :: Datapoint
-- | The number of metric values that contributed to the aggregate value of
-- this datapoint.
dSampleCount :: Lens' Datapoint (Maybe Double)
-- | The maximum of the metric value used for the datapoint.
dMaximum :: Lens' Datapoint (Maybe Double)
-- | The average of metric values that correspond to the datapoint.
dAverage :: Lens' Datapoint (Maybe Double)
-- | The minimum metric value used for the datapoint.
dMinimum :: Lens' Datapoint (Maybe Double)
-- | The sum of metric values used for the datapoint.
dSum :: Lens' Datapoint (Maybe Double)
-- | The standard unit used for the datapoint.
dUnit :: Lens' Datapoint (Maybe StandardUnit)
-- | 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 Dimension data type further expands on the identity of a
-- metric using a Name, Value pair.
--
-- For examples that use one or more dimensions, see PutMetricData.
--
-- See: dimension smart constructor.
data Dimension
-- | Creates a value of Dimension with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
dimension :: Text -> Text -> Dimension
-- | The name of the dimension.
dName :: Lens' Dimension Text
-- | The value representing the dimension measurement
dValue :: Lens' Dimension Text
-- | The DimensionFilter data type is used to filter ListMetrics
-- results.
--
-- See: dimensionFilter smart constructor.
data DimensionFilter
-- | Creates a value of DimensionFilter with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
dimensionFilter :: Text -> DimensionFilter
-- | The value of the dimension to be matched.
dfValue :: Lens' DimensionFilter (Maybe Text)
-- | The dimension name to be matched.
dfName :: Lens' DimensionFilter Text
-- | The Metric data type contains information about a specific
-- metric. If you call ListMetrics, Amazon CloudWatch returns information
-- contained by this data type.
--
-- The example in the Examples section publishes two metrics named
-- buffers and latency. Both metrics are in the examples namespace. Both
-- metrics have two dimensions, InstanceID and InstanceType.
--
-- See: metric smart constructor.
data Metric
-- | Creates a value of Metric with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
metric :: Metric
-- | The name of the metric.
mMetricName :: Lens' Metric (Maybe Text)
-- | The namespace of the metric.
mNamespace :: Lens' Metric (Maybe Text)
-- | A list of dimensions associated with the metric.
mDimensions :: Lens' Metric [Dimension]
-- | The MetricAlarm data type represents an alarm. You can use
-- PutMetricAlarm to create or update an alarm.
--
-- See: metricAlarm smart constructor.
data MetricAlarm
-- | Creates a value of MetricAlarm with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
metricAlarm :: MetricAlarm
-- | The name of the alarm.
maAlarmName :: 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 period in seconds over which the statistic is applied.
maPeriod :: Lens' MetricAlarm (Maybe Natural)
-- | The description for the alarm.
maAlarmDescription :: Lens' MetricAlarm (Maybe Text)
-- | The number of periods over which data is compared to the specified
-- threshold.
maEvaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
-- | 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 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 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 state value for the alarm.
maStateValue :: Lens' MetricAlarm (Maybe StateValue)
-- | The value against which the specified statistic is compared.
maThreshold :: Lens' MetricAlarm (Maybe Double)
-- | 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)
-- | 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
-- 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]
-- | 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 list of dimensions associated with the alarm's associated metric.
maDimensions :: Lens' MetricAlarm [Dimension]
-- | The Amazon Resource Name (ARN) of the alarm.
maAlarmARN :: Lens' MetricAlarm (Maybe Text)
-- | 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 unit of the alarm's associated metric.
maUnit :: Lens' MetricAlarm (Maybe StandardUnit)
-- | The statistic to apply to the alarm's associated metric.
maStatistic :: Lens' MetricAlarm (Maybe Statistic)
-- | The MetricDatum data type encapsulates the information sent
-- with PutMetricData to either create a new metric or add new values to
-- be aggregated into an existing metric.
--
-- See: metricDatum smart constructor.
data MetricDatum
-- | Creates a value of MetricDatum with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
metricDatum :: Text -> MetricDatum
-- | 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)
-- | 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 unit of the metric.
mdUnit :: Lens' MetricDatum (Maybe StandardUnit)
-- | 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)
-- | A set of statistical values describing the metric.
mdStatisticValues :: Lens' MetricDatum (Maybe StatisticSet)
-- | The name of the metric.
mdMetricName :: Lens' MetricDatum Text
-- | The StatisticSet data type describes the
-- StatisticValues component of MetricDatum, and represents a
-- set of statistics that describes a specific metric.
--
-- See: statisticSet smart constructor.
data StatisticSet
-- | Creates a value of StatisticSet with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
statisticSet :: Double -> Double -> Double -> Double -> StatisticSet
-- | 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
-- | The minimum value of the sample set.
ssMinimum :: Lens' StatisticSet Double
-- | The maximum value of the sample set.
ssMaximum :: Lens' StatisticSet Double
module Network.AWS.CloudWatch.Waiters
-- | 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.
--
-- See: AWS API Reference for SetAlarmState.
module Network.AWS.CloudWatch.SetAlarmState
-- | Creates a value of SetAlarmState with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
setAlarmState :: Text -> StateValue -> Text -> SetAlarmState
-- | See: setAlarmState smart constructor.
data SetAlarmState
-- | The reason that this alarm is set to this specific state (in
-- machine-readable JSON format)
sasStateReasonData :: Lens' SetAlarmState (Maybe Text)
-- | 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 value of the state.
sasStateValue :: Lens' SetAlarmState StateValue
-- | The reason that this alarm is set to this specific state (in
-- human-readable text format)
sasStateReason :: Lens' SetAlarmState Text
-- | Creates a value of SetAlarmStateResponse with the minimum
-- fields required to make a request.
setAlarmStateResponse :: SetAlarmStateResponse
-- | See: setAlarmStateResponse smart constructor.
data SetAlarmStateResponse
instance Typeable SetAlarmState
instance Typeable SetAlarmStateResponse
instance Eq SetAlarmState
instance Read SetAlarmState
instance Show SetAlarmState
instance Data SetAlarmState
instance Generic SetAlarmState
instance Eq SetAlarmStateResponse
instance Read SetAlarmStateResponse
instance Show SetAlarmStateResponse
instance Data SetAlarmStateResponse
instance Generic SetAlarmStateResponse
instance Datatype D1SetAlarmState
instance Constructor C1_0SetAlarmState
instance Selector S1_0_0SetAlarmState
instance Selector S1_0_1SetAlarmState
instance Selector S1_0_2SetAlarmState
instance Selector S1_0_3SetAlarmState
instance Datatype D1SetAlarmStateResponse
instance Constructor C1_0SetAlarmStateResponse
instance ToQuery SetAlarmState
instance ToPath SetAlarmState
instance ToHeaders SetAlarmState
instance AWSRequest SetAlarmState
-- | 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.
--
-- See: AWS API Reference for PutMetricAlarm.
module Network.AWS.CloudWatch.PutMetricAlarm
-- | Creates a value of PutMetricAlarm with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
putMetricAlarm :: Text -> Text -> Text -> Statistic -> Natural -> Natural -> Double -> ComparisonOperator -> PutMetricAlarm
-- | See: putMetricAlarm smart constructor.
data PutMetricAlarm
-- | The description for the alarm.
pmaAlarmDescription :: Lens' PutMetricAlarm (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 action supported is
-- publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.
pmaOKActions :: Lens' PutMetricAlarm [Text]
-- | 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
-- 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 dimensions for the alarm's associated metric.
pmaDimensions :: Lens' PutMetricAlarm [Dimension]
-- | 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 unit for the alarm's associated metric.
pmaUnit :: Lens' PutMetricAlarm (Maybe StandardUnit)
-- | The descriptive name for the alarm. This name must be unique within
-- the user's AWS account
pmaAlarmName :: 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 statistic to apply to the alarm's associated metric.
pmaStatistic :: Lens' PutMetricAlarm Statistic
-- | The period in seconds over which the specified statistic is applied.
pmaPeriod :: Lens' PutMetricAlarm Natural
-- | The number of periods over which data is compared to the specified
-- threshold.
pmaEvaluationPeriods :: Lens' PutMetricAlarm Natural
-- | The value against which the specified statistic is compared.
pmaThreshold :: Lens' PutMetricAlarm Double
-- | 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
-- | Creates a value of PutMetricAlarmResponse with the minimum
-- fields required to make a request.
putMetricAlarmResponse :: PutMetricAlarmResponse
-- | See: putMetricAlarmResponse smart constructor.
data PutMetricAlarmResponse
instance Typeable PutMetricAlarm
instance Typeable PutMetricAlarmResponse
instance Eq PutMetricAlarm
instance Read PutMetricAlarm
instance Show PutMetricAlarm
instance Data PutMetricAlarm
instance Generic PutMetricAlarm
instance Eq PutMetricAlarmResponse
instance Read PutMetricAlarmResponse
instance Show PutMetricAlarmResponse
instance Data PutMetricAlarmResponse
instance Generic PutMetricAlarmResponse
instance Datatype D1PutMetricAlarm
instance Constructor C1_0PutMetricAlarm
instance Selector S1_0_0PutMetricAlarm
instance Selector S1_0_1PutMetricAlarm
instance Selector S1_0_2PutMetricAlarm
instance Selector S1_0_3PutMetricAlarm
instance Selector S1_0_4PutMetricAlarm
instance Selector S1_0_5PutMetricAlarm
instance Selector S1_0_6PutMetricAlarm
instance Selector S1_0_7PutMetricAlarm
instance Selector S1_0_8PutMetricAlarm
instance Selector S1_0_9PutMetricAlarm
instance Selector S1_0_10PutMetricAlarm
instance Selector S1_0_11PutMetricAlarm
instance Selector S1_0_12PutMetricAlarm
instance Selector S1_0_13PutMetricAlarm
instance Selector S1_0_14PutMetricAlarm
instance Datatype D1PutMetricAlarmResponse
instance Constructor C1_0PutMetricAlarmResponse
instance ToQuery PutMetricAlarm
instance ToPath PutMetricAlarm
instance ToHeaders PutMetricAlarm
instance AWSRequest PutMetricAlarm
-- | 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.
--
-- See: AWS API Reference for DisableAlarmActions.
module Network.AWS.CloudWatch.DisableAlarmActions
-- | Creates a value of DisableAlarmActions with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
disableAlarmActions :: DisableAlarmActions
-- | See: disableAlarmActions smart constructor.
data DisableAlarmActions
-- | The names of the alarms to disable actions for.
daaAlarmNames :: Lens' DisableAlarmActions [Text]
-- | Creates a value of DisableAlarmActionsResponse with the minimum
-- fields required to make a request.
disableAlarmActionsResponse :: DisableAlarmActionsResponse
-- | See: disableAlarmActionsResponse smart constructor.
data DisableAlarmActionsResponse
instance Typeable DisableAlarmActions
instance Typeable DisableAlarmActionsResponse
instance Eq DisableAlarmActions
instance Read DisableAlarmActions
instance Show DisableAlarmActions
instance Data DisableAlarmActions
instance Generic DisableAlarmActions
instance Eq DisableAlarmActionsResponse
instance Read DisableAlarmActionsResponse
instance Show DisableAlarmActionsResponse
instance Data DisableAlarmActionsResponse
instance Generic DisableAlarmActionsResponse
instance Datatype D1DisableAlarmActions
instance Constructor C1_0DisableAlarmActions
instance Selector S1_0_0DisableAlarmActions
instance Datatype D1DisableAlarmActionsResponse
instance Constructor C1_0DisableAlarmActionsResponse
instance ToQuery DisableAlarmActions
instance ToPath DisableAlarmActions
instance ToHeaders DisableAlarmActions
instance AWSRequest DisableAlarmActions
-- | Retrieves all alarms for a single metric. Specify a statistic, period,
-- or unit to filter the set of alarms further.
--
-- See: AWS API Reference for DescribeAlarmsForMetric.
module Network.AWS.CloudWatch.DescribeAlarmsForMetric
-- | Creates a value of DescribeAlarmsForMetric with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
describeAlarmsForMetric :: Text -> Text -> DescribeAlarmsForMetric
-- | See: describeAlarmsForMetric smart constructor.
data DescribeAlarmsForMetric
-- | The period in seconds over which the statistic is applied.
dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)
-- | The list of dimensions associated with the metric.
dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension]
-- | The unit for the metric.
dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)
-- | The statistic for the metric.
dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)
-- | The name of the metric.
dafmMetricName :: Lens' DescribeAlarmsForMetric Text
-- | The namespace of the metric.
dafmNamespace :: Lens' DescribeAlarmsForMetric Text
-- | Creates a value of DescribeAlarmsForMetricResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
describeAlarmsForMetricResponse :: Int -> DescribeAlarmsForMetricResponse
-- | The output for the DescribeAlarmsForMetric action.
--
-- See: describeAlarmsForMetricResponse smart constructor.
data DescribeAlarmsForMetricResponse
-- | A list of information for each alarm with the specified metric.
dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm]
-- | The response status code.
dafmrsResponseStatus :: Lens' DescribeAlarmsForMetricResponse Int
instance Typeable DescribeAlarmsForMetric
instance Typeable DescribeAlarmsForMetricResponse
instance Eq DescribeAlarmsForMetric
instance Read DescribeAlarmsForMetric
instance Show DescribeAlarmsForMetric
instance Data DescribeAlarmsForMetric
instance Generic DescribeAlarmsForMetric
instance Eq DescribeAlarmsForMetricResponse
instance Read DescribeAlarmsForMetricResponse
instance Show DescribeAlarmsForMetricResponse
instance Data DescribeAlarmsForMetricResponse
instance Generic DescribeAlarmsForMetricResponse
instance Datatype D1DescribeAlarmsForMetric
instance Constructor C1_0DescribeAlarmsForMetric
instance Selector S1_0_0DescribeAlarmsForMetric
instance Selector S1_0_1DescribeAlarmsForMetric
instance Selector S1_0_2DescribeAlarmsForMetric
instance Selector S1_0_3DescribeAlarmsForMetric
instance Selector S1_0_4DescribeAlarmsForMetric
instance Selector S1_0_5DescribeAlarmsForMetric
instance Datatype D1DescribeAlarmsForMetricResponse
instance Constructor C1_0DescribeAlarmsForMetricResponse
instance Selector S1_0_0DescribeAlarmsForMetricResponse
instance Selector S1_0_1DescribeAlarmsForMetricResponse
instance ToQuery DescribeAlarmsForMetric
instance ToPath DescribeAlarmsForMetric
instance ToHeaders DescribeAlarmsForMetric
instance AWSRequest DescribeAlarmsForMetric
-- | 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 Dimensions
-- Reference in the Amazon CloudWatch Developer Guide.
--
-- See: AWS API Reference for GetMetricStatistics.
module Network.AWS.CloudWatch.GetMetricStatistics
-- | Creates a value of GetMetricStatistics with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getMetricStatistics :: Text -> Text -> UTCTime -> UTCTime -> Natural -> NonEmpty Statistic -> GetMetricStatistics
-- | See: getMetricStatistics smart constructor.
data GetMetricStatistics
-- | A list of dimensions describing qualities of the metric.
gmsDimensions :: Lens' GetMetricStatistics [Dimension]
-- | The unit for the metric.
gmsUnit :: Lens' GetMetricStatistics (Maybe StandardUnit)
-- | The namespace of the metric, with or without spaces.
gmsNamespace :: Lens' GetMetricStatistics Text
-- | The name of the metric, with or without spaces.
gmsMetricName :: Lens' GetMetricStatistics Text
-- | 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 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 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 metric statistics to return. For information about specific
-- statistics returned by GetMetricStatistics, go to Statistics in
-- the Amazon CloudWatch Developer Guide.
--
-- Valid Values: 'Average | Sum | SampleCount | Maximum | Minimum'
gmsStatistics :: Lens' GetMetricStatistics (NonEmpty Statistic)
-- | Creates a value of GetMetricStatisticsResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getMetricStatisticsResponse :: Int -> GetMetricStatisticsResponse
-- | The output for the GetMetricStatistics action.
--
-- See: getMetricStatisticsResponse smart constructor.
data GetMetricStatisticsResponse
-- | The datapoints for the specified metric.
gmsrsDatapoints :: Lens' GetMetricStatisticsResponse [Datapoint]
-- | A label describing the specified metric.
gmsrsLabel :: Lens' GetMetricStatisticsResponse (Maybe Text)
-- | The response status code.
gmsrsResponseStatus :: Lens' GetMetricStatisticsResponse Int
instance Typeable GetMetricStatistics
instance Typeable GetMetricStatisticsResponse
instance Eq GetMetricStatistics
instance Read GetMetricStatistics
instance Show GetMetricStatistics
instance Data GetMetricStatistics
instance Generic GetMetricStatistics
instance Eq GetMetricStatisticsResponse
instance Read GetMetricStatisticsResponse
instance Show GetMetricStatisticsResponse
instance Data GetMetricStatisticsResponse
instance Generic GetMetricStatisticsResponse
instance Datatype D1GetMetricStatistics
instance Constructor C1_0GetMetricStatistics
instance Selector S1_0_0GetMetricStatistics
instance Selector S1_0_1GetMetricStatistics
instance Selector S1_0_2GetMetricStatistics
instance Selector S1_0_3GetMetricStatistics
instance Selector S1_0_4GetMetricStatistics
instance Selector S1_0_5GetMetricStatistics
instance Selector S1_0_6GetMetricStatistics
instance Selector S1_0_7GetMetricStatistics
instance Datatype D1GetMetricStatisticsResponse
instance Constructor C1_0GetMetricStatisticsResponse
instance Selector S1_0_0GetMetricStatisticsResponse
instance Selector S1_0_1GetMetricStatisticsResponse
instance Selector S1_0_2GetMetricStatisticsResponse
instance ToQuery GetMetricStatistics
instance ToPath GetMetricStatistics
instance ToHeaders GetMetricStatistics
instance AWSRequest GetMetricStatistics
-- | 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.
--
-- See: AWS API Reference for DescribeAlarmHistory.
--
-- This operation returns paginated results.
module Network.AWS.CloudWatch.DescribeAlarmHistory
-- | Creates a value of DescribeAlarmHistory with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
describeAlarmHistory :: DescribeAlarmHistory
-- | See: describeAlarmHistory smart constructor.
data DescribeAlarmHistory
-- | The name of the alarm.
dahAlarmName :: Lens' DescribeAlarmHistory (Maybe Text)
-- | The type of alarm histories to retrieve.
dahHistoryItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType)
-- | The ending date to retrieve alarm history.
dahEndDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
-- | The starting date to retrieve alarm history.
dahStartDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
-- | The token returned by a previous call to indicate that there is more
-- data available.
dahNextToken :: Lens' DescribeAlarmHistory (Maybe Text)
-- | The maximum number of alarm history records to retrieve.
dahMaxRecords :: Lens' DescribeAlarmHistory (Maybe Natural)
-- | Creates a value of DescribeAlarmHistoryResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
describeAlarmHistoryResponse :: Int -> DescribeAlarmHistoryResponse
-- | The output for the DescribeAlarmHistory action.
--
-- See: describeAlarmHistoryResponse smart constructor.
data DescribeAlarmHistoryResponse
-- | A list of alarm histories in JSON format.
dahrsAlarmHistoryItems :: Lens' DescribeAlarmHistoryResponse [AlarmHistoryItem]
-- | A string that marks the start of the next batch of returned results.
dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text)
-- | The response status code.
dahrsResponseStatus :: Lens' DescribeAlarmHistoryResponse Int
instance Typeable DescribeAlarmHistory
instance Typeable DescribeAlarmHistoryResponse
instance Eq DescribeAlarmHistory
instance Read DescribeAlarmHistory
instance Show DescribeAlarmHistory
instance Data DescribeAlarmHistory
instance Generic DescribeAlarmHistory
instance Eq DescribeAlarmHistoryResponse
instance Read DescribeAlarmHistoryResponse
instance Show DescribeAlarmHistoryResponse
instance Data DescribeAlarmHistoryResponse
instance Generic DescribeAlarmHistoryResponse
instance Datatype D1DescribeAlarmHistory
instance Constructor C1_0DescribeAlarmHistory
instance Selector S1_0_0DescribeAlarmHistory
instance Selector S1_0_1DescribeAlarmHistory
instance Selector S1_0_2DescribeAlarmHistory
instance Selector S1_0_3DescribeAlarmHistory
instance Selector S1_0_4DescribeAlarmHistory
instance Selector S1_0_5DescribeAlarmHistory
instance Datatype D1DescribeAlarmHistoryResponse
instance Constructor C1_0DescribeAlarmHistoryResponse
instance Selector S1_0_0DescribeAlarmHistoryResponse
instance Selector S1_0_1DescribeAlarmHistoryResponse
instance Selector S1_0_2DescribeAlarmHistoryResponse
instance ToQuery DescribeAlarmHistory
instance ToPath DescribeAlarmHistory
instance ToHeaders DescribeAlarmHistory
instance AWSRequest DescribeAlarmHistory
instance AWSPager DescribeAlarmHistory
-- | Deletes all specified alarms. In the event of an error, no alarms are
-- deleted.
--
-- See: AWS API Reference for DeleteAlarms.
module Network.AWS.CloudWatch.DeleteAlarms
-- | Creates a value of DeleteAlarms with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
deleteAlarms :: DeleteAlarms
-- | See: deleteAlarms smart constructor.
data DeleteAlarms
-- | A list of alarms to be deleted.
dAlarmNames :: Lens' DeleteAlarms [Text]
-- | Creates a value of DeleteAlarmsResponse with the minimum fields
-- required to make a request.
deleteAlarmsResponse :: DeleteAlarmsResponse
-- | See: deleteAlarmsResponse smart constructor.
data DeleteAlarmsResponse
instance Typeable DeleteAlarms
instance Typeable DeleteAlarmsResponse
instance Eq DeleteAlarms
instance Read DeleteAlarms
instance Show DeleteAlarms
instance Data DeleteAlarms
instance Generic DeleteAlarms
instance Eq DeleteAlarmsResponse
instance Read DeleteAlarmsResponse
instance Show DeleteAlarmsResponse
instance Data DeleteAlarmsResponse
instance Generic DeleteAlarmsResponse
instance Datatype D1DeleteAlarms
instance Constructor C1_0DeleteAlarms
instance Selector S1_0_0DeleteAlarms
instance Datatype D1DeleteAlarmsResponse
instance Constructor C1_0DeleteAlarmsResponse
instance ToQuery DeleteAlarms
instance ToPath DeleteAlarms
instance ToHeaders DeleteAlarms
instance AWSRequest DeleteAlarms
-- | 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.
--
-- See: AWS API Reference for ListMetrics.
--
-- This operation returns paginated results.
module Network.AWS.CloudWatch.ListMetrics
-- | Creates a value of ListMetrics with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listMetrics :: ListMetrics
-- | See: listMetrics smart constructor.
data ListMetrics
-- | 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)
-- | A list of dimensions to filter against.
lmDimensions :: Lens' ListMetrics [DimensionFilter]
-- | Creates a value of ListMetricsResponse with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listMetricsResponse :: Int -> ListMetricsResponse
-- | The output for the ListMetrics action.
--
-- See: listMetricsResponse smart constructor.
data ListMetricsResponse
-- | A list of metrics used to generate statistics for an AWS account.
lmrsMetrics :: Lens' ListMetricsResponse [Metric]
-- | A string that marks the start of the next batch of returned results.
lmrsNextToken :: Lens' ListMetricsResponse (Maybe Text)
-- | The response status code.
lmrsResponseStatus :: Lens' ListMetricsResponse Int
instance Typeable ListMetrics
instance Typeable ListMetricsResponse
instance Eq ListMetrics
instance Read ListMetrics
instance Show ListMetrics
instance Data ListMetrics
instance Generic ListMetrics
instance Eq ListMetricsResponse
instance Read ListMetricsResponse
instance Show ListMetricsResponse
instance Data ListMetricsResponse
instance Generic ListMetricsResponse
instance Datatype D1ListMetrics
instance Constructor C1_0ListMetrics
instance Selector S1_0_0ListMetrics
instance Selector S1_0_1ListMetrics
instance Selector S1_0_2ListMetrics
instance Selector S1_0_3ListMetrics
instance Datatype D1ListMetricsResponse
instance Constructor C1_0ListMetricsResponse
instance Selector S1_0_0ListMetricsResponse
instance Selector S1_0_1ListMetricsResponse
instance Selector S1_0_2ListMetricsResponse
instance ToQuery ListMetrics
instance ToPath ListMetrics
instance ToHeaders ListMetrics
instance AWSRequest ListMetrics
instance AWSPager ListMetrics
-- | 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.
--
-- See: AWS API Reference for DescribeAlarms.
--
-- This operation returns paginated results.
module Network.AWS.CloudWatch.DescribeAlarms
-- | Creates a value of DescribeAlarms with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
describeAlarms :: DescribeAlarms
-- | See: describeAlarms smart constructor.
data DescribeAlarms
-- | The alarm name prefix. AlarmNames cannot be specified if this
-- parameter is specified.
daAlarmNamePrefix :: Lens' DescribeAlarms (Maybe Text)
-- | The action name prefix.
daActionPrefix :: Lens' DescribeAlarms (Maybe Text)
-- | 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)
-- | 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)
-- | Creates a value of DescribeAlarmsResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
describeAlarmsResponse :: Int -> DescribeAlarmsResponse
-- | The output for the DescribeAlarms action.
--
-- See: describeAlarmsResponse smart constructor.
data DescribeAlarmsResponse
-- | A list of information for the specified alarms.
darsMetricAlarms :: Lens' DescribeAlarmsResponse [MetricAlarm]
-- | A string that marks the start of the next batch of returned results.
darsNextToken :: Lens' DescribeAlarmsResponse (Maybe Text)
-- | The response status code.
darsResponseStatus :: Lens' DescribeAlarmsResponse Int
instance Typeable DescribeAlarms
instance Typeable DescribeAlarmsResponse
instance Eq DescribeAlarms
instance Read DescribeAlarms
instance Show DescribeAlarms
instance Data DescribeAlarms
instance Generic DescribeAlarms
instance Eq DescribeAlarmsResponse
instance Read DescribeAlarmsResponse
instance Show DescribeAlarmsResponse
instance Data DescribeAlarmsResponse
instance Generic DescribeAlarmsResponse
instance Datatype D1DescribeAlarms
instance Constructor C1_0DescribeAlarms
instance Selector S1_0_0DescribeAlarms
instance Selector S1_0_1DescribeAlarms
instance Selector S1_0_2DescribeAlarms
instance Selector S1_0_3DescribeAlarms
instance Selector S1_0_4DescribeAlarms
instance Selector S1_0_5DescribeAlarms
instance Datatype D1DescribeAlarmsResponse
instance Constructor C1_0DescribeAlarmsResponse
instance Selector S1_0_0DescribeAlarmsResponse
instance Selector S1_0_1DescribeAlarmsResponse
instance Selector S1_0_2DescribeAlarmsResponse
instance ToQuery DescribeAlarms
instance ToPath DescribeAlarms
instance ToHeaders DescribeAlarms
instance AWSRequest DescribeAlarms
instance AWSPager DescribeAlarms
-- | 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.
--
-- See: AWS API Reference for PutMetricData.
module Network.AWS.CloudWatch.PutMetricData
-- | Creates a value of PutMetricData with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
putMetricData :: Text -> PutMetricData
-- | See: putMetricData smart constructor.
data PutMetricData
-- | The namespace for the metric data.
pmdNamespace :: Lens' PutMetricData Text
-- | A list of data describing the metric.
pmdMetricData :: Lens' PutMetricData [MetricDatum]
-- | Creates a value of PutMetricDataResponse with the minimum
-- fields required to make a request.
putMetricDataResponse :: PutMetricDataResponse
-- | See: putMetricDataResponse smart constructor.
data PutMetricDataResponse
instance Typeable PutMetricData
instance Typeable PutMetricDataResponse
instance Eq PutMetricData
instance Read PutMetricData
instance Show PutMetricData
instance Data PutMetricData
instance Generic PutMetricData
instance Eq PutMetricDataResponse
instance Read PutMetricDataResponse
instance Show PutMetricDataResponse
instance Data PutMetricDataResponse
instance Generic PutMetricDataResponse
instance Datatype D1PutMetricData
instance Constructor C1_0PutMetricData
instance Selector S1_0_0PutMetricData
instance Selector S1_0_1PutMetricData
instance Datatype D1PutMetricDataResponse
instance Constructor C1_0PutMetricDataResponse
instance ToQuery PutMetricData
instance ToPath PutMetricData
instance ToHeaders PutMetricData
instance AWSRequest PutMetricData
-- | Enables actions for the specified alarms.
--
-- See: AWS API Reference for EnableAlarmActions.
module Network.AWS.CloudWatch.EnableAlarmActions
-- | Creates a value of EnableAlarmActions with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
enableAlarmActions :: EnableAlarmActions
-- | See: enableAlarmActions smart constructor.
data EnableAlarmActions
-- | The names of the alarms to enable actions for.
eaaAlarmNames :: Lens' EnableAlarmActions [Text]
-- | Creates a value of EnableAlarmActionsResponse with the minimum
-- fields required to make a request.
enableAlarmActionsResponse :: EnableAlarmActionsResponse
-- | See: enableAlarmActionsResponse smart constructor.
data EnableAlarmActionsResponse
instance Typeable EnableAlarmActions
instance Typeable EnableAlarmActionsResponse
instance Eq EnableAlarmActions
instance Read EnableAlarmActions
instance Show EnableAlarmActions
instance Data EnableAlarmActions
instance Generic EnableAlarmActions
instance Eq EnableAlarmActionsResponse
instance Read EnableAlarmActionsResponse
instance Show EnableAlarmActionsResponse
instance Data EnableAlarmActionsResponse
instance Generic EnableAlarmActionsResponse
instance Datatype D1EnableAlarmActions
instance Constructor C1_0EnableAlarmActions
instance Selector S1_0_0EnableAlarmActions
instance Datatype D1EnableAlarmActionsResponse
instance Constructor C1_0EnableAlarmActionsResponse
instance ToQuery EnableAlarmActions
instance ToPath EnableAlarmActions
instance ToHeaders EnableAlarmActions
instance AWSRequest EnableAlarmActions
-- | This is the Amazon CloudWatch API Reference. This guide
-- provides detailed information about Amazon CloudWatch actions, data
-- types, parameters, and errors. For detailed information about Amazon
-- CloudWatch features and their associated API calls, go to the
-- Amazon CloudWatch Developer Guide.
--
-- Amazon CloudWatch is a web service that enables you to publish,
-- monitor, and manage various metrics, as well as configure alarm
-- actions based on data from metrics. For more information about this
-- product go to http://aws.amazon.com/cloudwatch.
--
-- 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 Dimensions
-- Reference in the Amazon CloudWatch Developer Guide.
--
-- Use the following links to get started using the /Amazon CloudWatch
-- API Reference/:
--
--
-- - Actions: An alphabetical list of all Amazon CloudWatch
-- actions.
-- - Data Types: An alphabetical list of all Amazon CloudWatch
-- data types.
-- - Common Parameters: Parameters that all Query actions can
-- use.
-- - Common Errors: Client and server errors that all actions
-- can return.
-- - Regions and Endpoints: Itemized regions and endpoints for
-- all AWS products.
-- - WSDL Location:
-- http://monitoring.amazonaws.com/doc/2010-08-01/CloudWatch.wsdl
--
--
-- In addition to using the Amazon CloudWatch API, you can also use the
-- following SDKs and third-party libraries to access Amazon CloudWatch
-- programmatically.
--
--
--
-- Developers in the AWS developer community also provide their own
-- libraries, which you can find at the following AWS developer centers:
--
--
--
-- See: AWS API Reference
module Network.AWS.CloudWatch
-- | API version '2010-08-01' of the Amazon CloudWatch SDK configuration.
cloudWatch :: Service
-- | The quota for alarms for this customer has already been reached.
_LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError
-- | The next token specified is invalid.
_InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError
-- | Indicates that the request processing has failed due to some unknown
-- error, exception, or failure.
_InternalServiceFault :: AsError a => Getting (First ServiceError) a ServiceError
-- | Bad or out-of-range value was supplied for the input parameter.
_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError
-- | Data was not syntactically valid JSON.
_InvalidFormatFault :: AsError a => Getting (First ServiceError) a ServiceError
-- | An input parameter that is mandatory for processing the request is not
-- supplied.
_MissingRequiredParameterException :: AsError a => Getting (First ServiceError) a ServiceError
-- | Parameters that must not be used together were used together.
_InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError
-- | The named resource does not exist.
_ResourceNotFound :: AsError a => Getting (First ServiceError) a ServiceError
data ComparisonOperator
GreaterThanOrEqualToThreshold :: ComparisonOperator
GreaterThanThreshold :: ComparisonOperator
LessThanOrEqualToThreshold :: ComparisonOperator
LessThanThreshold :: ComparisonOperator
data HistoryItemType
Action :: HistoryItemType
ConfigurationUpdate :: HistoryItemType
StateUpdate :: HistoryItemType
data StandardUnit
Bits :: StandardUnit
BitsSecond :: StandardUnit
Bytes :: StandardUnit
BytesSecond :: StandardUnit
Count :: StandardUnit
CountSecond :: StandardUnit
Gigabits :: StandardUnit
GigabitsSecond :: StandardUnit
Gigabytes :: StandardUnit
GigabytesSecond :: StandardUnit
Kilobits :: StandardUnit
KilobitsSecond :: StandardUnit
Kilobytes :: StandardUnit
KilobytesSecond :: StandardUnit
Megabits :: StandardUnit
MegabitsSecond :: StandardUnit
Megabytes :: StandardUnit
MegabytesSecond :: StandardUnit
Microseconds :: StandardUnit
Milliseconds :: StandardUnit
None :: StandardUnit
Percent :: StandardUnit
Seconds :: StandardUnit
Terabits :: StandardUnit
TerabitsSecond :: StandardUnit
Terabytes :: StandardUnit
TerabytesSecond :: StandardUnit
data StateValue
Alarm :: StateValue
InsufficientData :: StateValue
OK :: StateValue
data Statistic
Average :: Statistic
Maximum :: Statistic
Minimum :: Statistic
SampleCount :: Statistic
Sum :: Statistic
-- | The AlarmHistoryItem data type contains descriptive information
-- about the history of a specific alarm. If you call
-- DescribeAlarmHistory, Amazon CloudWatch returns this data type as part
-- of the DescribeAlarmHistoryResult data type.
--
-- See: alarmHistoryItem smart constructor.
data AlarmHistoryItem
-- | Creates a value of AlarmHistoryItem with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
alarmHistoryItem :: AlarmHistoryItem
-- | The descriptive name for the alarm.
ahiAlarmName :: Lens' AlarmHistoryItem (Maybe Text)
-- | The type of alarm history item.
ahiHistoryItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
-- | Machine-readable data about the alarm in JSON format.
ahiHistoryData :: Lens' AlarmHistoryItem (Maybe Text)
-- | 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)
-- | The Datapoint data type encapsulates the statistical data that
-- Amazon CloudWatch computes from metric data.
--
-- See: datapoint smart constructor.
data Datapoint
-- | Creates a value of Datapoint with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
datapoint :: Datapoint
-- | The number of metric values that contributed to the aggregate value of
-- this datapoint.
dSampleCount :: Lens' Datapoint (Maybe Double)
-- | The maximum of the metric value used for the datapoint.
dMaximum :: Lens' Datapoint (Maybe Double)
-- | The average of metric values that correspond to the datapoint.
dAverage :: Lens' Datapoint (Maybe Double)
-- | The minimum metric value used for the datapoint.
dMinimum :: Lens' Datapoint (Maybe Double)
-- | The sum of metric values used for the datapoint.
dSum :: Lens' Datapoint (Maybe Double)
-- | The standard unit used for the datapoint.
dUnit :: Lens' Datapoint (Maybe StandardUnit)
-- | 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 Dimension data type further expands on the identity of a
-- metric using a Name, Value pair.
--
-- For examples that use one or more dimensions, see PutMetricData.
--
-- See: dimension smart constructor.
data Dimension
-- | Creates a value of Dimension with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
dimension :: Text -> Text -> Dimension
-- | The name of the dimension.
dName :: Lens' Dimension Text
-- | The value representing the dimension measurement
dValue :: Lens' Dimension Text
-- | The DimensionFilter data type is used to filter ListMetrics
-- results.
--
-- See: dimensionFilter smart constructor.
data DimensionFilter
-- | Creates a value of DimensionFilter with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
dimensionFilter :: Text -> DimensionFilter
-- | The value of the dimension to be matched.
dfValue :: Lens' DimensionFilter (Maybe Text)
-- | The dimension name to be matched.
dfName :: Lens' DimensionFilter Text
-- | The Metric data type contains information about a specific
-- metric. If you call ListMetrics, Amazon CloudWatch returns information
-- contained by this data type.
--
-- The example in the Examples section publishes two metrics named
-- buffers and latency. Both metrics are in the examples namespace. Both
-- metrics have two dimensions, InstanceID and InstanceType.
--
-- See: metric smart constructor.
data Metric
-- | Creates a value of Metric with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
metric :: Metric
-- | The name of the metric.
mMetricName :: Lens' Metric (Maybe Text)
-- | The namespace of the metric.
mNamespace :: Lens' Metric (Maybe Text)
-- | A list of dimensions associated with the metric.
mDimensions :: Lens' Metric [Dimension]
-- | The MetricAlarm data type represents an alarm. You can use
-- PutMetricAlarm to create or update an alarm.
--
-- See: metricAlarm smart constructor.
data MetricAlarm
-- | Creates a value of MetricAlarm with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
metricAlarm :: MetricAlarm
-- | The name of the alarm.
maAlarmName :: 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 period in seconds over which the statistic is applied.
maPeriod :: Lens' MetricAlarm (Maybe Natural)
-- | The description for the alarm.
maAlarmDescription :: Lens' MetricAlarm (Maybe Text)
-- | The number of periods over which data is compared to the specified
-- threshold.
maEvaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
-- | 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 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 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 state value for the alarm.
maStateValue :: Lens' MetricAlarm (Maybe StateValue)
-- | The value against which the specified statistic is compared.
maThreshold :: Lens' MetricAlarm (Maybe Double)
-- | 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)
-- | 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
-- 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]
-- | 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 list of dimensions associated with the alarm's associated metric.
maDimensions :: Lens' MetricAlarm [Dimension]
-- | The Amazon Resource Name (ARN) of the alarm.
maAlarmARN :: Lens' MetricAlarm (Maybe Text)
-- | 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 unit of the alarm's associated metric.
maUnit :: Lens' MetricAlarm (Maybe StandardUnit)
-- | The statistic to apply to the alarm's associated metric.
maStatistic :: Lens' MetricAlarm (Maybe Statistic)
-- | The MetricDatum data type encapsulates the information sent
-- with PutMetricData to either create a new metric or add new values to
-- be aggregated into an existing metric.
--
-- See: metricDatum smart constructor.
data MetricDatum
-- | Creates a value of MetricDatum with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
metricDatum :: Text -> MetricDatum
-- | 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)
-- | 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 unit of the metric.
mdUnit :: Lens' MetricDatum (Maybe StandardUnit)
-- | 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)
-- | A set of statistical values describing the metric.
mdStatisticValues :: Lens' MetricDatum (Maybe StatisticSet)
-- | The name of the metric.
mdMetricName :: Lens' MetricDatum Text
-- | The StatisticSet data type describes the
-- StatisticValues component of MetricDatum, and represents a
-- set of statistics that describes a specific metric.
--
-- See: statisticSet smart constructor.
data StatisticSet
-- | Creates a value of StatisticSet with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
statisticSet :: Double -> Double -> Double -> Double -> StatisticSet
-- | 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
-- | The minimum value of the sample set.
ssMinimum :: Lens' StatisticSet Double
-- | The maximum value of the sample set.
ssMaximum :: Lens' StatisticSet Double