-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Amazon CloudWatch SDK.
--
-- Amazon CloudWatch monitors your Amazon Web Services (AWS) resources
-- and the applications you run on AWS in real-time. You can use
-- CloudWatch to collect and track metrics, which are the variables you
-- want to measure for your resources and applications. CloudWatch alarms
-- send notifications or automatically make changes to the resources you
-- are monitoring based on rules that you define. For example, you can
-- monitor the CPU usage and disk reads and writes of your Amazon Elastic
-- Compute Cloud (Amazon EC2) instances and then use this data to
-- determine whether you should launch additional instances to handle
-- increased load. You can also use this data to stop under-used
-- instances to save money. In addition to monitoring the built-in
-- metrics that come with AWS, you can monitor your own custom metrics.
-- With CloudWatch, you gain system-wide visibility into resource
-- utilization, application performance, and operational health.
--
-- The types from this library are intended to be used with
-- amazonka, which provides mechanisms for specifying AuthN/AuthZ
-- information and sending requests.
--
-- Use of lenses is required for constructing and manipulating types.
-- This is due to the amount of nesting of AWS types and transparency
-- regarding de/serialisation into more palatable Haskell values. The
-- provided lenses should be compatible with any of the major lens
-- libraries such as lens or lens-family-core.
--
-- See Network.AWS.CloudWatch or the AWS Documentation to
-- get started.
@package amazonka-cloudwatch
@version 1.4.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.
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.
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.
--
-- Specifying a Name without specifying a Value returns
-- all values associated with that Name.
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.
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 Name (ARN).
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.
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 Name (ARN).
--
-- 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 Name (ARN).
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 rejects values that are either too
-- small or too large. Values must be in the range of 8.515920e-109 to
-- 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition,
-- special values (e.g., NaN, +Infinity, -Infinity) are not supported.
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 in ISO 8601 Universal Coordinated
-- Time (UTC) format. If not specified, the default value is set to the
-- time the metric data was received.
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. For example, if your
-- alarm is configured to send an Amazon SNS message when an alarm is
-- triggered, temporarily changing the alarm's state to ALARM will
-- send an Amazon SNS message. This is not a permanent change. The next
-- periodic alarm check (in about a minute) will set the alarm to its
-- actual state. Because the alarm state change happens very quickly, it
-- is typically only visibile in the alarm's History tab in the
-- Amazon CloudWatch console or through DescribeAlarmHistory.
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 GHC.Generics.Generic Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
instance Data.Data.Data Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
instance GHC.Show.Show Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
instance GHC.Read.Read Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance Data.Data.Data Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance GHC.Show.Show Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance GHC.Read.Read Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance GHC.Classes.Eq Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
-- | 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.
--
-- When updating an existing alarm, its StateValue is left
-- unchanged.
--
-- If you are using an AWS Identity and Access Management (IAM) account
-- to create or modify an alarm, you must have the following Amazon EC2
-- permissions:
--
--
-- - 'ec2:DescribeInstanceStatus' and 'ec2:DescribeInstances' for all
-- alarms on Amazon EC2 instance status metrics.
-- - 'ec2:StopInstances' for alarms with stop actions.
-- - 'ec2:TerminateInstances' for alarms with terminate actions.
-- - 'ec2:DescribeInstanceRecoveryAttribute', and
-- 'ec2:RecoverInstances' for alarms with recover actions.
--
--
-- If you have read/write permissions for Amazon CloudWatch but not for
-- Amazon EC2, you can still create an alarm but the stop or terminate
-- actions won't be performed on the Amazon EC2 instance. However, if you
-- are later granted permission to use the associated Amazon EC2 APIs,
-- the alarm actions you created earlier will be performed. For more
-- information about IAM permissions, see Permissions and Policies
-- in Using IAM.
--
-- If you are using an IAM role (e.g., an Amazon EC2 instance profile),
-- you cannot stop or terminate the instance using alarm actions.
-- However, you can still see the alarm state and perform any other
-- actions such as Amazon SNS notifications or Auto Scaling policies.
--
-- If you are using temporary security credentials granted using the AWS
-- Security Token Service (AWS STS), you cannot stop or terminate an
-- Amazon EC2 instance using alarm actions.
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 Name (ARN).
--
-- Valid Values: arn:aws:automate:region (e.g.,
-- us-east-1):ec2:stop | arn:aws:automate:region (e.g.,
-- us-east-1):ec2:terminate | arn:aws:automate:region (e.g.,
-- us-east-1):ec2:recover
--
-- Valid Values (for use with IAM roles):
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0
-- |
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0
-- |
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0
--
-- Note: You must create at least one stop, terminate, or reboot
-- alarm using the Amazon EC2 or CloudWatch console to create the
-- EC2ActionsAccess IAM role for the first time. After this IAM
-- role is created, you can create stop, terminate, or reboot alarms
-- using the CLI.
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 Name (ARN).
--
-- Valid Values: arn:aws:automate:region (e.g.,
-- us-east-1):ec2:stop | arn:aws:automate:region (e.g.,
-- us-east-1):ec2:terminate | arn:aws:automate:region (e.g.,
-- us-east-1):ec2:recover
--
-- Valid Values (for use with IAM roles):
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0
-- |
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0
-- |
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0
--
-- Note: You must create at least one stop, terminate, or reboot
-- alarm using the Amazon EC2 or CloudWatch console to create the
-- EC2ActionsAccess IAM role for the first time. After this IAM
-- role is created, you can create stop, terminate, or reboot alarms
-- using the CLI.
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 Name (ARN).
--
-- Valid Values: arn:aws:automate:region (e.g.,
-- us-east-1):ec2:stop | arn:aws:automate:region (e.g.,
-- us-east-1):ec2:terminate | arn:aws:automate:region (e.g.,
-- us-east-1):ec2:recover
--
-- Valid Values (for use with IAM roles):
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0
-- |
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0
-- |
-- arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0
--
-- Note: You must create at least one stop, terminate, or reboot
-- alarm using the Amazon EC2 or CloudWatch console to create the
-- EC2ActionsAccess IAM role for the first time. After this IAM
-- role is created, you can create stop, terminate, or reboot alarms
-- using the CLI.
pmaAlarmActions :: Lens' PutMetricAlarm [Text]
-- | The statistic's unit of measure. For example, the units for the Amazon
-- EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of
-- bytes that an instance receives on all network interfaces. You can
-- also specify a unit when you create a custom metric. Units help
-- provide conceptual meaning to your data. Metric data points that
-- specify a unit of measure, such as Percent, are aggregated separately.
--
-- Note: If you specify a unit, you must use a unit that is
-- appropriate for the metric. Otherwise, this can cause an Amazon
-- CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
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 GHC.Generics.Generic Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
instance Data.Data.Data Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
instance GHC.Show.Show Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
instance GHC.Read.Read Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance Data.Data.Data Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance GHC.Show.Show Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance GHC.Read.Read Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance GHC.Classes.Eq Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
-- | 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.
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 GHC.Generics.Generic Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
instance Data.Data.Data Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
instance GHC.Show.Show Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
instance GHC.Read.Read Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance Data.Data.Data Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance GHC.Show.Show Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance GHC.Read.Read Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance GHC.Classes.Eq Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
-- | Retrieves all alarms for a single metric. Specify a statistic, period,
-- or unit to filter the set of alarms further.
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. If the metric has
-- any associated dimensions, you must specify them in order for the
-- DescribeAlarmsForMetric to succeed.
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 GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
-- | Gets statistics for the specified metric.
--
-- The maximum number of data points that can be queried is 50,850,
-- whereas the maximum number of data points returned from a single
-- GetMetricStatistics request is 1,440. 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. GetMetricStatistics does not return the data in
-- chronological order.
--
-- 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.
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. The time stamp must be in ISO 8601 UTC format
-- (e.g., 2014-09-03T23:00:00Z).
--
-- The specified start time is rounded down to the nearest value.
-- Datapoints are returned for start times up to two weeks in the past.
-- Specified start times that are more than two weeks in the past will
-- not return datapoints for metrics that are older than two weeks.
--
-- 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.
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. The time stamp must be in ISO 8601 UTC
-- format (e.g., 2014-09-03T23:00:00Z).
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, see Statistics in
-- the Amazon CloudWatch Developer Guide.
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 GHC.Generics.Generic Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
instance Data.Data.Data Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
instance GHC.Show.Show Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
instance GHC.Read.Read Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance Data.Data.Data Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance GHC.Show.Show Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance GHC.Read.Read Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance GHC.Classes.Eq Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
-- | 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.
--
-- Amazon CloudWatch retains the history of an alarm for two weeks,
-- whether or not you delete the alarm.
--
-- 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 GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Network.AWS.Pager.AWSPager Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
-- | Deletes all specified alarms. In the event of an error, no alarms are
-- deleted.
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 GHC.Generics.Generic Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
instance Data.Data.Data Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
instance GHC.Show.Show Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
instance GHC.Read.Read Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance Data.Data.Data Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance GHC.Show.Show Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance GHC.Read.Read Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance GHC.Classes.Eq Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
-- | 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.
--
-- Up to 500 results are returned for any one call. To retrieve further
-- results, use returned NextToken values with subsequent
-- ListMetrics operations.
--
-- If you create a metric with the PutMetricData action, allow up
-- to fifteen minutes for the metric to appear in calls to the
-- ListMetrics action. Statistics about the metric, however, are
-- available sooner using GetMetricStatistics.
--
-- 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 GHC.Generics.Generic Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
instance Data.Data.Data Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
instance GHC.Show.Show Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
instance GHC.Read.Read Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Data.Data.Data Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance GHC.Show.Show Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance GHC.Read.Read Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance GHC.Classes.Eq Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Network.AWS.Pager.AWSPager Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.ListMetrics.ListMetrics
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
-- | 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.
--
-- 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 GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Network.AWS.Pager.AWSPager Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
-- | 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. When
-- Amazon CloudWatch creates a metric, it can take up to fifteen minutes
-- for the metric to appear in calls to the ListMetrics action.
--
-- Each PutMetricData request is limited to 8 KB in size for HTTP
-- GET requests and is limited to 40 KB in size for HTTP POST requests.
--
-- Although the Value parameter accepts numbers of type
-- Double, Amazon CloudWatch rejects values that are either too
-- small or too large. Values must be in the range of 8.515920e-109 to
-- 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition,
-- special values (e.g., NaN, +Infinity, -Infinity) are not supported.
--
-- 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.
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.
--
-- You cannot specify a namespace that begins with "AWS/". Namespaces
-- that begin with "AWS/" are reserved for other Amazon Web Services
-- products that send metrics to Amazon CloudWatch.
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 GHC.Generics.Generic Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
instance Data.Data.Data Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
instance GHC.Show.Show Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
instance GHC.Read.Read Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance Data.Data.Data Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance GHC.Show.Show Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance GHC.Read.Read Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance GHC.Classes.Eq Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.PutMetricData.PutMetricData
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
-- | Enables actions for the specified alarms.
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 GHC.Generics.Generic Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
instance Data.Data.Data Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
instance GHC.Show.Show Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
instance GHC.Read.Read Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
instance GHC.Classes.Eq Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
instance GHC.Generics.Generic Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance Data.Data.Data Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance GHC.Show.Show Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance GHC.Read.Read Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance GHC.Classes.Eq Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
instance Control.DeepSeq.NFData Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
-- | Amazon CloudWatch monitors your Amazon Web Services (AWS) resources
-- and the applications you run on AWS in real-time. You can use
-- CloudWatch to collect and track metrics, which are the variables you
-- want to measure for your resources and applications.
--
-- CloudWatch alarms send notifications or automatically make changes to
-- the resources you are monitoring based on rules that you define. For
-- example, you can monitor the CPU usage and disk reads and writes of
-- your Amazon Elastic Compute Cloud (Amazon EC2) instances and then use
-- this data to determine whether you should launch additional instances
-- to handle increased load. You can also use this data to stop
-- under-used instances to save money.
--
-- In addition to monitoring the built-in metrics that come with AWS, you
-- can monitor your own custom metrics. With CloudWatch, you gain
-- system-wide visibility into resource utilization, application
-- performance, and operational health.
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.
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.
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.
--
-- Specifying a Name without specifying a Value returns
-- all values associated with that Name.
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.
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 Name (ARN).
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.
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 Name (ARN).
--
-- 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 Name (ARN).
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 rejects values that are either too
-- small or too large. Values must be in the range of 8.515920e-109 to
-- 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition,
-- special values (e.g., NaN, +Infinity, -Infinity) are not supported.
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 in ISO 8601 Universal Coordinated
-- Time (UTC) format. If not specified, the default value is set to the
-- time the metric data was received.
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