Skip to content

Type definitions#

Index > CloudWatch > Type definitions

Auto-generated documentation for CloudWatch type annotations stubs module mypy-boto3-cloudwatch.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

MetricStreamFilterUnionTypeDef#

# MetricStreamFilterUnionTypeDef definition

MetricStreamFilterUnionTypeDef = Union[
    MetricStreamFilterTypeDef,  # (1)
    MetricStreamFilterOutputTypeDef,  # (2)
]
  1. See MetricStreamFilterTypeDef
  2. See MetricStreamFilterOutputTypeDef

SingleMetricAnomalyDetectorUnionTypeDef#

# SingleMetricAnomalyDetectorUnionTypeDef definition

SingleMetricAnomalyDetectorUnionTypeDef = Union[
    SingleMetricAnomalyDetectorTypeDef,  # (1)
    SingleMetricAnomalyDetectorExtraOutputTypeDef,  # (2)
]
  1. See SingleMetricAnomalyDetectorTypeDef
  2. See SingleMetricAnomalyDetectorExtraOutputTypeDef

MetricStreamStatisticsConfigurationUnionTypeDef#

# MetricStreamStatisticsConfigurationUnionTypeDef definition

MetricStreamStatisticsConfigurationUnionTypeDef = Union[
    MetricStreamStatisticsConfigurationTypeDef,  # (1)
    MetricStreamStatisticsConfigurationOutputTypeDef,  # (2)
]
  1. See MetricStreamStatisticsConfigurationTypeDef
  2. See MetricStreamStatisticsConfigurationOutputTypeDef

AnomalyDetectorConfigurationUnionTypeDef#

# AnomalyDetectorConfigurationUnionTypeDef definition

AnomalyDetectorConfigurationUnionTypeDef = Union[
    AnomalyDetectorConfigurationTypeDef,  # (1)
    AnomalyDetectorConfigurationExtraOutputTypeDef,  # (2)
]
  1. See AnomalyDetectorConfigurationTypeDef
  2. See AnomalyDetectorConfigurationExtraOutputTypeDef

MetricDataQueryUnionTypeDef#

# MetricDataQueryUnionTypeDef definition

MetricDataQueryUnionTypeDef = Union[
    MetricDataQueryTypeDef,  # (1)
    MetricDataQueryExtraOutputTypeDef,  # (2)
]
  1. See MetricDataQueryTypeDef
  2. See MetricDataQueryExtraOutputTypeDef

MetricMathAnomalyDetectorUnionTypeDef#

# MetricMathAnomalyDetectorUnionTypeDef definition

MetricMathAnomalyDetectorUnionTypeDef = Union[
    MetricMathAnomalyDetectorTypeDef,  # (1)
    MetricMathAnomalyDetectorExtraOutputTypeDef,  # (2)
]
  1. See MetricMathAnomalyDetectorTypeDef
  2. See MetricMathAnomalyDetectorExtraOutputTypeDef

AlarmHistoryItemTypeDef#

# AlarmHistoryItemTypeDef definition

class AlarmHistoryItemTypeDef(TypedDict):
    AlarmName: NotRequired[str],
    AlarmType: NotRequired[AlarmTypeType],  # (1)
    Timestamp: NotRequired[datetime],
    HistoryItemType: NotRequired[HistoryItemTypeType],  # (2)
    HistorySummary: NotRequired[str],
    HistoryData: NotRequired[str],
  1. See AlarmTypeType
  2. See HistoryItemTypeType

RangeExtraOutputTypeDef#

# RangeExtraOutputTypeDef definition

class RangeExtraOutputTypeDef(TypedDict):
    StartTime: datetime,
    EndTime: datetime,

RangeOutputTypeDef#

# RangeOutputTypeDef definition

class RangeOutputTypeDef(TypedDict):
    StartTime: datetime,
    EndTime: date