-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Amazon CloudWatch SDK. -- -- 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. - AWS SDK for Java Documentation - AWS SDK -- for .NET Documentation - AWS SDK for PHP Documentation - -- AWS SDK for Ruby Documentation Developers in the AWS developer -- community also provide their own libraries, which you can find at the -- following AWS developer centers: - AWS Java Developer Center - -- AWS PHP Developer Center - AWS Python Developer Center - -- AWS Ruby Developer Center - AWS Windows and .NET Developer -- Center -- -- 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 and the AWS API Reference to -- get started. @package amazonka-cloudwatch @version 1.3.7 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 GHC.Generics.Constructor Network.AWS.CloudWatch.SetAlarmState.C1_0SetAlarmStateResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.SetAlarmState.D1SetAlarmStateResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.SetAlarmState.S1_0_3SetAlarmState instance GHC.Generics.Selector Network.AWS.CloudWatch.SetAlarmState.S1_0_2SetAlarmState instance GHC.Generics.Selector Network.AWS.CloudWatch.SetAlarmState.S1_0_1SetAlarmState instance GHC.Generics.Selector Network.AWS.CloudWatch.SetAlarmState.S1_0_0SetAlarmState instance GHC.Generics.Constructor Network.AWS.CloudWatch.SetAlarmState.C1_0SetAlarmState instance GHC.Generics.Datatype Network.AWS.CloudWatch.SetAlarmState.D1SetAlarmState 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 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 -- | 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 GHC.Generics.Constructor Network.AWS.CloudWatch.PutMetricAlarm.C1_0PutMetricAlarmResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.PutMetricAlarm.D1PutMetricAlarmResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_14PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_13PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_12PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_11PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_10PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_9PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_8PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_7PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_6PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_5PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_4PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_3PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_2PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_1PutMetricAlarm instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricAlarm.S1_0_0PutMetricAlarm instance GHC.Generics.Constructor Network.AWS.CloudWatch.PutMetricAlarm.C1_0PutMetricAlarm instance GHC.Generics.Datatype Network.AWS.CloudWatch.PutMetricAlarm.D1PutMetricAlarm 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 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 -- | 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 GHC.Generics.Constructor Network.AWS.CloudWatch.DisableAlarmActions.C1_0DisableAlarmActionsResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.DisableAlarmActions.D1DisableAlarmActionsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DisableAlarmActions.S1_0_0DisableAlarmActions instance GHC.Generics.Constructor Network.AWS.CloudWatch.DisableAlarmActions.C1_0DisableAlarmActions instance GHC.Generics.Datatype Network.AWS.CloudWatch.DisableAlarmActions.D1DisableAlarmActions 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 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 -- | 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 GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmsForMetric.S1_0_1DescribeAlarmsForMetricResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmsForMetric.S1_0_0DescribeAlarmsForMetricResponse instance GHC.Generics.Constructor Network.AWS.CloudWatch.DescribeAlarmsForMetric.C1_0DescribeAlarmsForMetricResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.DescribeAlarmsForMetric.D1DescribeAlarmsForMetricResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmsForMetric.S1_0_5DescribeAlarmsForMetric instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmsForMetric.S1_0_4DescribeAlarmsForMetric instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmsForMetric.S1_0_3DescribeAlarmsForMetric instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmsForMetric.S1_0_2DescribeAlarmsForMetric instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmsForMetric.S1_0_1DescribeAlarmsForMetric instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmsForMetric.S1_0_0DescribeAlarmsForMetric instance GHC.Generics.Constructor Network.AWS.CloudWatch.DescribeAlarmsForMetric.C1_0DescribeAlarmsForMetric instance GHC.Generics.Datatype Network.AWS.CloudWatch.DescribeAlarmsForMetric.D1DescribeAlarmsForMetric 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 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 -- | 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: -- -- -- -- 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 GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_2GetMetricStatisticsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_1GetMetricStatisticsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_0GetMetricStatisticsResponse instance GHC.Generics.Constructor Network.AWS.CloudWatch.GetMetricStatistics.C1_0GetMetricStatisticsResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.GetMetricStatistics.D1GetMetricStatisticsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_7GetMetricStatistics instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_6GetMetricStatistics instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_5GetMetricStatistics instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_4GetMetricStatistics instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_3GetMetricStatistics instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_2GetMetricStatistics instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_1GetMetricStatistics instance GHC.Generics.Selector Network.AWS.CloudWatch.GetMetricStatistics.S1_0_0GetMetricStatistics instance GHC.Generics.Constructor Network.AWS.CloudWatch.GetMetricStatistics.C1_0GetMetricStatistics instance GHC.Generics.Datatype Network.AWS.CloudWatch.GetMetricStatistics.D1GetMetricStatistics 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 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 -- | 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 GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_2DescribeAlarmHistoryResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_1DescribeAlarmHistoryResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_0DescribeAlarmHistoryResponse instance GHC.Generics.Constructor Network.AWS.CloudWatch.DescribeAlarmHistory.C1_0DescribeAlarmHistoryResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.DescribeAlarmHistory.D1DescribeAlarmHistoryResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_5DescribeAlarmHistory instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_4DescribeAlarmHistory instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_3DescribeAlarmHistory instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_2DescribeAlarmHistory instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_1DescribeAlarmHistory instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarmHistory.S1_0_0DescribeAlarmHistory instance GHC.Generics.Constructor Network.AWS.CloudWatch.DescribeAlarmHistory.C1_0DescribeAlarmHistory instance GHC.Generics.Datatype Network.AWS.CloudWatch.DescribeAlarmHistory.D1DescribeAlarmHistory 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 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 -- | 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 GHC.Generics.Constructor Network.AWS.CloudWatch.DeleteAlarms.C1_0DeleteAlarmsResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.DeleteAlarms.D1DeleteAlarmsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DeleteAlarms.S1_0_0DeleteAlarms instance GHC.Generics.Constructor Network.AWS.CloudWatch.DeleteAlarms.C1_0DeleteAlarms instance GHC.Generics.Datatype Network.AWS.CloudWatch.DeleteAlarms.D1DeleteAlarms 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 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 -- | 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 GHC.Generics.Selector Network.AWS.CloudWatch.ListMetrics.S1_0_2ListMetricsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.ListMetrics.S1_0_1ListMetricsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.ListMetrics.S1_0_0ListMetricsResponse instance GHC.Generics.Constructor Network.AWS.CloudWatch.ListMetrics.C1_0ListMetricsResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.ListMetrics.D1ListMetricsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.ListMetrics.S1_0_3ListMetrics instance GHC.Generics.Selector Network.AWS.CloudWatch.ListMetrics.S1_0_2ListMetrics instance GHC.Generics.Selector Network.AWS.CloudWatch.ListMetrics.S1_0_1ListMetrics instance GHC.Generics.Selector Network.AWS.CloudWatch.ListMetrics.S1_0_0ListMetrics instance GHC.Generics.Constructor Network.AWS.CloudWatch.ListMetrics.C1_0ListMetrics instance GHC.Generics.Datatype Network.AWS.CloudWatch.ListMetrics.D1ListMetrics 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 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 -- | 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 GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_2DescribeAlarmsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_1DescribeAlarmsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_0DescribeAlarmsResponse instance GHC.Generics.Constructor Network.AWS.CloudWatch.DescribeAlarms.C1_0DescribeAlarmsResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.DescribeAlarms.D1DescribeAlarmsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_5DescribeAlarms instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_4DescribeAlarms instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_3DescribeAlarms instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_2DescribeAlarms instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_1DescribeAlarms instance GHC.Generics.Selector Network.AWS.CloudWatch.DescribeAlarms.S1_0_0DescribeAlarms instance GHC.Generics.Constructor Network.AWS.CloudWatch.DescribeAlarms.C1_0DescribeAlarms instance GHC.Generics.Datatype Network.AWS.CloudWatch.DescribeAlarms.D1DescribeAlarms 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 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 -- | 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 GHC.Generics.Constructor Network.AWS.CloudWatch.PutMetricData.C1_0PutMetricDataResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.PutMetricData.D1PutMetricDataResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricData.S1_0_1PutMetricData instance GHC.Generics.Selector Network.AWS.CloudWatch.PutMetricData.S1_0_0PutMetricData instance GHC.Generics.Constructor Network.AWS.CloudWatch.PutMetricData.C1_0PutMetricData instance GHC.Generics.Datatype Network.AWS.CloudWatch.PutMetricData.D1PutMetricData 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 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 -- | 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 GHC.Generics.Constructor Network.AWS.CloudWatch.EnableAlarmActions.C1_0EnableAlarmActionsResponse instance GHC.Generics.Datatype Network.AWS.CloudWatch.EnableAlarmActions.D1EnableAlarmActionsResponse instance GHC.Generics.Selector Network.AWS.CloudWatch.EnableAlarmActions.S1_0_0EnableAlarmActions instance GHC.Generics.Constructor Network.AWS.CloudWatch.EnableAlarmActions.C1_0EnableAlarmActions instance GHC.Generics.Datatype Network.AWS.CloudWatch.EnableAlarmActions.D1EnableAlarmActions 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 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 -- | 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/: -- -- -- -- 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