Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Service Configuration
- Errors
- ActionsSuppressedBy
- AlarmType
- AnomalyDetectorStateValue
- AnomalyDetectorType
- ComparisonOperator
- EvaluationState
- HistoryItemType
- MetricStreamOutputFormat
- RecentlyActive
- ScanBy
- StandardUnit
- StateValue
- Statistic
- StatusCode
- AlarmHistoryItem
- AnomalyDetector
- AnomalyDetectorConfiguration
- CompositeAlarm
- DashboardEntry
- DashboardValidationMessage
- Datapoint
- Dimension
- DimensionFilter
- InsightRule
- InsightRuleContributor
- InsightRuleContributorDatapoint
- InsightRuleMetricDatapoint
- LabelOptions
- ManagedRule
- ManagedRuleDescription
- ManagedRuleState
- MessageData
- Metric
- MetricAlarm
- MetricDataQuery
- MetricDataResult
- MetricDatum
- MetricMathAnomalyDetector
- MetricStat
- MetricStreamEntry
- MetricStreamFilter
- MetricStreamStatisticsConfiguration
- MetricStreamStatisticsMetric
- PartialFailure
- Range
- SingleMetricAnomalyDetector
- StatisticSet
- Tag
Synopsis
- defaultService :: Service
- _ConcurrentModificationException :: AsError a => Fold a ServiceError
- _DashboardInvalidInputError :: AsError a => Fold a ServiceError
- _DashboardNotFoundError :: AsError a => Fold a ServiceError
- _InternalServiceFault :: AsError a => Fold a ServiceError
- _InvalidFormatFault :: AsError a => Fold a ServiceError
- _InvalidNextToken :: AsError a => Fold a ServiceError
- _InvalidParameterCombinationException :: AsError a => Fold a ServiceError
- _InvalidParameterValueException :: AsError a => Fold a ServiceError
- _LimitExceededException :: AsError a => Fold a ServiceError
- _LimitExceededFault :: AsError a => Fold a ServiceError
- _MissingRequiredParameterException :: AsError a => Fold a ServiceError
- _ResourceNotFound :: AsError a => Fold a ServiceError
- _ResourceNotFoundException :: AsError a => Fold a ServiceError
- newtype ActionsSuppressedBy where
- newtype AlarmType where
- AlarmType' { }
- pattern AlarmType_CompositeAlarm :: AlarmType
- pattern AlarmType_MetricAlarm :: AlarmType
- newtype AnomalyDetectorStateValue where
- newtype AnomalyDetectorType where
- newtype ComparisonOperator where
- ComparisonOperator' { }
- pattern ComparisonOperator_GreaterThanOrEqualToThreshold :: ComparisonOperator
- pattern ComparisonOperator_GreaterThanThreshold :: ComparisonOperator
- pattern ComparisonOperator_GreaterThanUpperThreshold :: ComparisonOperator
- pattern ComparisonOperator_LessThanLowerOrGreaterThanUpperThreshold :: ComparisonOperator
- pattern ComparisonOperator_LessThanLowerThreshold :: ComparisonOperator
- pattern ComparisonOperator_LessThanOrEqualToThreshold :: ComparisonOperator
- pattern ComparisonOperator_LessThanThreshold :: ComparisonOperator
- newtype EvaluationState where
- EvaluationState' { }
- pattern EvaluationState_PARTIAL_DATA :: EvaluationState
- newtype HistoryItemType where
- HistoryItemType' { }
- pattern HistoryItemType_Action :: HistoryItemType
- pattern HistoryItemType_ConfigurationUpdate :: HistoryItemType
- pattern HistoryItemType_StateUpdate :: HistoryItemType
- newtype MetricStreamOutputFormat where
- newtype RecentlyActive where
- RecentlyActive' { }
- pattern RecentlyActive_PT3H :: RecentlyActive
- newtype ScanBy where
- ScanBy' {
- fromScanBy :: Text
- pattern ScanBy_TimestampAscending :: ScanBy
- pattern ScanBy_TimestampDescending :: ScanBy
- ScanBy' {
- newtype StandardUnit where
- StandardUnit' { }
- pattern StandardUnit_Bits :: StandardUnit
- pattern StandardUnit_Bits_Second :: StandardUnit
- pattern StandardUnit_Bytes :: StandardUnit
- pattern StandardUnit_Bytes_Second :: StandardUnit
- pattern StandardUnit_Count :: StandardUnit
- pattern StandardUnit_Count_Second :: StandardUnit
- pattern StandardUnit_Gigabits :: StandardUnit
- pattern StandardUnit_Gigabits_Second :: StandardUnit
- pattern StandardUnit_Gigabytes :: StandardUnit
- pattern StandardUnit_Gigabytes_Second :: StandardUnit
- pattern StandardUnit_Kilobits :: StandardUnit
- pattern StandardUnit_Kilobits_Second :: StandardUnit
- pattern StandardUnit_Kilobytes :: StandardUnit
- pattern StandardUnit_Kilobytes_Second :: StandardUnit
- pattern StandardUnit_Megabits :: StandardUnit
- pattern StandardUnit_Megabits_Second :: StandardUnit
- pattern StandardUnit_Megabytes :: StandardUnit
- pattern StandardUnit_Megabytes_Second :: StandardUnit
- pattern StandardUnit_Microseconds :: StandardUnit
- pattern StandardUnit_Milliseconds :: StandardUnit
- pattern StandardUnit_None :: StandardUnit
- pattern StandardUnit_Percent :: StandardUnit
- pattern StandardUnit_Seconds :: StandardUnit
- pattern StandardUnit_Terabits :: StandardUnit
- pattern StandardUnit_Terabits_Second :: StandardUnit
- pattern StandardUnit_Terabytes :: StandardUnit
- pattern StandardUnit_Terabytes_Second :: StandardUnit
- newtype StateValue where
- StateValue' { }
- pattern StateValue_ALARM :: StateValue
- pattern StateValue_INSUFFICIENT_DATA :: StateValue
- pattern StateValue_OK :: StateValue
- newtype Statistic where
- Statistic' { }
- pattern Statistic_Average :: Statistic
- pattern Statistic_Maximum :: Statistic
- pattern Statistic_Minimum :: Statistic
- pattern Statistic_SampleCount :: Statistic
- pattern Statistic_Sum :: Statistic
- newtype StatusCode where
- StatusCode' { }
- pattern StatusCode_Complete :: StatusCode
- pattern StatusCode_Forbidden :: StatusCode
- pattern StatusCode_InternalError :: StatusCode
- pattern StatusCode_PartialData :: StatusCode
- data AlarmHistoryItem = AlarmHistoryItem' {}
- newAlarmHistoryItem :: AlarmHistoryItem
- alarmHistoryItem_alarmName :: Lens' AlarmHistoryItem (Maybe Text)
- alarmHistoryItem_alarmType :: Lens' AlarmHistoryItem (Maybe AlarmType)
- alarmHistoryItem_historyData :: Lens' AlarmHistoryItem (Maybe Text)
- alarmHistoryItem_historyItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
- alarmHistoryItem_historySummary :: Lens' AlarmHistoryItem (Maybe Text)
- alarmHistoryItem_timestamp :: Lens' AlarmHistoryItem (Maybe UTCTime)
- data AnomalyDetector = AnomalyDetector' {
- configuration :: Maybe AnomalyDetectorConfiguration
- dimensions :: Maybe [Dimension]
- metricMathAnomalyDetector :: Maybe MetricMathAnomalyDetector
- metricName :: Maybe Text
- namespace :: Maybe Text
- singleMetricAnomalyDetector :: Maybe SingleMetricAnomalyDetector
- stat :: Maybe Text
- stateValue :: Maybe AnomalyDetectorStateValue
- newAnomalyDetector :: AnomalyDetector
- anomalyDetector_configuration :: Lens' AnomalyDetector (Maybe AnomalyDetectorConfiguration)
- anomalyDetector_dimensions :: Lens' AnomalyDetector (Maybe [Dimension])
- anomalyDetector_metricMathAnomalyDetector :: Lens' AnomalyDetector (Maybe MetricMathAnomalyDetector)
- anomalyDetector_metricName :: Lens' AnomalyDetector (Maybe Text)
- anomalyDetector_namespace :: Lens' AnomalyDetector (Maybe Text)
- anomalyDetector_singleMetricAnomalyDetector :: Lens' AnomalyDetector (Maybe SingleMetricAnomalyDetector)
- anomalyDetector_stat :: Lens' AnomalyDetector (Maybe Text)
- anomalyDetector_stateValue :: Lens' AnomalyDetector (Maybe AnomalyDetectorStateValue)
- data AnomalyDetectorConfiguration = AnomalyDetectorConfiguration' {}
- newAnomalyDetectorConfiguration :: AnomalyDetectorConfiguration
- anomalyDetectorConfiguration_excludedTimeRanges :: Lens' AnomalyDetectorConfiguration (Maybe [Range])
- anomalyDetectorConfiguration_metricTimezone :: Lens' AnomalyDetectorConfiguration (Maybe Text)
- data CompositeAlarm = CompositeAlarm' {
- actionsEnabled :: Maybe Bool
- actionsSuppressedBy :: Maybe ActionsSuppressedBy
- actionsSuppressedReason :: Maybe Text
- actionsSuppressor :: Maybe Text
- actionsSuppressorExtensionPeriod :: Maybe Int
- actionsSuppressorWaitPeriod :: Maybe Int
- alarmActions :: Maybe [Text]
- alarmArn :: Maybe Text
- alarmConfigurationUpdatedTimestamp :: Maybe ISO8601
- alarmDescription :: Maybe Text
- alarmName :: Maybe Text
- alarmRule :: Maybe Text
- insufficientDataActions :: Maybe [Text]
- oKActions :: Maybe [Text]
- stateReason :: Maybe Text
- stateReasonData :: Maybe Text
- stateTransitionedTimestamp :: Maybe ISO8601
- stateUpdatedTimestamp :: Maybe ISO8601
- stateValue :: Maybe StateValue
- newCompositeAlarm :: CompositeAlarm
- compositeAlarm_actionsEnabled :: Lens' CompositeAlarm (Maybe Bool)
- compositeAlarm_actionsSuppressedBy :: Lens' CompositeAlarm (Maybe ActionsSuppressedBy)
- compositeAlarm_actionsSuppressedReason :: Lens' CompositeAlarm (Maybe Text)
- compositeAlarm_actionsSuppressor :: Lens' CompositeAlarm (Maybe Text)
- compositeAlarm_actionsSuppressorExtensionPeriod :: Lens' CompositeAlarm (Maybe Int)
- compositeAlarm_actionsSuppressorWaitPeriod :: Lens' CompositeAlarm (Maybe Int)
- compositeAlarm_alarmActions :: Lens' CompositeAlarm (Maybe [Text])
- compositeAlarm_alarmArn :: Lens' CompositeAlarm (Maybe Text)
- compositeAlarm_alarmConfigurationUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
- compositeAlarm_alarmDescription :: Lens' CompositeAlarm (Maybe Text)
- compositeAlarm_alarmName :: Lens' CompositeAlarm (Maybe Text)
- compositeAlarm_alarmRule :: Lens' CompositeAlarm (Maybe Text)
- compositeAlarm_insufficientDataActions :: Lens' CompositeAlarm (Maybe [Text])
- compositeAlarm_oKActions :: Lens' CompositeAlarm (Maybe [Text])
- compositeAlarm_stateReason :: Lens' CompositeAlarm (Maybe Text)
- compositeAlarm_stateReasonData :: Lens' CompositeAlarm (Maybe Text)
- compositeAlarm_stateTransitionedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
- compositeAlarm_stateUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
- compositeAlarm_stateValue :: Lens' CompositeAlarm (Maybe StateValue)
- data DashboardEntry = DashboardEntry' {}
- newDashboardEntry :: DashboardEntry
- dashboardEntry_dashboardArn :: Lens' DashboardEntry (Maybe Text)
- dashboardEntry_dashboardName :: Lens' DashboardEntry (Maybe Text)
- dashboardEntry_lastModified :: Lens' DashboardEntry (Maybe UTCTime)
- dashboardEntry_size :: Lens' DashboardEntry (Maybe Integer)
- data DashboardValidationMessage = DashboardValidationMessage' {}
- newDashboardValidationMessage :: DashboardValidationMessage
- dashboardValidationMessage_dataPath :: Lens' DashboardValidationMessage (Maybe Text)
- dashboardValidationMessage_message :: Lens' DashboardValidationMessage (Maybe Text)
- data Datapoint = Datapoint' {}
- newDatapoint :: Datapoint
- datapoint_average :: Lens' Datapoint (Maybe Double)
- datapoint_extendedStatistics :: Lens' Datapoint (Maybe (HashMap Text Double))
- datapoint_maximum :: Lens' Datapoint (Maybe Double)
- datapoint_minimum :: Lens' Datapoint (Maybe Double)
- datapoint_sampleCount :: Lens' Datapoint (Maybe Double)
- datapoint_sum :: Lens' Datapoint (Maybe Double)
- datapoint_timestamp :: Lens' Datapoint (Maybe UTCTime)
- datapoint_unit :: Lens' Datapoint (Maybe StandardUnit)
- data Dimension = Dimension' {}
- newDimension :: Text -> Text -> Dimension
- dimension_name :: Lens' Dimension Text
- dimension_value :: Lens' Dimension Text
- data DimensionFilter = DimensionFilter' {}
- newDimensionFilter :: Text -> DimensionFilter
- dimensionFilter_value :: Lens' DimensionFilter (Maybe Text)
- dimensionFilter_name :: Lens' DimensionFilter Text
- data InsightRule = InsightRule' {}
- newInsightRule :: Text -> Text -> Text -> Text -> InsightRule
- insightRule_managedRule :: Lens' InsightRule (Maybe Bool)
- insightRule_name :: Lens' InsightRule Text
- insightRule_state :: Lens' InsightRule Text
- insightRule_schema :: Lens' InsightRule Text
- insightRule_definition :: Lens' InsightRule Text
- data InsightRuleContributor = InsightRuleContributor' {}
- newInsightRuleContributor :: Double -> InsightRuleContributor
- insightRuleContributor_keys :: Lens' InsightRuleContributor [Text]
- insightRuleContributor_approximateAggregateValue :: Lens' InsightRuleContributor Double
- insightRuleContributor_datapoints :: Lens' InsightRuleContributor [InsightRuleContributorDatapoint]
- data InsightRuleContributorDatapoint = InsightRuleContributorDatapoint' {}
- newInsightRuleContributorDatapoint :: UTCTime -> Double -> InsightRuleContributorDatapoint
- insightRuleContributorDatapoint_timestamp :: Lens' InsightRuleContributorDatapoint UTCTime
- insightRuleContributorDatapoint_approximateValue :: Lens' InsightRuleContributorDatapoint Double
- data InsightRuleMetricDatapoint = InsightRuleMetricDatapoint' {}
- newInsightRuleMetricDatapoint :: UTCTime -> InsightRuleMetricDatapoint
- insightRuleMetricDatapoint_average :: Lens' InsightRuleMetricDatapoint (Maybe Double)
- insightRuleMetricDatapoint_maxContributorValue :: Lens' InsightRuleMetricDatapoint (Maybe Double)
- insightRuleMetricDatapoint_maximum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
- insightRuleMetricDatapoint_minimum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
- insightRuleMetricDatapoint_sampleCount :: Lens' InsightRuleMetricDatapoint (Maybe Double)
- insightRuleMetricDatapoint_sum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
- insightRuleMetricDatapoint_uniqueContributors :: Lens' InsightRuleMetricDatapoint (Maybe Double)
- insightRuleMetricDatapoint_timestamp :: Lens' InsightRuleMetricDatapoint UTCTime
- data LabelOptions = LabelOptions' {}
- newLabelOptions :: LabelOptions
- labelOptions_timezone :: Lens' LabelOptions (Maybe Text)
- data ManagedRule = ManagedRule' {
- tags :: Maybe [Tag]
- templateName :: Text
- resourceARN :: Text
- newManagedRule :: Text -> Text -> ManagedRule
- managedRule_tags :: Lens' ManagedRule (Maybe [Tag])
- managedRule_templateName :: Lens' ManagedRule Text
- managedRule_resourceARN :: Lens' ManagedRule Text
- data ManagedRuleDescription = ManagedRuleDescription' {}
- newManagedRuleDescription :: ManagedRuleDescription
- managedRuleDescription_resourceARN :: Lens' ManagedRuleDescription (Maybe Text)
- managedRuleDescription_ruleState :: Lens' ManagedRuleDescription (Maybe ManagedRuleState)
- managedRuleDescription_templateName :: Lens' ManagedRuleDescription (Maybe Text)
- data ManagedRuleState = ManagedRuleState' {}
- newManagedRuleState :: Text -> Text -> ManagedRuleState
- managedRuleState_ruleName :: Lens' ManagedRuleState Text
- managedRuleState_state :: Lens' ManagedRuleState Text
- data MessageData = MessageData' {}
- newMessageData :: MessageData
- messageData_code :: Lens' MessageData (Maybe Text)
- messageData_value :: Lens' MessageData (Maybe Text)
- data Metric = Metric' {
- dimensions :: Maybe [Dimension]
- metricName :: Maybe Text
- namespace :: Maybe Text
- newMetric :: Metric
- metric_dimensions :: Lens' Metric (Maybe [Dimension])
- metric_metricName :: Lens' Metric (Maybe Text)
- metric_namespace :: Lens' Metric (Maybe Text)
- data MetricAlarm = MetricAlarm' {
- actionsEnabled :: Maybe Bool
- alarmActions :: Maybe [Text]
- alarmArn :: Maybe Text
- alarmConfigurationUpdatedTimestamp :: Maybe ISO8601
- alarmDescription :: Maybe Text
- alarmName :: Maybe Text
- comparisonOperator :: Maybe ComparisonOperator
- datapointsToAlarm :: Maybe Natural
- dimensions :: Maybe [Dimension]
- evaluateLowSampleCountPercentile :: Maybe Text
- evaluationPeriods :: Maybe Natural
- evaluationState :: Maybe EvaluationState
- extendedStatistic :: Maybe Text
- insufficientDataActions :: Maybe [Text]
- metricName :: Maybe Text
- metrics :: Maybe [MetricDataQuery]
- namespace :: Maybe Text
- oKActions :: Maybe [Text]
- period :: Maybe Natural
- stateReason :: Maybe Text
- stateReasonData :: Maybe Text
- stateTransitionedTimestamp :: Maybe ISO8601
- stateUpdatedTimestamp :: Maybe ISO8601
- stateValue :: Maybe StateValue
- statistic :: Maybe Statistic
- threshold :: Maybe Double
- thresholdMetricId :: Maybe Text
- treatMissingData :: Maybe Text
- unit :: Maybe StandardUnit
- newMetricAlarm :: MetricAlarm
- metricAlarm_actionsEnabled :: Lens' MetricAlarm (Maybe Bool)
- metricAlarm_alarmActions :: Lens' MetricAlarm (Maybe [Text])
- metricAlarm_alarmArn :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_alarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
- metricAlarm_alarmDescription :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_alarmName :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_comparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator)
- metricAlarm_datapointsToAlarm :: Lens' MetricAlarm (Maybe Natural)
- metricAlarm_dimensions :: Lens' MetricAlarm (Maybe [Dimension])
- metricAlarm_evaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_evaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
- metricAlarm_evaluationState :: Lens' MetricAlarm (Maybe EvaluationState)
- metricAlarm_extendedStatistic :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_insufficientDataActions :: Lens' MetricAlarm (Maybe [Text])
- metricAlarm_metricName :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_metrics :: Lens' MetricAlarm (Maybe [MetricDataQuery])
- metricAlarm_namespace :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_oKActions :: Lens' MetricAlarm (Maybe [Text])
- metricAlarm_period :: Lens' MetricAlarm (Maybe Natural)
- metricAlarm_stateReason :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_stateReasonData :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_stateTransitionedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
- metricAlarm_stateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
- metricAlarm_stateValue :: Lens' MetricAlarm (Maybe StateValue)
- metricAlarm_statistic :: Lens' MetricAlarm (Maybe Statistic)
- metricAlarm_threshold :: Lens' MetricAlarm (Maybe Double)
- metricAlarm_thresholdMetricId :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_treatMissingData :: Lens' MetricAlarm (Maybe Text)
- metricAlarm_unit :: Lens' MetricAlarm (Maybe StandardUnit)
- data MetricDataQuery = MetricDataQuery' {
- accountId :: Maybe Text
- expression :: Maybe Text
- label :: Maybe Text
- metricStat :: Maybe MetricStat
- period :: Maybe Natural
- returnData :: Maybe Bool
- id :: Text
- newMetricDataQuery :: Text -> MetricDataQuery
- metricDataQuery_accountId :: Lens' MetricDataQuery (Maybe Text)
- metricDataQuery_expression :: Lens' MetricDataQuery (Maybe Text)
- metricDataQuery_label :: Lens' MetricDataQuery (Maybe Text)
- metricDataQuery_metricStat :: Lens' MetricDataQuery (Maybe MetricStat)
- metricDataQuery_period :: Lens' MetricDataQuery (Maybe Natural)
- metricDataQuery_returnData :: Lens' MetricDataQuery (Maybe Bool)
- metricDataQuery_id :: Lens' MetricDataQuery Text
- data MetricDataResult = MetricDataResult' {
- id :: Maybe Text
- label :: Maybe Text
- messages :: Maybe [MessageData]
- statusCode :: Maybe StatusCode
- timestamps :: Maybe [ISO8601]
- values :: Maybe [Double]
- newMetricDataResult :: MetricDataResult
- metricDataResult_id :: Lens' MetricDataResult (Maybe Text)
- metricDataResult_label :: Lens' MetricDataResult (Maybe Text)
- metricDataResult_messages :: Lens' MetricDataResult (Maybe [MessageData])
- metricDataResult_statusCode :: Lens' MetricDataResult (Maybe StatusCode)
- metricDataResult_timestamps :: Lens' MetricDataResult (Maybe [UTCTime])
- metricDataResult_values :: Lens' MetricDataResult (Maybe [Double])
- data MetricDatum = MetricDatum' {
- counts :: Maybe [Double]
- dimensions :: Maybe [Dimension]
- statisticValues :: Maybe StatisticSet
- storageResolution :: Maybe Natural
- timestamp :: Maybe ISO8601
- unit :: Maybe StandardUnit
- value :: Maybe Double
- values :: Maybe [Double]
- metricName :: Text
- newMetricDatum :: Text -> MetricDatum
- metricDatum_counts :: Lens' MetricDatum (Maybe [Double])
- metricDatum_dimensions :: Lens' MetricDatum (Maybe [Dimension])
- metricDatum_statisticValues :: Lens' MetricDatum (Maybe StatisticSet)
- metricDatum_storageResolution :: Lens' MetricDatum (Maybe Natural)
- metricDatum_timestamp :: Lens' MetricDatum (Maybe UTCTime)
- metricDatum_unit :: Lens' MetricDatum (Maybe StandardUnit)
- metricDatum_value :: Lens' MetricDatum (Maybe Double)
- metricDatum_values :: Lens' MetricDatum (Maybe [Double])
- metricDatum_metricName :: Lens' MetricDatum Text
- data MetricMathAnomalyDetector = MetricMathAnomalyDetector' {}
- newMetricMathAnomalyDetector :: MetricMathAnomalyDetector
- metricMathAnomalyDetector_metricDataQueries :: Lens' MetricMathAnomalyDetector (Maybe [MetricDataQuery])
- data MetricStat = MetricStat' {}
- newMetricStat :: Metric -> Natural -> Text -> MetricStat
- metricStat_unit :: Lens' MetricStat (Maybe StandardUnit)
- metricStat_metric :: Lens' MetricStat Metric
- metricStat_period :: Lens' MetricStat Natural
- metricStat_stat :: Lens' MetricStat Text
- data MetricStreamEntry = MetricStreamEntry' {}
- newMetricStreamEntry :: MetricStreamEntry
- metricStreamEntry_arn :: Lens' MetricStreamEntry (Maybe Text)
- metricStreamEntry_creationDate :: Lens' MetricStreamEntry (Maybe UTCTime)
- metricStreamEntry_firehoseArn :: Lens' MetricStreamEntry (Maybe Text)
- metricStreamEntry_lastUpdateDate :: Lens' MetricStreamEntry (Maybe UTCTime)
- metricStreamEntry_name :: Lens' MetricStreamEntry (Maybe Text)
- metricStreamEntry_outputFormat :: Lens' MetricStreamEntry (Maybe MetricStreamOutputFormat)
- metricStreamEntry_state :: Lens' MetricStreamEntry (Maybe Text)
- data MetricStreamFilter = MetricStreamFilter' {}
- newMetricStreamFilter :: MetricStreamFilter
- metricStreamFilter_namespace :: Lens' MetricStreamFilter (Maybe Text)
- data MetricStreamStatisticsConfiguration = MetricStreamStatisticsConfiguration' {}
- newMetricStreamStatisticsConfiguration :: MetricStreamStatisticsConfiguration
- metricStreamStatisticsConfiguration_includeMetrics :: Lens' MetricStreamStatisticsConfiguration [MetricStreamStatisticsMetric]
- metricStreamStatisticsConfiguration_additionalStatistics :: Lens' MetricStreamStatisticsConfiguration [Text]
- data MetricStreamStatisticsMetric = MetricStreamStatisticsMetric' {
- namespace :: Text
- metricName :: Text
- newMetricStreamStatisticsMetric :: Text -> Text -> MetricStreamStatisticsMetric
- metricStreamStatisticsMetric_namespace :: Lens' MetricStreamStatisticsMetric Text
- metricStreamStatisticsMetric_metricName :: Lens' MetricStreamStatisticsMetric Text
- data PartialFailure = PartialFailure' {}
- newPartialFailure :: PartialFailure
- partialFailure_exceptionType :: Lens' PartialFailure (Maybe Text)
- partialFailure_failureCode :: Lens' PartialFailure (Maybe Text)
- partialFailure_failureDescription :: Lens' PartialFailure (Maybe Text)
- partialFailure_failureResource :: Lens' PartialFailure (Maybe Text)
- data Range = Range' {}
- newRange :: UTCTime -> UTCTime -> Range
- range_startTime :: Lens' Range UTCTime
- range_endTime :: Lens' Range UTCTime
- data SingleMetricAnomalyDetector = SingleMetricAnomalyDetector' {}
- newSingleMetricAnomalyDetector :: SingleMetricAnomalyDetector
- singleMetricAnomalyDetector_dimensions :: Lens' SingleMetricAnomalyDetector (Maybe [Dimension])
- singleMetricAnomalyDetector_metricName :: Lens' SingleMetricAnomalyDetector (Maybe Text)
- singleMetricAnomalyDetector_namespace :: Lens' SingleMetricAnomalyDetector (Maybe Text)
- singleMetricAnomalyDetector_stat :: Lens' SingleMetricAnomalyDetector (Maybe Text)
- data StatisticSet = StatisticSet' {}
- newStatisticSet :: Double -> Double -> Double -> Double -> StatisticSet
- statisticSet_sampleCount :: Lens' StatisticSet Double
- statisticSet_sum :: Lens' StatisticSet Double
- statisticSet_minimum :: Lens' StatisticSet Double
- statisticSet_maximum :: Lens' StatisticSet Double
- data Tag = Tag' {}
- newTag :: Text -> Text -> Tag
- tag_key :: Lens' Tag Text
- tag_value :: Lens' Tag Text
Service Configuration
defaultService :: Service Source #
API version 2010-08-01
of the Amazon CloudWatch SDK configuration.
Errors
_ConcurrentModificationException :: AsError a => Fold a ServiceError Source #
More than one process tried to modify a resource at the same time.
_DashboardInvalidInputError :: AsError a => Fold a ServiceError Source #
Some part of the dashboard data is invalid.
_DashboardNotFoundError :: AsError a => Fold a ServiceError Source #
The specified dashboard does not exist.
_InternalServiceFault :: AsError a => Fold a ServiceError Source #
Request processing has failed due to some unknown error, exception, or failure.
_InvalidFormatFault :: AsError a => Fold a ServiceError Source #
Data was not syntactically valid JSON.
_InvalidNextToken :: AsError a => Fold a ServiceError Source #
The next token specified is invalid.
_InvalidParameterCombinationException :: AsError a => Fold a ServiceError Source #
Parameters were used together that cannot be used together.
_InvalidParameterValueException :: AsError a => Fold a ServiceError Source #
The value of an input parameter is bad or out-of-range.
_LimitExceededException :: AsError a => Fold a ServiceError Source #
The operation exceeded one or more limits.
_LimitExceededFault :: AsError a => Fold a ServiceError Source #
The quota for alarms for this customer has already been reached.
_MissingRequiredParameterException :: AsError a => Fold a ServiceError Source #
An input parameter that is required is missing.
_ResourceNotFound :: AsError a => Fold a ServiceError Source #
The named resource does not exist.
_ResourceNotFoundException :: AsError a => Fold a ServiceError Source #
The named resource does not exist.
ActionsSuppressedBy
newtype ActionsSuppressedBy Source #
pattern ActionsSuppressedBy_Alarm :: ActionsSuppressedBy | |
pattern ActionsSuppressedBy_ExtensionPeriod :: ActionsSuppressedBy | |
pattern ActionsSuppressedBy_WaitPeriod :: ActionsSuppressedBy |
Instances
AlarmType
pattern AlarmType_CompositeAlarm :: AlarmType | |
pattern AlarmType_MetricAlarm :: AlarmType |
Instances
AnomalyDetectorStateValue
newtype AnomalyDetectorStateValue Source #
Instances
AnomalyDetectorType
newtype AnomalyDetectorType Source #
pattern AnomalyDetectorType_METRIC_MATH :: AnomalyDetectorType | |
pattern AnomalyDetectorType_SINGLE_METRIC :: AnomalyDetectorType |
Instances
ComparisonOperator
newtype ComparisonOperator Source #
Instances
EvaluationState
newtype EvaluationState Source #
pattern EvaluationState_PARTIAL_DATA :: EvaluationState |
Instances
HistoryItemType
newtype HistoryItemType Source #
pattern HistoryItemType_Action :: HistoryItemType | |
pattern HistoryItemType_ConfigurationUpdate :: HistoryItemType | |
pattern HistoryItemType_StateUpdate :: HistoryItemType |
Instances
MetricStreamOutputFormat
newtype MetricStreamOutputFormat Source #
pattern MetricStreamOutputFormat_Json :: MetricStreamOutputFormat | |
pattern MetricStreamOutputFormat_Opentelemetry0_7 :: MetricStreamOutputFormat |
Instances
RecentlyActive
newtype RecentlyActive Source #
pattern RecentlyActive_PT3H :: RecentlyActive |
Instances
ScanBy
pattern ScanBy_TimestampAscending :: ScanBy | |
pattern ScanBy_TimestampDescending :: ScanBy |
Instances
StandardUnit
newtype StandardUnit Source #
Instances
StateValue
newtype StateValue Source #
pattern StateValue_ALARM :: StateValue | |
pattern StateValue_INSUFFICIENT_DATA :: StateValue | |
pattern StateValue_OK :: StateValue |
Instances
Statistic
pattern Statistic_Average :: Statistic | |
pattern Statistic_Maximum :: Statistic | |
pattern Statistic_Minimum :: Statistic | |
pattern Statistic_SampleCount :: Statistic | |
pattern Statistic_Sum :: Statistic |
Instances
StatusCode
newtype StatusCode Source #
pattern StatusCode_Complete :: StatusCode | |
pattern StatusCode_Forbidden :: StatusCode | |
pattern StatusCode_InternalError :: StatusCode | |
pattern StatusCode_PartialData :: StatusCode |
Instances
AlarmHistoryItem
data AlarmHistoryItem Source #
Represents the history of a specific alarm.
See: newAlarmHistoryItem
smart constructor.
AlarmHistoryItem' | |
|
Instances
newAlarmHistoryItem :: AlarmHistoryItem Source #
Create a value of AlarmHistoryItem
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:alarmName:AlarmHistoryItem'
, alarmHistoryItem_alarmName
- The descriptive name for the alarm.
$sel:alarmType:AlarmHistoryItem'
, alarmHistoryItem_alarmType
- The type of alarm, either metric alarm or composite alarm.
$sel:historyData:AlarmHistoryItem'
, alarmHistoryItem_historyData
- Data about the alarm, in JSON format.
$sel:historyItemType:AlarmHistoryItem'
, alarmHistoryItem_historyItemType
- The type of alarm history item.
$sel:historySummary:AlarmHistoryItem'
, alarmHistoryItem_historySummary
- A summary of the alarm history, in text format.
$sel:timestamp:AlarmHistoryItem'
, alarmHistoryItem_timestamp
- The time stamp for the alarm history item.
alarmHistoryItem_alarmName :: Lens' AlarmHistoryItem (Maybe Text) Source #
The descriptive name for the alarm.
alarmHistoryItem_alarmType :: Lens' AlarmHistoryItem (Maybe AlarmType) Source #
The type of alarm, either metric alarm or composite alarm.
alarmHistoryItem_historyData :: Lens' AlarmHistoryItem (Maybe Text) Source #
Data about the alarm, in JSON format.
alarmHistoryItem_historyItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType) Source #
The type of alarm history item.
alarmHistoryItem_historySummary :: Lens' AlarmHistoryItem (Maybe Text) Source #
A summary of the alarm history, in text format.
alarmHistoryItem_timestamp :: Lens' AlarmHistoryItem (Maybe UTCTime) Source #
The time stamp for the alarm history item.
AnomalyDetector
data AnomalyDetector Source #
An anomaly detection model associated with a particular CloudWatch metric, statistic, or metric math expression. You can use the model to display a band of expected, normal values when the metric is graphed.
See: newAnomalyDetector
smart constructor.
AnomalyDetector' | |
|
Instances
newAnomalyDetector :: AnomalyDetector Source #
Create a value of AnomalyDetector
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:configuration:AnomalyDetector'
, anomalyDetector_configuration
- The configuration specifies details about how the anomaly detection
model is to be trained, including time ranges to exclude from use for
training the model, and the time zone to use for the metric.
AnomalyDetector
, anomalyDetector_dimensions
- The metric dimensions associated with the anomaly detection model.
$sel:metricMathAnomalyDetector:AnomalyDetector'
, anomalyDetector_metricMathAnomalyDetector
- The CloudWatch metric math expression for this anomaly detector.
AnomalyDetector
, anomalyDetector_metricName
- The name of the metric associated with the anomaly detection model.
AnomalyDetector
, anomalyDetector_namespace
- The namespace of the metric associated with the anomaly detection model.
$sel:singleMetricAnomalyDetector:AnomalyDetector'
, anomalyDetector_singleMetricAnomalyDetector
- The CloudWatch metric and statistic for this anomaly detector.
AnomalyDetector
, anomalyDetector_stat
- The statistic associated with the anomaly detection model.
$sel:stateValue:AnomalyDetector'
, anomalyDetector_stateValue
- The current status of the anomaly detector's training. The possible
values are TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA
anomalyDetector_configuration :: Lens' AnomalyDetector (Maybe AnomalyDetectorConfiguration) Source #
The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model, and the time zone to use for the metric.
anomalyDetector_dimensions :: Lens' AnomalyDetector (Maybe [Dimension]) Source #
The metric dimensions associated with the anomaly detection model.
anomalyDetector_metricMathAnomalyDetector :: Lens' AnomalyDetector (Maybe MetricMathAnomalyDetector) Source #
The CloudWatch metric math expression for this anomaly detector.
anomalyDetector_metricName :: Lens' AnomalyDetector (Maybe Text) Source #
The name of the metric associated with the anomaly detection model.
anomalyDetector_namespace :: Lens' AnomalyDetector (Maybe Text) Source #
The namespace of the metric associated with the anomaly detection model.
anomalyDetector_singleMetricAnomalyDetector :: Lens' AnomalyDetector (Maybe SingleMetricAnomalyDetector) Source #
The CloudWatch metric and statistic for this anomaly detector.
anomalyDetector_stat :: Lens' AnomalyDetector (Maybe Text) Source #
The statistic associated with the anomaly detection model.
anomalyDetector_stateValue :: Lens' AnomalyDetector (Maybe AnomalyDetectorStateValue) Source #
The current status of the anomaly detector's training. The possible
values are TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA
AnomalyDetectorConfiguration
data AnomalyDetectorConfiguration Source #
The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model and the time zone to use for the metric.
See: newAnomalyDetectorConfiguration
smart constructor.
AnomalyDetectorConfiguration' | |
|
Instances
newAnomalyDetectorConfiguration :: AnomalyDetectorConfiguration Source #
Create a value of AnomalyDetectorConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:excludedTimeRanges:AnomalyDetectorConfiguration'
, anomalyDetectorConfiguration_excludedTimeRanges
- An array of time ranges to exclude from use when the anomaly detection
model is trained. Use this to make sure that events that could cause
unusual values for the metric, such as deployments, aren't used when
CloudWatch creates the model.
$sel:metricTimezone:AnomalyDetectorConfiguration'
, anomalyDetectorConfiguration_metricTimezone
- The time zone to use for the metric. This is useful to enable the model
to automatically account for daylight savings time changes if the metric
is sensitive to such time changes.
To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.
anomalyDetectorConfiguration_excludedTimeRanges :: Lens' AnomalyDetectorConfiguration (Maybe [Range]) Source #
An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.
anomalyDetectorConfiguration_metricTimezone :: Lens' AnomalyDetectorConfiguration (Maybe Text) Source #
The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.
To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.
CompositeAlarm
data CompositeAlarm Source #
The details about a composite alarm.
See: newCompositeAlarm
smart constructor.
CompositeAlarm' | |
|
Instances
newCompositeAlarm :: CompositeAlarm Source #
Create a value of CompositeAlarm
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:actionsEnabled:CompositeAlarm'
, compositeAlarm_actionsEnabled
- Indicates whether actions should be executed during any changes to the
alarm state.
$sel:actionsSuppressedBy:CompositeAlarm'
, compositeAlarm_actionsSuppressedBy
- When the value is ALARM
, it means that the actions are suppressed
because the suppressor alarm is in ALARM
When the value is
WaitPeriod
, it means that the actions are suppressed because the
composite alarm is waiting for the suppressor alarm to go into into the
ALARM
state. The maximum waiting time is as specified in
ActionsSuppressorWaitPeriod
. After this time, the composite alarm
performs its actions. When the value is ExtensionPeriod
, it means that
the actions are suppressed because the composite alarm is waiting after
the suppressor alarm went out of the ALARM
state. The maximum waiting
time is as specified in ActionsSuppressorExtensionPeriod
. After this
time, the composite alarm performs its actions.
$sel:actionsSuppressedReason:CompositeAlarm'
, compositeAlarm_actionsSuppressedReason
- Captures the reason for action suppression.
$sel:actionsSuppressor:CompositeAlarm'
, compositeAlarm_actionsSuppressor
- Actions will be suppressed if the suppressor alarm is in the ALARM
state. ActionsSuppressor
can be an AlarmName or an Amazon Resource
Name (ARN) from an existing alarm.
$sel:actionsSuppressorExtensionPeriod:CompositeAlarm'
, compositeAlarm_actionsSuppressorExtensionPeriod
- The maximum time in seconds that the composite alarm waits after
suppressor alarm goes out of the ALARM
state. After this time, the
composite alarm performs its actions.
ExtensionPeriod
is required only when ActionsSuppressor
is
specified.
$sel:actionsSuppressorWaitPeriod:CompositeAlarm'
, compositeAlarm_actionsSuppressorWaitPeriod
- The maximum time in seconds that the composite alarm waits for the
suppressor alarm to go into the ALARM
state. After this time, the
composite alarm performs its actions.
WaitPeriod
is required only when ActionsSuppressor
is specified.
$sel:alarmActions:CompositeAlarm'
, compositeAlarm_alarmActions
- The actions to execute when this alarm transitions to the ALARM state
from any other state. Each action is specified as an Amazon Resource
Name (ARN).
$sel:alarmArn:CompositeAlarm'
, compositeAlarm_alarmArn
- The Amazon Resource Name (ARN) of the alarm.
$sel:alarmConfigurationUpdatedTimestamp:CompositeAlarm'
, compositeAlarm_alarmConfigurationUpdatedTimestamp
- The time stamp of the last update to the alarm configuration.
$sel:alarmDescription:CompositeAlarm'
, compositeAlarm_alarmDescription
- The description of the alarm.
$sel:alarmName:CompositeAlarm'
, compositeAlarm_alarmName
- The name of the alarm.
$sel:alarmRule:CompositeAlarm'
, compositeAlarm_alarmRule
- The rule that this alarm uses to evaluate its alarm state.
$sel:insufficientDataActions:CompositeAlarm'
, compositeAlarm_insufficientDataActions
- The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other state. Each action is specified
as an Amazon Resource Name (ARN).
$sel:oKActions:CompositeAlarm'
, compositeAlarm_oKActions
- The actions to execute when this alarm transitions to the OK state from
any other state. Each action is specified as an Amazon Resource Name
(ARN).
$sel:stateReason:CompositeAlarm'
, compositeAlarm_stateReason
- An explanation for the alarm state, in text format.
$sel:stateReasonData:CompositeAlarm'
, compositeAlarm_stateReasonData
- An explanation for the alarm state, in JSON format.
$sel:stateTransitionedTimestamp:CompositeAlarm'
, compositeAlarm_stateTransitionedTimestamp
- The timestamp of the last change to the alarm's StateValue
.
$sel:stateUpdatedTimestamp:CompositeAlarm'
, compositeAlarm_stateUpdatedTimestamp
- Tracks the timestamp of any state update, even if StateValue
doesn't
change.
$sel:stateValue:CompositeAlarm'
, compositeAlarm_stateValue
- The state value for the alarm.
compositeAlarm_actionsEnabled :: Lens' CompositeAlarm (Maybe Bool) Source #
Indicates whether actions should be executed during any changes to the alarm state.
compositeAlarm_actionsSuppressedBy :: Lens' CompositeAlarm (Maybe ActionsSuppressedBy) Source #
When the value is ALARM
, it means that the actions are suppressed
because the suppressor alarm is in ALARM
When the value is
WaitPeriod
, it means that the actions are suppressed because the
composite alarm is waiting for the suppressor alarm to go into into the
ALARM
state. The maximum waiting time is as specified in
ActionsSuppressorWaitPeriod
. After this time, the composite alarm
performs its actions. When the value is ExtensionPeriod
, it means that
the actions are suppressed because the composite alarm is waiting after
the suppressor alarm went out of the ALARM
state. The maximum waiting
time is as specified in ActionsSuppressorExtensionPeriod
. After this
time, the composite alarm performs its actions.
compositeAlarm_actionsSuppressedReason :: Lens' CompositeAlarm (Maybe Text) Source #
Captures the reason for action suppression.
compositeAlarm_actionsSuppressor :: Lens' CompositeAlarm (Maybe Text) Source #
Actions will be suppressed if the suppressor alarm is in the ALARM
state. ActionsSuppressor
can be an AlarmName or an Amazon Resource
Name (ARN) from an existing alarm.
compositeAlarm_actionsSuppressorExtensionPeriod :: Lens' CompositeAlarm (Maybe Int) Source #
The maximum time in seconds that the composite alarm waits after
suppressor alarm goes out of the ALARM
state. After this time, the
composite alarm performs its actions.
ExtensionPeriod
is required only when ActionsSuppressor
is
specified.
compositeAlarm_actionsSuppressorWaitPeriod :: Lens' CompositeAlarm (Maybe Int) Source #
The maximum time in seconds that the composite alarm waits for the
suppressor alarm to go into the ALARM
state. After this time, the
composite alarm performs its actions.
WaitPeriod
is required only when ActionsSuppressor
is specified.
compositeAlarm_alarmActions :: Lens' CompositeAlarm (Maybe [Text]) Source #
The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
compositeAlarm_alarmArn :: Lens' CompositeAlarm (Maybe Text) Source #
The Amazon Resource Name (ARN) of the alarm.
compositeAlarm_alarmConfigurationUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime) Source #
The time stamp of the last update to the alarm configuration.
compositeAlarm_alarmDescription :: Lens' CompositeAlarm (Maybe Text) Source #
The description of the alarm.
compositeAlarm_alarmName :: Lens' CompositeAlarm (Maybe Text) Source #
The name of the alarm.
compositeAlarm_alarmRule :: Lens' CompositeAlarm (Maybe Text) Source #
The rule that this alarm uses to evaluate its alarm state.
compositeAlarm_insufficientDataActions :: Lens' CompositeAlarm (Maybe [Text]) Source #
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
compositeAlarm_oKActions :: Lens' CompositeAlarm (Maybe [Text]) Source #
The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
compositeAlarm_stateReason :: Lens' CompositeAlarm (Maybe Text) Source #
An explanation for the alarm state, in text format.
compositeAlarm_stateReasonData :: Lens' CompositeAlarm (Maybe Text) Source #
An explanation for the alarm state, in JSON format.
compositeAlarm_stateTransitionedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime) Source #
The timestamp of the last change to the alarm's StateValue
.
compositeAlarm_stateUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime) Source #
Tracks the timestamp of any state update, even if StateValue
doesn't
change.
compositeAlarm_stateValue :: Lens' CompositeAlarm (Maybe StateValue) Source #
The state value for the alarm.
DashboardEntry
data DashboardEntry Source #
Represents a specific dashboard.
See: newDashboardEntry
smart constructor.
DashboardEntry' | |
|
Instances
newDashboardEntry :: DashboardEntry Source #
Create a value of DashboardEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dashboardArn:DashboardEntry'
, dashboardEntry_dashboardArn
- The Amazon Resource Name (ARN) of the dashboard.
$sel:dashboardName:DashboardEntry'
, dashboardEntry_dashboardName
- The name of the dashboard.
$sel:lastModified:DashboardEntry'
, dashboardEntry_lastModified
- The time stamp of when the dashboard was last modified, either by an API
call or through the console. This number is expressed as the number of
milliseconds since Jan 1, 1970 00:00:00 UTC.
$sel:size:DashboardEntry'
, dashboardEntry_size
- The size of the dashboard, in bytes.
dashboardEntry_dashboardArn :: Lens' DashboardEntry (Maybe Text) Source #
The Amazon Resource Name (ARN) of the dashboard.
dashboardEntry_dashboardName :: Lens' DashboardEntry (Maybe Text) Source #
The name of the dashboard.
dashboardEntry_lastModified :: Lens' DashboardEntry (Maybe UTCTime) Source #
The time stamp of when the dashboard was last modified, either by an API call or through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
dashboardEntry_size :: Lens' DashboardEntry (Maybe Integer) Source #
The size of the dashboard, in bytes.
DashboardValidationMessage
data DashboardValidationMessage Source #
An error or warning for the operation.
See: newDashboardValidationMessage
smart constructor.
Instances
newDashboardValidationMessage :: DashboardValidationMessage Source #
Create a value of DashboardValidationMessage
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dataPath:DashboardValidationMessage'
, dashboardValidationMessage_dataPath
- The data path related to the message.
$sel:message:DashboardValidationMessage'
, dashboardValidationMessage_message
- A message describing the error or warning.
dashboardValidationMessage_dataPath :: Lens' DashboardValidationMessage (Maybe Text) Source #
The data path related to the message.
dashboardValidationMessage_message :: Lens' DashboardValidationMessage (Maybe Text) Source #
A message describing the error or warning.
Datapoint
Encapsulates the statistical data that CloudWatch computes from metric data.
See: newDatapoint
smart constructor.
Datapoint' | |
|
Instances
newDatapoint :: Datapoint Source #
Create a value of Datapoint
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:average:Datapoint'
, datapoint_average
- The average of the metric values that correspond to the data point.
$sel:extendedStatistics:Datapoint'
, datapoint_extendedStatistics
- The percentile statistic for the data point.
$sel:maximum:Datapoint'
, datapoint_maximum
- The maximum metric value for the data point.
$sel:minimum:Datapoint'
, datapoint_minimum
- The minimum metric value for the data point.
$sel:sampleCount:Datapoint'
, datapoint_sampleCount
- The number of metric values that contributed to the aggregate value of
this data point.
$sel:sum:Datapoint'
, datapoint_sum
- The sum of the metric values for the data point.
$sel:timestamp:Datapoint'
, datapoint_timestamp
- The time stamp used for the data point.
$sel:unit:Datapoint'
, datapoint_unit
- The standard unit for the data point.
datapoint_average :: Lens' Datapoint (Maybe Double) Source #
The average of the metric values that correspond to the data point.
datapoint_extendedStatistics :: Lens' Datapoint (Maybe (HashMap Text Double)) Source #
The percentile statistic for the data point.
datapoint_maximum :: Lens' Datapoint (Maybe Double) Source #
The maximum metric value for the data point.
datapoint_minimum :: Lens' Datapoint (Maybe Double) Source #
The minimum metric value for the data point.
datapoint_sampleCount :: Lens' Datapoint (Maybe Double) Source #
The number of metric values that contributed to the aggregate value of this data point.
datapoint_sum :: Lens' Datapoint (Maybe Double) Source #
The sum of the metric values for the data point.
datapoint_timestamp :: Lens' Datapoint (Maybe UTCTime) Source #
The time stamp used for the data point.
datapoint_unit :: Lens' Datapoint (Maybe StandardUnit) Source #
The standard unit for the data point.
Dimension
A dimension is a name/value pair that is part of the identity of a
metric. Because dimensions are part of the unique identifier for a
metric, whenever you add a unique name/value pair to one of your
metrics, you are creating a new variation of that metric. For example,
many Amazon EC2 metrics publish InstanceId
as a dimension name, and
the actual instance ID as the value for that dimension.
You can assign up to 30 dimensions to a metric.
See: newDimension
smart constructor.
Dimension' | |
|
Instances
ToQuery Dimension Source # | |
Defined in Amazonka.CloudWatch.Types.Dimension toQuery :: Dimension -> QueryString # | |
FromXML Dimension Source # | |
Generic Dimension Source # | |
Read Dimension Source # | |
Show Dimension Source # | |
NFData Dimension Source # | |
Defined in Amazonka.CloudWatch.Types.Dimension | |
Eq Dimension Source # | |
Hashable Dimension Source # | |
Defined in Amazonka.CloudWatch.Types.Dimension | |
type Rep Dimension Source # | |
Defined in Amazonka.CloudWatch.Types.Dimension type Rep Dimension = D1 ('MetaData "Dimension" "Amazonka.CloudWatch.Types.Dimension" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "Dimension'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Dimension
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:Dimension'
, dimension_name
- The name of the dimension. Dimension names must contain only ASCII
characters, must include at least one non-whitespace character, and
cannot start with a colon (:
).
$sel:value:Dimension'
, dimension_value
- The value of the dimension. Dimension values must contain only ASCII
characters and must include at least one non-whitespace character.
dimension_name :: Lens' Dimension Text Source #
The name of the dimension. Dimension names must contain only ASCII
characters, must include at least one non-whitespace character, and
cannot start with a colon (:
).
dimension_value :: Lens' Dimension Text Source #
The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.
DimensionFilter
data DimensionFilter Source #
Represents filters for a dimension.
See: newDimensionFilter
smart constructor.
Instances
Create a value of DimensionFilter
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:value:DimensionFilter'
, dimensionFilter_value
- The value of the dimension to be matched.
$sel:name:DimensionFilter'
, dimensionFilter_name
- The dimension name to be matched.
dimensionFilter_value :: Lens' DimensionFilter (Maybe Text) Source #
The value of the dimension to be matched.
dimensionFilter_name :: Lens' DimensionFilter Text Source #
The dimension name to be matched.
InsightRule
data InsightRule Source #
This structure contains the definition for a Contributor Insights rule. For more information about this rule, see Using Constributor Insights to analyze high-cardinality data in the Amazon CloudWatch User Guide.
See: newInsightRule
smart constructor.
InsightRule' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> InsightRule |
Create a value of InsightRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:managedRule:InsightRule'
, insightRule_managedRule
- An optional built-in rule that Amazon Web Services manages.
$sel:name:InsightRule'
, insightRule_name
- The name of the rule.
$sel:state:InsightRule'
, insightRule_state
- Indicates whether the rule is enabled or disabled.
$sel:schema:InsightRule'
, insightRule_schema
- For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}
. For managed rules,
this is {"Name": "ServiceLogRule", "Version": 1}
$sel:definition:InsightRule'
, insightRule_definition
- The definition of the rule, as a JSON object. The definition contains
the keywords used to define contributors, the value to aggregate on if
this rule returns a sum instead of a count, and the filters. For details
on the valid syntax, see
Contributor Insights Rule Syntax.
insightRule_managedRule :: Lens' InsightRule (Maybe Bool) Source #
An optional built-in rule that Amazon Web Services manages.
insightRule_name :: Lens' InsightRule Text Source #
The name of the rule.
insightRule_state :: Lens' InsightRule Text Source #
Indicates whether the rule is enabled or disabled.
insightRule_schema :: Lens' InsightRule Text Source #
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}
. For managed rules,
this is {"Name": "ServiceLogRule", "Version": 1}
insightRule_definition :: Lens' InsightRule Text Source #
The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.
InsightRuleContributor
data InsightRuleContributor Source #
One of the unique contributors found by a Contributor Insights rule. If the rule contains multiple keys, then a unique contributor is a unique combination of values from all the keys in the rule.
If the rule contains a single key, then each unique contributor is each unique value for this key.
For more information, see GetInsightRuleReport.
See: newInsightRuleContributor
smart constructor.
InsightRuleContributor' | |
|
Instances
newInsightRuleContributor Source #
Create a value of InsightRuleContributor
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:keys:InsightRuleContributor'
, insightRuleContributor_keys
- One of the log entry field keywords that is used to define contributors
for this rule.
$sel:approximateAggregateValue:InsightRuleContributor'
, insightRuleContributor_approximateAggregateValue
- An approximation of the aggregate value that comes from this
contributor.
$sel:datapoints:InsightRuleContributor'
, insightRuleContributor_datapoints
- An array of the data points where this contributor is present. Only the
data points when this contributor appeared are included in the array.
insightRuleContributor_keys :: Lens' InsightRuleContributor [Text] Source #
One of the log entry field keywords that is used to define contributors for this rule.
insightRuleContributor_approximateAggregateValue :: Lens' InsightRuleContributor Double Source #
An approximation of the aggregate value that comes from this contributor.
insightRuleContributor_datapoints :: Lens' InsightRuleContributor [InsightRuleContributorDatapoint] Source #
An array of the data points where this contributor is present. Only the data points when this contributor appeared are included in the array.
InsightRuleContributorDatapoint
data InsightRuleContributorDatapoint Source #
One data point related to one contributor.
For more information, see GetInsightRuleReport and InsightRuleContributor.
See: newInsightRuleContributorDatapoint
smart constructor.
InsightRuleContributorDatapoint' | |
|
Instances
newInsightRuleContributorDatapoint Source #
Create a value of InsightRuleContributorDatapoint
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:timestamp:InsightRuleContributorDatapoint'
, insightRuleContributorDatapoint_timestamp
- The timestamp of the data point.
$sel:approximateValue:InsightRuleContributorDatapoint'
, insightRuleContributorDatapoint_approximateValue
- The approximate value that this contributor added during this timestamp.
insightRuleContributorDatapoint_timestamp :: Lens' InsightRuleContributorDatapoint UTCTime Source #
The timestamp of the data point.
insightRuleContributorDatapoint_approximateValue :: Lens' InsightRuleContributorDatapoint Double Source #
The approximate value that this contributor added during this timestamp.
InsightRuleMetricDatapoint
data InsightRuleMetricDatapoint Source #
One data point from the metric time series returned in a Contributor Insights rule report.
For more information, see GetInsightRuleReport.
See: newInsightRuleMetricDatapoint
smart constructor.
InsightRuleMetricDatapoint' | |
|
Instances
newInsightRuleMetricDatapoint Source #
Create a value of InsightRuleMetricDatapoint
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:average:InsightRuleMetricDatapoint'
, insightRuleMetricDatapoint_average
- The average value from all contributors during the time period
represented by that data point.
This statistic is returned only if you included it in the Metrics
array in your request.
$sel:maxContributorValue:InsightRuleMetricDatapoint'
, insightRuleMetricDatapoint_maxContributorValue
- The maximum value provided by one contributor during this timestamp.
Each timestamp is evaluated separately, so the identity of the max
contributor could be different for each timestamp.
This statistic is returned only if you included it in the Metrics
array in your request.
$sel:maximum:InsightRuleMetricDatapoint'
, insightRuleMetricDatapoint_maximum
- The maximum value from a single occurence from a single contributor
during the time period represented by that data point.
This statistic is returned only if you included it in the Metrics
array in your request.
$sel:minimum:InsightRuleMetricDatapoint'
, insightRuleMetricDatapoint_minimum
- The minimum value from a single contributor during the time period
represented by that data point.
This statistic is returned only if you included it in the Metrics
array in your request.
$sel:sampleCount:InsightRuleMetricDatapoint'
, insightRuleMetricDatapoint_sampleCount
- The number of occurrences that matched the rule during this data point.
This statistic is returned only if you included it in the Metrics
array in your request.
$sel:sum:InsightRuleMetricDatapoint'
, insightRuleMetricDatapoint_sum
- The sum of the values from all contributors during the time period
represented by that data point.
This statistic is returned only if you included it in the Metrics
array in your request.
$sel:uniqueContributors:InsightRuleMetricDatapoint'
, insightRuleMetricDatapoint_uniqueContributors
- The number of unique contributors who published data during this
timestamp.
This statistic is returned only if you included it in the Metrics
array in your request.
$sel:timestamp:InsightRuleMetricDatapoint'
, insightRuleMetricDatapoint_timestamp
- The timestamp of the data point.
insightRuleMetricDatapoint_average :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #
The average value from all contributors during the time period represented by that data point.
This statistic is returned only if you included it in the Metrics
array in your request.
insightRuleMetricDatapoint_maxContributorValue :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #
The maximum value provided by one contributor during this timestamp. Each timestamp is evaluated separately, so the identity of the max contributor could be different for each timestamp.
This statistic is returned only if you included it in the Metrics
array in your request.
insightRuleMetricDatapoint_maximum :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #
The maximum value from a single occurence from a single contributor during the time period represented by that data point.
This statistic is returned only if you included it in the Metrics
array in your request.
insightRuleMetricDatapoint_minimum :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #
The minimum value from a single contributor during the time period represented by that data point.
This statistic is returned only if you included it in the Metrics
array in your request.
insightRuleMetricDatapoint_sampleCount :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #
The number of occurrences that matched the rule during this data point.
This statistic is returned only if you included it in the Metrics
array in your request.
insightRuleMetricDatapoint_sum :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #
The sum of the values from all contributors during the time period represented by that data point.
This statistic is returned only if you included it in the Metrics
array in your request.
insightRuleMetricDatapoint_uniqueContributors :: Lens' InsightRuleMetricDatapoint (Maybe Double) Source #
The number of unique contributors who published data during this timestamp.
This statistic is returned only if you included it in the Metrics
array in your request.
insightRuleMetricDatapoint_timestamp :: Lens' InsightRuleMetricDatapoint UTCTime Source #
The timestamp of the data point.
LabelOptions
data LabelOptions Source #
This structure includes the Timezone
parameter, which you can use to
specify your time zone so that the labels that are associated with
returned metrics display the correct time for your time zone.
The Timezone
value affects a label only if you have a time-based
dynamic expression in the label. For more information about dynamic
expressions in labels, see
Using Dynamic Labels.
See: newLabelOptions
smart constructor.
LabelOptions' | |
|
Instances
newLabelOptions :: LabelOptions Source #
Create a value of LabelOptions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:timezone:LabelOptions'
, labelOptions_timezone
- The time zone to use for metric data return in this operation. The
format is +
or -
followed by four digits. The first two digits
indicate the number of hours ahead or behind of UTC, and the final two
digits are the number of minutes. For example, +0130 indicates a time
zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.
labelOptions_timezone :: Lens' LabelOptions (Maybe Text) Source #
The time zone to use for metric data return in this operation. The
format is +
or -
followed by four digits. The first two digits
indicate the number of hours ahead or behind of UTC, and the final two
digits are the number of minutes. For example, +0130 indicates a time
zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.
ManagedRule
data ManagedRule Source #
Contains the information that's required to enable a managed Contributor Insights rule for an Amazon Web Services resource.
See: newManagedRule
smart constructor.
ManagedRule' | |
|
Instances
Create a value of ManagedRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tags:ManagedRule'
, managedRule_tags
- A list of key-value pairs that you can associate with a managed
Contributor Insights rule. You can associate as many as 50 tags with a
rule. Tags can help you organize and categorize your resources. You also
can use them to scope user permissions by granting a user permission to
access or change only the resources that have certain tag values. To
associate tags with a rule, you must have the cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission. If
you are using this operation to update an existing Contributor Insights
rule, any tags that you specify in this parameter are ignored. To change
the tags of an existing rule, use TagResource
.
$sel:templateName:ManagedRule'
, managedRule_templateName
- The template name for the managed Contributor Insights rule, as returned
by ListManagedInsightRules
.
$sel:resourceARN:ManagedRule'
, managedRule_resourceARN
- The ARN of an Amazon Web Services resource that has managed Contributor
Insights rules.
managedRule_tags :: Lens' ManagedRule (Maybe [Tag]) Source #
A list of key-value pairs that you can associate with a managed
Contributor Insights rule. You can associate as many as 50 tags with a
rule. Tags can help you organize and categorize your resources. You also
can use them to scope user permissions by granting a user permission to
access or change only the resources that have certain tag values. To
associate tags with a rule, you must have the cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission. If
you are using this operation to update an existing Contributor Insights
rule, any tags that you specify in this parameter are ignored. To change
the tags of an existing rule, use TagResource
.
managedRule_templateName :: Lens' ManagedRule Text Source #
The template name for the managed Contributor Insights rule, as returned
by ListManagedInsightRules
.
managedRule_resourceARN :: Lens' ManagedRule Text Source #
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
ManagedRuleDescription
data ManagedRuleDescription Source #
Contains information about managed Contributor Insights rules, as
returned by ListManagedInsightRules
.
See: newManagedRuleDescription
smart constructor.
ManagedRuleDescription' | |
|
Instances
newManagedRuleDescription :: ManagedRuleDescription Source #
Create a value of ManagedRuleDescription
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resourceARN:ManagedRuleDescription'
, managedRuleDescription_resourceARN
- If a managed rule is enabled, this is the ARN for the related Amazon Web
Services resource.
$sel:ruleState:ManagedRuleDescription'
, managedRuleDescription_ruleState
- Describes the state of a managed rule. If present, it contains
information about the Contributor Insights rule that contains
information about the related Amazon Web Services resource.
$sel:templateName:ManagedRuleDescription'
, managedRuleDescription_templateName
- The template name for the managed rule. Used to enable managed rules
using PutManagedInsightRules
.
managedRuleDescription_resourceARN :: Lens' ManagedRuleDescription (Maybe Text) Source #
If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
managedRuleDescription_ruleState :: Lens' ManagedRuleDescription (Maybe ManagedRuleState) Source #
Describes the state of a managed rule. If present, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource.
managedRuleDescription_templateName :: Lens' ManagedRuleDescription (Maybe Text) Source #
The template name for the managed rule. Used to enable managed rules
using PutManagedInsightRules
.
ManagedRuleState
data ManagedRuleState Source #
The status of a managed Contributor Insights rule.
See: newManagedRuleState
smart constructor.
Instances
Create a value of ManagedRuleState
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:ruleName:ManagedRuleState'
, managedRuleState_ruleName
- The name of the Contributor Insights rule that contains data for the
specified Amazon Web Services resource.
$sel:state:ManagedRuleState'
, managedRuleState_state
- Indicates whether the rule is enabled or disabled.
managedRuleState_ruleName :: Lens' ManagedRuleState Text Source #
The name of the Contributor Insights rule that contains data for the specified Amazon Web Services resource.
managedRuleState_state :: Lens' ManagedRuleState Text Source #
Indicates whether the rule is enabled or disabled.
MessageData
data MessageData Source #
A message returned by the GetMetricData
API, including a code and a
description.
If a cross-Region GetMetricData
operation fails with a code of
Forbidden
and a value of
Authentication too complex to retrieve cross region data
, you can
correct the problem by running the GetMetricData
operation in the same
Region where the metric data is.
See: newMessageData
smart constructor.
Instances
newMessageData :: MessageData Source #
Create a value of MessageData
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:code:MessageData'
, messageData_code
- The error code or status code associated with the message.
$sel:value:MessageData'
, messageData_value
- The message text.
messageData_code :: Lens' MessageData (Maybe Text) Source #
The error code or status code associated with the message.
messageData_value :: Lens' MessageData (Maybe Text) Source #
The message text.
Metric
Represents a specific metric.
See: newMetric
smart constructor.
Metric' | |
|
Instances
ToQuery Metric Source # | |
Defined in Amazonka.CloudWatch.Types.Metric toQuery :: Metric -> QueryString # | |
FromXML Metric Source # | |
Generic Metric Source # | |
Read Metric Source # | |
Show Metric Source # | |
NFData Metric Source # | |
Defined in Amazonka.CloudWatch.Types.Metric | |
Eq Metric Source # | |
Hashable Metric Source # | |
Defined in Amazonka.CloudWatch.Types.Metric | |
type Rep Metric Source # | |
Defined in Amazonka.CloudWatch.Types.Metric type Rep Metric = D1 ('MetaData "Metric" "Amazonka.CloudWatch.Types.Metric" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "Metric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension])) :*: (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |
Create a value of Metric
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dimensions:Metric'
, metric_dimensions
- The dimensions for the metric.
$sel:metricName:Metric'
, metric_metricName
- The name of the metric. This is a required field.
$sel:namespace:Metric'
, metric_namespace
- The namespace of the metric.
metric_metricName :: Lens' Metric (Maybe Text) Source #
The name of the metric. This is a required field.
MetricAlarm
data MetricAlarm Source #
The details about a metric alarm.
See: newMetricAlarm
smart constructor.
MetricAlarm' | |
|
Instances
newMetricAlarm :: MetricAlarm Source #
Create a value of MetricAlarm
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:actionsEnabled:MetricAlarm'
, metricAlarm_actionsEnabled
- Indicates whether actions should be executed during any changes to the
alarm state.
$sel:alarmActions:MetricAlarm'
, metricAlarm_alarmActions
- The actions to execute when this alarm transitions to the ALARM
state
from any other state. Each action is specified as an Amazon Resource
Name (ARN).
$sel:alarmArn:MetricAlarm'
, metricAlarm_alarmArn
- The Amazon Resource Name (ARN) of the alarm.
$sel:alarmConfigurationUpdatedTimestamp:MetricAlarm'
, metricAlarm_alarmConfigurationUpdatedTimestamp
- The time stamp of the last update to the alarm configuration.
$sel:alarmDescription:MetricAlarm'
, metricAlarm_alarmDescription
- The description of the alarm.
$sel:alarmName:MetricAlarm'
, metricAlarm_alarmName
- The name of the alarm.
$sel:comparisonOperator:MetricAlarm'
, metricAlarm_comparisonOperator
- The arithmetic operation to use when comparing the specified statistic
and threshold. The specified statistic value is used as the first
operand.
$sel:datapointsToAlarm:MetricAlarm'
, metricAlarm_datapointsToAlarm
- The number of data points that must be breaching to trigger the alarm.
$sel:dimensions:MetricAlarm'
, metricAlarm_dimensions
- The dimensions for the metric associated with the alarm.
$sel:evaluateLowSampleCountPercentile:MetricAlarm'
, metricAlarm_evaluateLowSampleCountPercentile
- Used only for alarms based on percentiles. If ignore
, the alarm state
does not change during periods with too few data points to be
statistically significant. If evaluate
or this parameter is not used,
the alarm is always evaluated and possibly changes state no matter how
many data points are available.
$sel:evaluationPeriods:MetricAlarm'
, metricAlarm_evaluationPeriods
- The number of periods over which data is compared to the specified
threshold.
$sel:evaluationState:MetricAlarm'
, metricAlarm_evaluationState
- If the value of this field is PARTIAL_DATA
, the alarm is being
evaluated based on only partial data. This happens if the query used for
the alarm returns more than 10,000 metrics. For more information, see
Create alarms on Metrics Insights queries.
$sel:extendedStatistic:MetricAlarm'
, metricAlarm_extendedStatistic
- The percentile statistic for the metric associated with the alarm.
Specify a value between p0.0 and p100.
$sel:insufficientDataActions:MetricAlarm'
, metricAlarm_insufficientDataActions
- The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified
as an Amazon Resource Name (ARN).
$sel:metricName:MetricAlarm'
, metricAlarm_metricName
- The name of the metric associated with the alarm, if this is an alarm
based on a single metric.
$sel:metrics:MetricAlarm'
, metricAlarm_metrics
- An array of MetricDataQuery structures, used in an alarm based on a
metric math expression. Each structure either retrieves a metric or
performs a math expression. One item in the Metrics array is the math
expression that the alarm watches. This expression by designated by
having ReturnData
set to true.
$sel:namespace:MetricAlarm'
, metricAlarm_namespace
- The namespace of the metric associated with the alarm.
$sel:oKActions:MetricAlarm'
, metricAlarm_oKActions
- The actions to execute when this alarm transitions to the OK
state
from any other state. Each action is specified as an Amazon Resource
Name (ARN).
MetricAlarm
, metricAlarm_period
- The period, in seconds, over which the statistic is applied.
$sel:stateReason:MetricAlarm'
, metricAlarm_stateReason
- An explanation for the alarm state, in text format.
$sel:stateReasonData:MetricAlarm'
, metricAlarm_stateReasonData
- An explanation for the alarm state, in JSON format.
$sel:stateTransitionedTimestamp:MetricAlarm'
, metricAlarm_stateTransitionedTimestamp
- The date and time that the alarm's StateValue
most recently changed.
$sel:stateUpdatedTimestamp:MetricAlarm'
, metricAlarm_stateUpdatedTimestamp
- The time stamp of the last update to the value of either the
StateValue
or EvaluationState
parameters.
$sel:stateValue:MetricAlarm'
, metricAlarm_stateValue
- The state value for the alarm.
$sel:statistic:MetricAlarm'
, metricAlarm_statistic
- The statistic for the metric associated with the alarm, other than
percentile. For percentile statistics, use ExtendedStatistic
.
$sel:threshold:MetricAlarm'
, metricAlarm_threshold
- The value to compare with the specified statistic.
$sel:thresholdMetricId:MetricAlarm'
, metricAlarm_thresholdMetricId
- In an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.
$sel:treatMissingData:MetricAlarm'
, metricAlarm_treatMissingData
- Sets how this alarm is to handle missing data points. The valid values
are breaching
, notBreaching
, ignore
, and missing
. For more
information, see
Configuring how CloudWatch alarms treat missing data.
If this parameter is omitted, the default behavior of missing
is used.
$sel:unit:MetricAlarm'
, metricAlarm_unit
- The unit of the metric associated with the alarm.
metricAlarm_actionsEnabled :: Lens' MetricAlarm (Maybe Bool) Source #
Indicates whether actions should be executed during any changes to the alarm state.
metricAlarm_alarmActions :: Lens' MetricAlarm (Maybe [Text]) Source #
The actions to execute when this alarm transitions to the ALARM
state
from any other state. Each action is specified as an Amazon Resource
Name (ARN).
metricAlarm_alarmArn :: Lens' MetricAlarm (Maybe Text) Source #
The Amazon Resource Name (ARN) of the alarm.
metricAlarm_alarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime) Source #
The time stamp of the last update to the alarm configuration.
metricAlarm_alarmDescription :: Lens' MetricAlarm (Maybe Text) Source #
The description of the alarm.
metricAlarm_alarmName :: Lens' MetricAlarm (Maybe Text) Source #
The name of the alarm.
metricAlarm_comparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator) Source #
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
metricAlarm_datapointsToAlarm :: Lens' MetricAlarm (Maybe Natural) Source #
The number of data points that must be breaching to trigger the alarm.
metricAlarm_dimensions :: Lens' MetricAlarm (Maybe [Dimension]) Source #
The dimensions for the metric associated with the alarm.
metricAlarm_evaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text) Source #
Used only for alarms based on percentiles. If ignore
, the alarm state
does not change during periods with too few data points to be
statistically significant. If evaluate
or this parameter is not used,
the alarm is always evaluated and possibly changes state no matter how
many data points are available.
metricAlarm_evaluationPeriods :: Lens' MetricAlarm (Maybe Natural) Source #
The number of periods over which data is compared to the specified threshold.
metricAlarm_evaluationState :: Lens' MetricAlarm (Maybe EvaluationState) Source #
If the value of this field is PARTIAL_DATA
, the alarm is being
evaluated based on only partial data. This happens if the query used for
the alarm returns more than 10,000 metrics. For more information, see
Create alarms on Metrics Insights queries.
metricAlarm_extendedStatistic :: Lens' MetricAlarm (Maybe Text) Source #
The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
metricAlarm_insufficientDataActions :: Lens' MetricAlarm (Maybe [Text]) Source #
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified
as an Amazon Resource Name (ARN).
metricAlarm_metricName :: Lens' MetricAlarm (Maybe Text) Source #
The name of the metric associated with the alarm, if this is an alarm based on a single metric.
metricAlarm_metrics :: Lens' MetricAlarm (Maybe [MetricDataQuery]) Source #
An array of MetricDataQuery structures, used in an alarm based on a
metric math expression. Each structure either retrieves a metric or
performs a math expression. One item in the Metrics array is the math
expression that the alarm watches. This expression by designated by
having ReturnData
set to true.
metricAlarm_namespace :: Lens' MetricAlarm (Maybe Text) Source #
The namespace of the metric associated with the alarm.
metricAlarm_oKActions :: Lens' MetricAlarm (Maybe [Text]) Source #
The actions to execute when this alarm transitions to the OK
state
from any other state. Each action is specified as an Amazon Resource
Name (ARN).
metricAlarm_period :: Lens' MetricAlarm (Maybe Natural) Source #
The period, in seconds, over which the statistic is applied.
metricAlarm_stateReason :: Lens' MetricAlarm (Maybe Text) Source #
An explanation for the alarm state, in text format.
metricAlarm_stateReasonData :: Lens' MetricAlarm (Maybe Text) Source #
An explanation for the alarm state, in JSON format.
metricAlarm_stateTransitionedTimestamp :: Lens' MetricAlarm (Maybe UTCTime) Source #
The date and time that the alarm's StateValue
most recently changed.
metricAlarm_stateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime) Source #
The time stamp of the last update to the value of either the
StateValue
or EvaluationState
parameters.
metricAlarm_stateValue :: Lens' MetricAlarm (Maybe StateValue) Source #
The state value for the alarm.
metricAlarm_statistic :: Lens' MetricAlarm (Maybe Statistic) Source #
The statistic for the metric associated with the alarm, other than
percentile. For percentile statistics, use ExtendedStatistic
.
metricAlarm_threshold :: Lens' MetricAlarm (Maybe Double) Source #
The value to compare with the specified statistic.
metricAlarm_thresholdMetricId :: Lens' MetricAlarm (Maybe Text) Source #
In an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.
metricAlarm_treatMissingData :: Lens' MetricAlarm (Maybe Text) Source #
Sets how this alarm is to handle missing data points. The valid values
are breaching
, notBreaching
, ignore
, and missing
. For more
information, see
Configuring how CloudWatch alarms treat missing data.
If this parameter is omitted, the default behavior of missing
is used.
metricAlarm_unit :: Lens' MetricAlarm (Maybe StandardUnit) Source #
The unit of the metric associated with the alarm.
MetricDataQuery
data MetricDataQuery Source #
This structure is used in both GetMetricData
and PutMetricAlarm
. The
supported use of this structure is different for those two operations.
When used in GetMetricData
, it indicates the metric data to return,
and whether this call is just retrieving a batch set of data for one
metric, or is performing a Metrics Insights query or a math expression.
A single GetMetricData
call can include up to 500 MetricDataQuery
structures.
When used in PutMetricAlarm
, it enables you to create an alarm based
on a metric math expression. Each MetricDataQuery
in the array
specifies either a metric to retrieve, or a math expression to be
performed on retrieved metrics. A single PutMetricAlarm
call can
include up to 20 MetricDataQuery
structures in the array. The 20
structures can include as many as 10 structures that contain a
MetricStat
parameter to retrieve a metric, and as many as 10
structures that contain the Expression
parameter to perform a math
expression. Of those Expression
structures, one must have true
as
the value for ReturnData
. The result of this expression is the value
the alarm watches.
Any expression used in a PutMetricAlarm
operation must return a single
time series. For more information, see
Metric Math Syntax and Functions
in the Amazon CloudWatch User Guide.
Some of the parameters of this structure also have different uses
whether you are using this structure in a GetMetricData
operation or a
PutMetricAlarm
operation. These differences are explained in the
following parameter list.
See: newMetricDataQuery
smart constructor.
MetricDataQuery' | |
|
Instances
Create a value of MetricDataQuery
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accountId:MetricDataQuery'
, metricDataQuery_accountId
- The ID of the account where the metrics are located.
If you are performing a GetMetricData
operation in a monitoring
account, use this to specify which account to retrieve this metric from.
If you are performing a PutMetricAlarm
operation, use this to specify
which account contains the metric that the alarm is watching.
$sel:expression:MetricDataQuery'
, metricDataQuery_expression
- This field can contain either a Metrics Insights query, or a metric math
expression to be performed on the returned data. For more information
about Metrics Insights queries, see
Metrics Insights query components and syntax
in the Amazon CloudWatch User Guide.
A math expression can use the Id
of the other metrics or queries to
refer to those metrics, and can also use the Id
of other expressions
to use the result of those expressions. For more information about
metric math expressions, see
Metric Math Syntax and Functions
in the Amazon CloudWatch User Guide.
Within each MetricDataQuery object, you must specify either Expression
or MetricStat
but not both.
$sel:label:MetricDataQuery'
, metricDataQuery_label
- A human-readable label for this metric or expression. This is especially
useful if this is an expression, so that you know what the value
represents. If the metric or expression is shown in a CloudWatch
dashboard widget, the label is shown. If Label is omitted, CloudWatch
generates a default.
You can put dynamic expressions into a label, so that it is more descriptive. For more information, see Using Dynamic Labels.
$sel:metricStat:MetricDataQuery'
, metricDataQuery_metricStat
- The metric to be returned, along with statistics, period, and units. Use
this parameter only if this object is retrieving a metric and not
performing a math expression on returned data.
Within one MetricDataQuery object, you must specify either Expression
or MetricStat
but not both.
MetricDataQuery
, metricDataQuery_period
- The granularity, in seconds, of the returned data points. For metrics
with regular resolution, a period can be as short as one minute (60
seconds) and must be a multiple of 60. For high-resolution metrics that
are collected at intervals of less than one minute, the period can be 1,
5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those
metrics stored by a PutMetricData
operation that includes a
StorageResolution of 1 second
.
$sel:returnData:MetricDataQuery'
, metricDataQuery_returnData
- When used in GetMetricData
, this option indicates whether to return
the timestamps and raw data values of this metric. If you are performing
this call just to do math expressions and do not also need the raw data
returned, you can specify false
. If you omit this, the default of
true
is used.
When used in PutMetricAlarm
, specify true
for the one expression
result to use as the alarm. For all other metrics and expressions in the
same PutMetricAlarm
operation, specify ReturnData
as False.
$sel:id:MetricDataQuery'
, metricDataQuery_id
- A short name used to tie this object to the results in the response.
This name must be unique within a single call to GetMetricData
. If you
are performing math expressions on this set of data, this name
represents that data and can serve as a variable in the mathematical
expression. The valid characters are letters, numbers, and underscore.
The first character must be a lowercase letter.
metricDataQuery_accountId :: Lens' MetricDataQuery (Maybe Text) Source #
The ID of the account where the metrics are located.
If you are performing a GetMetricData
operation in a monitoring
account, use this to specify which account to retrieve this metric from.
If you are performing a PutMetricAlarm
operation, use this to specify
which account contains the metric that the alarm is watching.
metricDataQuery_expression :: Lens' MetricDataQuery (Maybe Text) Source #
This field can contain either a Metrics Insights query, or a metric math expression to be performed on the returned data. For more information about Metrics Insights queries, see Metrics Insights query components and syntax in the Amazon CloudWatch User Guide.
A math expression can use the Id
of the other metrics or queries to
refer to those metrics, and can also use the Id
of other expressions
to use the result of those expressions. For more information about
metric math expressions, see
Metric Math Syntax and Functions
in the Amazon CloudWatch User Guide.
Within each MetricDataQuery object, you must specify either Expression
or MetricStat
but not both.
metricDataQuery_label :: Lens' MetricDataQuery (Maybe Text) Source #
A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default.
You can put dynamic expressions into a label, so that it is more descriptive. For more information, see Using Dynamic Labels.
metricDataQuery_metricStat :: Lens' MetricDataQuery (Maybe MetricStat) Source #
The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
Within one MetricDataQuery object, you must specify either Expression
or MetricStat
but not both.
metricDataQuery_period :: Lens' MetricDataQuery (Maybe Natural) Source #
The granularity, in seconds, of the returned data points. For metrics
with regular resolution, a period can be as short as one minute (60
seconds) and must be a multiple of 60. For high-resolution metrics that
are collected at intervals of less than one minute, the period can be 1,
5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those
metrics stored by a PutMetricData
operation that includes a
StorageResolution of 1 second
.
metricDataQuery_returnData :: Lens' MetricDataQuery (Maybe Bool) Source #
When used in GetMetricData
, this option indicates whether to return
the timestamps and raw data values of this metric. If you are performing
this call just to do math expressions and do not also need the raw data
returned, you can specify false
. If you omit this, the default of
true
is used.
When used in PutMetricAlarm
, specify true
for the one expression
result to use as the alarm. For all other metrics and expressions in the
same PutMetricAlarm
operation, specify ReturnData
as False.
metricDataQuery_id :: Lens' MetricDataQuery Text Source #
A short name used to tie this object to the results in the response.
This name must be unique within a single call to GetMetricData
. If you
are performing math expressions on this set of data, this name
represents that data and can serve as a variable in the mathematical
expression. The valid characters are letters, numbers, and underscore.
The first character must be a lowercase letter.
MetricDataResult
data MetricDataResult Source #
A GetMetricData
call returns an array of MetricDataResult
structures. Each of these structures includes the data points for that
metric, along with the timestamps of those data points and other
identifying information.
See: newMetricDataResult
smart constructor.
MetricDataResult' | |
|
Instances
newMetricDataResult :: MetricDataResult Source #
Create a value of MetricDataResult
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:id:MetricDataResult'
, metricDataResult_id
- The short name you specified to represent this metric.
$sel:label:MetricDataResult'
, metricDataResult_label
- The human-readable label associated with the data.
$sel:messages:MetricDataResult'
, metricDataResult_messages
- A list of messages with additional information about the data returned.
$sel:statusCode:MetricDataResult'
, metricDataResult_statusCode
- The status of the returned data. Complete
indicates that all data
points in the requested time range were returned. PartialData
means
that an incomplete set of data points were returned. You can use the
NextToken
value that was returned and repeat your request to get more
data points. NextToken
is not returned if you are performing a math
expression. InternalError
indicates that an error occurred. Retry your
request using NextToken
, if present.
$sel:timestamps:MetricDataResult'
, metricDataResult_timestamps
- The timestamps for the data points, formatted in Unix timestamp format.
The number of timestamps always matches the number of values and the
value for Timestamps[x] is Values[x].
$sel:values:MetricDataResult'
, metricDataResult_values
- The data points for the metric corresponding to Timestamps
. The number
of values always matches the number of timestamps and the timestamp for
Values[x] is Timestamps[x].
metricDataResult_id :: Lens' MetricDataResult (Maybe Text) Source #
The short name you specified to represent this metric.
metricDataResult_label :: Lens' MetricDataResult (Maybe Text) Source #
The human-readable label associated with the data.
metricDataResult_messages :: Lens' MetricDataResult (Maybe [MessageData]) Source #
A list of messages with additional information about the data returned.
metricDataResult_statusCode :: Lens' MetricDataResult (Maybe StatusCode) Source #
The status of the returned data. Complete
indicates that all data
points in the requested time range were returned. PartialData
means
that an incomplete set of data points were returned. You can use the
NextToken
value that was returned and repeat your request to get more
data points. NextToken
is not returned if you are performing a math
expression. InternalError
indicates that an error occurred. Retry your
request using NextToken
, if present.
metricDataResult_timestamps :: Lens' MetricDataResult (Maybe [UTCTime]) Source #
The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].
metricDataResult_values :: Lens' MetricDataResult (Maybe [Double]) Source #
The data points for the metric corresponding to Timestamps
. The number
of values always matches the number of timestamps and the timestamp for
Values[x] is Timestamps[x].
MetricDatum
data MetricDatum Source #
Encapsulates the information sent to either create a metric or add new values to be aggregated into an existing metric.
See: newMetricDatum
smart constructor.
MetricDatum' | |
|
Instances
Create a value of MetricDatum
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:counts:MetricDatum'
, metricDatum_counts
- Array of numbers that is used along with the Values
array. Each number
in the Count
array is the number of times the corresponding value in
the Values
array occurred during the period.
If you omit the Counts
array, the default of 1 is used as the value
for each count. If you include a Counts
array, it must include the
same amount of values as the Values
array.
$sel:dimensions:MetricDatum'
, metricDatum_dimensions
- The dimensions associated with the metric.
$sel:statisticValues:MetricDatum'
, metricDatum_statisticValues
- The statistical values for the metric.
$sel:storageResolution:MetricDatum'
, metricDatum_storageResolution
- Valid values are 1 and 60. Setting this to 1 specifies this metric as a
high-resolution metric, so that CloudWatch stores the metric with
sub-minute resolution down to one second. Setting this to 60 specifies
this metric as a regular-resolution metric, which CloudWatch stores at
1-minute resolution. Currently, high resolution is available only for
custom metrics. For more information about high-resolution metrics, see
High-Resolution Metrics
in the Amazon CloudWatch User Guide.
This field is optional, if you do not specify it the default of 60 is used.
$sel:timestamp:MetricDatum'
, metricDatum_timestamp
- The time the metric data was received, expressed as the number of
milliseconds since Jan 1, 1970 00:00:00 UTC.
$sel:unit:MetricDatum'
, metricDatum_unit
- When you are using a Put
operation, this defines what unit you want to
use when storing the metric.
In a Get
operation, this displays the unit that is used for the
metric.
MetricDatum
, metricDatum_value
- The value for the metric.
Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
$sel:values:MetricDatum'
, metricDatum_values
- Array of numbers representing the values for the metric during the
period. Each unique value is listed just once in this array, and the
corresponding number in the Counts
array specifies the number of times
that value occurred during the period. You can include up to 150 unique
values in each PutMetricData
action that specifies a Values
array.
Although the Values
array accepts numbers of type Double
, CloudWatch
rejects values that are either too small or too large. Values must be in
the range of -2^360 to 2^360. In addition, special values (for example,
NaN, +Infinity, -Infinity) are not supported.
$sel:metricName:MetricDatum'
, metricDatum_metricName
- The name of the metric.
metricDatum_counts :: Lens' MetricDatum (Maybe [Double]) Source #
Array of numbers that is used along with the Values
array. Each number
in the Count
array is the number of times the corresponding value in
the Values
array occurred during the period.
If you omit the Counts
array, the default of 1 is used as the value
for each count. If you include a Counts
array, it must include the
same amount of values as the Values
array.
metricDatum_dimensions :: Lens' MetricDatum (Maybe [Dimension]) Source #
The dimensions associated with the metric.
metricDatum_statisticValues :: Lens' MetricDatum (Maybe StatisticSet) Source #
The statistical values for the metric.
metricDatum_storageResolution :: Lens' MetricDatum (Maybe Natural) Source #
Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see High-Resolution Metrics in the Amazon CloudWatch User Guide.
This field is optional, if you do not specify it the default of 60 is used.
metricDatum_timestamp :: Lens' MetricDatum (Maybe UTCTime) Source #
The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
metricDatum_unit :: Lens' MetricDatum (Maybe StandardUnit) Source #
When you are using a Put
operation, this defines what unit you want to
use when storing the metric.
In a Get
operation, this displays the unit that is used for the
metric.
metricDatum_value :: Lens' MetricDatum (Maybe Double) Source #
The value for the metric.
Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
metricDatum_values :: Lens' MetricDatum (Maybe [Double]) Source #
Array of numbers representing the values for the metric during the
period. Each unique value is listed just once in this array, and the
corresponding number in the Counts
array specifies the number of times
that value occurred during the period. You can include up to 150 unique
values in each PutMetricData
action that specifies a Values
array.
Although the Values
array accepts numbers of type Double
, CloudWatch
rejects values that are either too small or too large. Values must be in
the range of -2^360 to 2^360. In addition, special values (for example,
NaN, +Infinity, -Infinity) are not supported.
metricDatum_metricName :: Lens' MetricDatum Text Source #
The name of the metric.
MetricMathAnomalyDetector
data MetricMathAnomalyDetector Source #
Indicates the CloudWatch math expression that provides the time series the anomaly detector uses as input. The designated math expression must return a single time series.
See: newMetricMathAnomalyDetector
smart constructor.
MetricMathAnomalyDetector' | |
|
Instances
newMetricMathAnomalyDetector :: MetricMathAnomalyDetector Source #
Create a value of MetricMathAnomalyDetector
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:metricDataQueries:MetricMathAnomalyDetector'
, metricMathAnomalyDetector_metricDataQueries
- An array of metric data query structures that enables you to create an
anomaly detector based on the result of a metric math expression. Each
item in MetricDataQueries
gets a metric or performs a math expression.
One item in MetricDataQueries
is the expression that provides the time
series that the anomaly detector uses as input. Designate the expression
by setting ReturnData
to true
for this object in the array. For all
other expressions and metrics, set ReturnData
to false
. The
designated expression must return a single time series.
metricMathAnomalyDetector_metricDataQueries :: Lens' MetricMathAnomalyDetector (Maybe [MetricDataQuery]) Source #
An array of metric data query structures that enables you to create an
anomaly detector based on the result of a metric math expression. Each
item in MetricDataQueries
gets a metric or performs a math expression.
One item in MetricDataQueries
is the expression that provides the time
series that the anomaly detector uses as input. Designate the expression
by setting ReturnData
to true
for this object in the array. For all
other expressions and metrics, set ReturnData
to false
. The
designated expression must return a single time series.
MetricStat
data MetricStat Source #
This structure defines the metric to be returned, along with the statistics, period, and units.
See: newMetricStat
smart constructor.
MetricStat' | |
|
Instances
:: Metric | |
-> Natural | |
-> Text | |
-> MetricStat |
Create a value of MetricStat
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:unit:MetricStat'
, metricStat_unit
- When you are using a Put
operation, this defines what unit you want to
use when storing the metric.
In a Get
operation, if you omit Unit
then all data that was
collected with any unit is returned, along with the corresponding units
that were specified when the data was reported to CloudWatch. If you
specify a unit, the operation returns only data that was collected with
that unit specified. If you specify a unit that does not match the data
collected, the results of the operation are null. CloudWatch does not
perform unit conversions.
$sel:metric:MetricStat'
, metricStat_metric
- The metric to return, including the metric name, namespace, and
dimensions.
$sel:period:MetricStat'
, metricStat_period
- The granularity, in seconds, of the returned data points. For metrics
with regular resolution, a period can be as short as one minute (60
seconds) and must be a multiple of 60. For high-resolution metrics that
are collected at intervals of less than one minute, the period can be 1,
5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those
metrics stored by a PutMetricData
call that includes a
StorageResolution
of 1 second.
If the StartTime
parameter specifies a time stamp that is greater than
3 hours ago, you must specify the period as follows or no data points in
that time range is returned:
- Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
- Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
- Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
$sel:stat:MetricStat'
, metricStat_stat
- The statistic to return. It can include any CloudWatch statistic or
extended statistic.
metricStat_unit :: Lens' MetricStat (Maybe StandardUnit) Source #
When you are using a Put
operation, this defines what unit you want to
use when storing the metric.
In a Get
operation, if you omit Unit
then all data that was
collected with any unit is returned, along with the corresponding units
that were specified when the data was reported to CloudWatch. If you
specify a unit, the operation returns only data that was collected with
that unit specified. If you specify a unit that does not match the data
collected, the results of the operation are null. CloudWatch does not
perform unit conversions.
metricStat_metric :: Lens' MetricStat Metric Source #
The metric to return, including the metric name, namespace, and dimensions.
metricStat_period :: Lens' MetricStat Natural Source #
The granularity, in seconds, of the returned data points. For metrics
with regular resolution, a period can be as short as one minute (60
seconds) and must be a multiple of 60. For high-resolution metrics that
are collected at intervals of less than one minute, the period can be 1,
5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those
metrics stored by a PutMetricData
call that includes a
StorageResolution
of 1 second.
If the StartTime
parameter specifies a time stamp that is greater than
3 hours ago, you must specify the period as follows or no data points in
that time range is returned:
- Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
- Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
- Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
metricStat_stat :: Lens' MetricStat Text Source #
The statistic to return. It can include any CloudWatch statistic or extended statistic.
MetricStreamEntry
data MetricStreamEntry Source #
This structure contains the configuration information about one metric stream.
See: newMetricStreamEntry
smart constructor.
MetricStreamEntry' | |
|
Instances
newMetricStreamEntry :: MetricStreamEntry Source #
Create a value of MetricStreamEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:arn:MetricStreamEntry'
, metricStreamEntry_arn
- The ARN of the metric stream.
$sel:creationDate:MetricStreamEntry'
, metricStreamEntry_creationDate
- The date that the metric stream was originally created.
$sel:firehoseArn:MetricStreamEntry'
, metricStreamEntry_firehoseArn
- The ARN of the Kinesis Firehose devlivery stream that is used for this
metric stream.
$sel:lastUpdateDate:MetricStreamEntry'
, metricStreamEntry_lastUpdateDate
- The date that the configuration of this metric stream was most recently
updated.
$sel:name:MetricStreamEntry'
, metricStreamEntry_name
- The name of the metric stream.
$sel:outputFormat:MetricStreamEntry'
, metricStreamEntry_outputFormat
- The output format of this metric stream. Valid values are json
and
opentelemetry0.7
.
$sel:state:MetricStreamEntry'
, metricStreamEntry_state
- The current state of this stream. Valid values are running
and
stopped
.
metricStreamEntry_arn :: Lens' MetricStreamEntry (Maybe Text) Source #
The ARN of the metric stream.
metricStreamEntry_creationDate :: Lens' MetricStreamEntry (Maybe UTCTime) Source #
The date that the metric stream was originally created.
metricStreamEntry_firehoseArn :: Lens' MetricStreamEntry (Maybe Text) Source #
The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.
metricStreamEntry_lastUpdateDate :: Lens' MetricStreamEntry (Maybe UTCTime) Source #
The date that the configuration of this metric stream was most recently updated.
metricStreamEntry_name :: Lens' MetricStreamEntry (Maybe Text) Source #
The name of the metric stream.
metricStreamEntry_outputFormat :: Lens' MetricStreamEntry (Maybe MetricStreamOutputFormat) Source #
The output format of this metric stream. Valid values are json
and
opentelemetry0.7
.
metricStreamEntry_state :: Lens' MetricStreamEntry (Maybe Text) Source #
The current state of this stream. Valid values are running
and
stopped
.
MetricStreamFilter
data MetricStreamFilter Source #
This structure contains the name of one of the metric namespaces that is listed in a filter of a metric stream.
See: newMetricStreamFilter
smart constructor.
Instances
newMetricStreamFilter :: MetricStreamFilter Source #
Create a value of MetricStreamFilter
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:namespace:MetricStreamFilter'
, metricStreamFilter_namespace
- The name of the metric namespace in the filter.
metricStreamFilter_namespace :: Lens' MetricStreamFilter (Maybe Text) Source #
The name of the metric namespace in the filter.
MetricStreamStatisticsConfiguration
data MetricStreamStatisticsConfiguration Source #
By default, a metric stream always sends the MAX
, MIN
, SUM
, and
SAMPLECOUNT
statistics for each metric that is streamed. This
structure contains information for one metric that includes additional
statistics in the stream. For more information about statistics, see
CloudWatch, listed in
CloudWatch statistics definitions.
See: newMetricStreamStatisticsConfiguration
smart constructor.
MetricStreamStatisticsConfiguration' | |
|
Instances
newMetricStreamStatisticsConfiguration :: MetricStreamStatisticsConfiguration Source #
Create a value of MetricStreamStatisticsConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:includeMetrics:MetricStreamStatisticsConfiguration'
, metricStreamStatisticsConfiguration_includeMetrics
- An array of metric name and namespace pairs that stream the additional
statistics listed in the value of the AdditionalStatistics
parameter.
There can be as many as 100 pairs in the array.
All metrics that match the combination of metric name and namespace will be streamed with the additional statistics, no matter their dimensions.
$sel:additionalStatistics:MetricStreamStatisticsConfiguration'
, metricStreamStatisticsConfiguration_additionalStatistics
- The list of additional statistics that are to be streamed for the
metrics listed in the IncludeMetrics
array in this structure. This
list can include as many as 20 statistics.
If the OutputFormat
for the stream is opentelemetry0.7
, the only
valid values are p
??
percentile statistics such as p90
, p99
and so on.
If the OutputFormat
for the stream is json
, the valid values include
the abbreviations for all of the statistics listed in
CloudWatch statistics definitions.
For example, this includes tm98,
wm90
, PR(:300)
, and so on.
metricStreamStatisticsConfiguration_includeMetrics :: Lens' MetricStreamStatisticsConfiguration [MetricStreamStatisticsMetric] Source #
An array of metric name and namespace pairs that stream the additional
statistics listed in the value of the AdditionalStatistics
parameter.
There can be as many as 100 pairs in the array.
All metrics that match the combination of metric name and namespace will be streamed with the additional statistics, no matter their dimensions.
metricStreamStatisticsConfiguration_additionalStatistics :: Lens' MetricStreamStatisticsConfiguration [Text] Source #
The list of additional statistics that are to be streamed for the
metrics listed in the IncludeMetrics
array in this structure. This
list can include as many as 20 statistics.
If the OutputFormat
for the stream is opentelemetry0.7
, the only
valid values are p
??
percentile statistics such as p90
, p99
and so on.
If the OutputFormat
for the stream is json
, the valid values include
the abbreviations for all of the statistics listed in
CloudWatch statistics definitions.
For example, this includes tm98,
wm90
, PR(:300)
, and so on.
MetricStreamStatisticsMetric
data MetricStreamStatisticsMetric Source #
This object contains the information for one metric that is to be streamed with additional statistics.
See: newMetricStreamStatisticsMetric
smart constructor.
MetricStreamStatisticsMetric' | |
|
Instances
newMetricStreamStatisticsMetric Source #
:: Text | |
-> Text | |
-> MetricStreamStatisticsMetric |
Create a value of MetricStreamStatisticsMetric
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:namespace:MetricStreamStatisticsMetric'
, metricStreamStatisticsMetric_namespace
- The namespace of the metric.
$sel:metricName:MetricStreamStatisticsMetric'
, metricStreamStatisticsMetric_metricName
- The name of the metric.
metricStreamStatisticsMetric_namespace :: Lens' MetricStreamStatisticsMetric Text Source #
The namespace of the metric.
metricStreamStatisticsMetric_metricName :: Lens' MetricStreamStatisticsMetric Text Source #
The name of the metric.
PartialFailure
data PartialFailure Source #
This array is empty if the API operation was successful for all the rules specified in the request. If the operation could not process one of the rules, the following data is returned for each of those rules.
See: newPartialFailure
smart constructor.
PartialFailure' | |
|
Instances
newPartialFailure :: PartialFailure Source #
Create a value of PartialFailure
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:exceptionType:PartialFailure'
, partialFailure_exceptionType
- The type of error.
$sel:failureCode:PartialFailure'
, partialFailure_failureCode
- The code of the error.
$sel:failureDescription:PartialFailure'
, partialFailure_failureDescription
- A description of the error.
$sel:failureResource:PartialFailure'
, partialFailure_failureResource
- The specified rule that could not be deleted.
partialFailure_exceptionType :: Lens' PartialFailure (Maybe Text) Source #
The type of error.
partialFailure_failureCode :: Lens' PartialFailure (Maybe Text) Source #
The code of the error.
partialFailure_failureDescription :: Lens' PartialFailure (Maybe Text) Source #
A description of the error.
partialFailure_failureResource :: Lens' PartialFailure (Maybe Text) Source #
The specified rule that could not be deleted.
Range
Specifies one range of days or times to exclude from use for training an anomaly detection model.
See: newRange
smart constructor.
Instances
ToQuery Range Source # | |
Defined in Amazonka.CloudWatch.Types.Range toQuery :: Range -> QueryString # | |
FromXML Range Source # | |
Generic Range Source # | |
Read Range Source # | |
Show Range Source # | |
NFData Range Source # | |
Defined in Amazonka.CloudWatch.Types.Range | |
Eq Range Source # | |
Hashable Range Source # | |
Defined in Amazonka.CloudWatch.Types.Range | |
type Rep Range Source # | |
Defined in Amazonka.CloudWatch.Types.Range type Rep Range = D1 ('MetaData "Range" "Amazonka.CloudWatch.Types.Range" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "Range'" 'PrefixI 'True) (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601) :*: S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601))) |
Create a value of Range
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:startTime:Range'
, range_startTime
- The start time of the range to exclude. The format is
yyyy-MM-dd'T'HH:mm:ss
. For example, 2019-07-01T23:59:59
.
$sel:endTime:Range'
, range_endTime
- The end time of the range to exclude. The format is
yyyy-MM-dd'T'HH:mm:ss
. For example, 2019-07-01T23:59:59
.
range_startTime :: Lens' Range UTCTime Source #
The start time of the range to exclude. The format is
yyyy-MM-dd'T'HH:mm:ss
. For example, 2019-07-01T23:59:59
.
range_endTime :: Lens' Range UTCTime Source #
The end time of the range to exclude. The format is
yyyy-MM-dd'T'HH:mm:ss
. For example, 2019-07-01T23:59:59
.
SingleMetricAnomalyDetector
data SingleMetricAnomalyDetector Source #
Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input.
See: newSingleMetricAnomalyDetector
smart constructor.
SingleMetricAnomalyDetector' | |
|
Instances
newSingleMetricAnomalyDetector :: SingleMetricAnomalyDetector Source #
Create a value of SingleMetricAnomalyDetector
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dimensions:SingleMetricAnomalyDetector'
, singleMetricAnomalyDetector_dimensions
- The metric dimensions to create the anomaly detection model for.
$sel:metricName:SingleMetricAnomalyDetector'
, singleMetricAnomalyDetector_metricName
- The name of the metric to create the anomaly detection model for.
$sel:namespace:SingleMetricAnomalyDetector'
, singleMetricAnomalyDetector_namespace
- The namespace of the metric to create the anomaly detection model for.
$sel:stat:SingleMetricAnomalyDetector'
, singleMetricAnomalyDetector_stat
- The statistic to use for the metric and anomaly detection model.
singleMetricAnomalyDetector_dimensions :: Lens' SingleMetricAnomalyDetector (Maybe [Dimension]) Source #
The metric dimensions to create the anomaly detection model for.
singleMetricAnomalyDetector_metricName :: Lens' SingleMetricAnomalyDetector (Maybe Text) Source #
The name of the metric to create the anomaly detection model for.
singleMetricAnomalyDetector_namespace :: Lens' SingleMetricAnomalyDetector (Maybe Text) Source #
The namespace of the metric to create the anomaly detection model for.
singleMetricAnomalyDetector_stat :: Lens' SingleMetricAnomalyDetector (Maybe Text) Source #
The statistic to use for the metric and anomaly detection model.
StatisticSet
data StatisticSet Source #
Represents a set of statistics that describes a specific metric.
See: newStatisticSet
smart constructor.
Instances
:: Double | |
-> Double | |
-> Double | |
-> Double | |
-> StatisticSet |
Create a value of StatisticSet
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sampleCount:StatisticSet'
, statisticSet_sampleCount
- The number of samples used for the statistic set.
$sel:sum:StatisticSet'
, statisticSet_sum
- The sum of values for the sample set.
$sel:minimum:StatisticSet'
, statisticSet_minimum
- The minimum value of the sample set.
$sel:maximum:StatisticSet'
, statisticSet_maximum
- The maximum value of the sample set.
statisticSet_sampleCount :: Lens' StatisticSet Double Source #
The number of samples used for the statistic set.
statisticSet_sum :: Lens' StatisticSet Double Source #
The sum of values for the sample set.
statisticSet_minimum :: Lens' StatisticSet Double Source #
The minimum value of the sample set.
statisticSet_maximum :: Lens' StatisticSet Double Source #
The maximum value of the sample set.
Tag
A key-value pair associated with a CloudWatch resource.
See: newTag
smart constructor.
Instances
ToQuery Tag Source # | |
Defined in Amazonka.CloudWatch.Types.Tag toQuery :: Tag -> QueryString # | |
FromXML Tag Source # | |
Generic Tag Source # | |
Read Tag Source # | |
Show Tag Source # | |
NFData Tag Source # | |
Defined in Amazonka.CloudWatch.Types.Tag | |
Eq Tag Source # | |
Hashable Tag Source # | |
Defined in Amazonka.CloudWatch.Types.Tag | |
type Rep Tag Source # | |
Defined in Amazonka.CloudWatch.Types.Tag type Rep Tag = D1 ('MetaData "Tag" "Amazonka.CloudWatch.Types.Tag" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "Tag'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Tag
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:key:Tag'
, tag_key
- A string that you can use to assign a value. The combination of tag keys
and values can help you organize and categorize your resources.
$sel:value:Tag'
, tag_value
- The value for the specified tag key.