Typed dictionaries#
Index > CloudWatch > Typed dictionaries
Auto-generated documentation for CloudWatch type annotations stubs module mypy-boto3-cloudwatch.
AlarmHistoryItemTypeDef#
# AlarmHistoryItemTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import AlarmHistoryItemTypeDef
def get_value() -> AlarmHistoryItemTypeDef:
return {
"AlarmName": ...,
}
# 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],
- See AlarmTypeType
- See HistoryItemTypeType
RangeTypeDef#
# RangeTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import RangeTypeDef
def get_value() -> RangeTypeDef:
return {
"StartTime": ...,
"EndTime": ...,
}
# RangeTypeDef definition
class RangeTypeDef(TypedDict):
StartTime: datetime,
EndTime: datetime,
DimensionTypeDef#
# DimensionTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DimensionTypeDef
def get_value() -> DimensionTypeDef:
return {
"Name": ...,
"Value": ...,
}
# DimensionTypeDef definition
class DimensionTypeDef(TypedDict):
Name: str,
Value: str,
CompositeAlarmTypeDef#
# CompositeAlarmTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import CompositeAlarmTypeDef
def get_value() -> CompositeAlarmTypeDef:
return {
"ActionsEnabled": ...,
}
# CompositeAlarmTypeDef definition
class CompositeAlarmTypeDef(TypedDict):
ActionsEnabled: NotRequired[bool],
AlarmActions: NotRequired[List[str]],
AlarmArn: NotRequired[str],
AlarmConfigurationUpdatedTimestamp: NotRequired[datetime],
AlarmDescription: NotRequired[str],
AlarmName: NotRequired[str],
AlarmRule: NotRequired[str],
InsufficientDataActions: NotRequired[List[str]],
OKActions: NotRequired[List[str]],
StateReason: NotRequired[str],
StateReasonData: NotRequired[str],
StateUpdatedTimestamp: NotRequired[datetime],
StateValue: NotRequired[StateValueType], # (1)
StateTransitionedTimestamp: NotRequired[datetime],
ActionsSuppressedBy: NotRequired[ActionsSuppressedByType], # (2)
ActionsSuppressedReason: NotRequired[str],
ActionsSuppressor: NotRequired[str],
ActionsSuppressorWaitPeriod: NotRequired[int],
ActionsSuppressorExtensionPeriod: NotRequired[int],
DashboardEntryTypeDef#
# DashboardEntryTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DashboardEntryTypeDef
def get_value() -> DashboardEntryTypeDef:
return {
"DashboardName": ...,
}
# DashboardEntryTypeDef definition
class DashboardEntryTypeDef(TypedDict):
DashboardName: NotRequired[str],
DashboardArn: NotRequired[str],
LastModified: NotRequired[datetime],
Size: NotRequired[int],
DashboardValidationMessageTypeDef#
# DashboardValidationMessageTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DashboardValidationMessageTypeDef
def get_value() -> DashboardValidationMessageTypeDef:
return {
"DataPath": ...,
}
# DashboardValidationMessageTypeDef definition
class DashboardValidationMessageTypeDef(TypedDict):
DataPath: NotRequired[str],
Message: NotRequired[str],
DatapointTypeDef#
# DatapointTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DatapointTypeDef
def get_value() -> DatapointTypeDef:
return {
"Timestamp": ...,
}
# DatapointTypeDef definition
class DatapointTypeDef(TypedDict):
Timestamp: NotRequired[datetime],
SampleCount: NotRequired[float],
Average: NotRequired[float],
Sum: NotRequired[float],
Minimum: NotRequired[float],
Maximum: NotRequired[float],
Unit: NotRequired[StandardUnitType], # (1)
ExtendedStatistics: NotRequired[Dict[str, float]],
- See StandardUnitType
DeleteAlarmsInputRequestTypeDef#
# DeleteAlarmsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DeleteAlarmsInputRequestTypeDef
def get_value() -> DeleteAlarmsInputRequestTypeDef:
return {
"AlarmNames": ...,
}
# DeleteAlarmsInputRequestTypeDef definition
class DeleteAlarmsInputRequestTypeDef(TypedDict):
AlarmNames: Sequence[str],
DeleteDashboardsInputRequestTypeDef#
# DeleteDashboardsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DeleteDashboardsInputRequestTypeDef
def get_value() -> DeleteDashboardsInputRequestTypeDef:
return {
"DashboardNames": ...,
}
# DeleteDashboardsInputRequestTypeDef definition
class DeleteDashboardsInputRequestTypeDef(TypedDict):
DashboardNames: Sequence[str],
DeleteInsightRulesInputRequestTypeDef#
# DeleteInsightRulesInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DeleteInsightRulesInputRequestTypeDef
def get_value() -> DeleteInsightRulesInputRequestTypeDef:
return {
"RuleNames": ...,
}
# DeleteInsightRulesInputRequestTypeDef definition
class DeleteInsightRulesInputRequestTypeDef(TypedDict):
RuleNames: Sequence[str],
PartialFailureTypeDef#
# PartialFailureTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PartialFailureTypeDef
def get_value() -> PartialFailureTypeDef:
return {
"FailureResource": ...,
}
# PartialFailureTypeDef definition
class PartialFailureTypeDef(TypedDict):
FailureResource: NotRequired[str],
ExceptionType: NotRequired[str],
FailureCode: NotRequired[str],
FailureDescription: NotRequired[str],
DeleteMetricStreamInputRequestTypeDef#
# DeleteMetricStreamInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DeleteMetricStreamInputRequestTypeDef
def get_value() -> DeleteMetricStreamInputRequestTypeDef:
return {
"Name": ...,
}
# DeleteMetricStreamInputRequestTypeDef definition
class DeleteMetricStreamInputRequestTypeDef(TypedDict):
Name: str,
DescribeAlarmHistoryInputAlarmDescribeHistoryTypeDef#
# DescribeAlarmHistoryInputAlarmDescribeHistoryTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmHistoryInputAlarmDescribeHistoryTypeDef
def get_value() -> DescribeAlarmHistoryInputAlarmDescribeHistoryTypeDef:
return {
"AlarmTypes": ...,
}
# DescribeAlarmHistoryInputAlarmDescribeHistoryTypeDef definition
class DescribeAlarmHistoryInputAlarmDescribeHistoryTypeDef(TypedDict):
AlarmTypes: NotRequired[Sequence[AlarmTypeType]], # (1)
HistoryItemType: NotRequired[HistoryItemTypeType], # (2)
StartDate: NotRequired[Union[datetime, str]],
EndDate: NotRequired[Union[datetime, str]],
MaxRecords: NotRequired[int],
NextToken: NotRequired[str],
ScanBy: NotRequired[ScanByType], # (3)
- See AlarmTypeType
- See HistoryItemTypeType
- See ScanByType
DescribeAlarmHistoryInputDescribeAlarmHistoryPaginateTypeDef#
# DescribeAlarmHistoryInputDescribeAlarmHistoryPaginateTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmHistoryInputDescribeAlarmHistoryPaginateTypeDef
def get_value() -> DescribeAlarmHistoryInputDescribeAlarmHistoryPaginateTypeDef:
return {
"AlarmName": ...,
}
# DescribeAlarmHistoryInputDescribeAlarmHistoryPaginateTypeDef definition
class DescribeAlarmHistoryInputDescribeAlarmHistoryPaginateTypeDef(TypedDict):
AlarmName: NotRequired[str],
AlarmTypes: NotRequired[Sequence[AlarmTypeType]], # (1)
HistoryItemType: NotRequired[HistoryItemTypeType], # (2)
StartDate: NotRequired[Union[datetime, str]],
EndDate: NotRequired[Union[datetime, str]],
ScanBy: NotRequired[ScanByType], # (3)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (4)
- See AlarmTypeType
- See HistoryItemTypeType
- See ScanByType
- See PaginatorConfigTypeDef
DescribeAlarmHistoryInputRequestTypeDef#
# DescribeAlarmHistoryInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmHistoryInputRequestTypeDef
def get_value() -> DescribeAlarmHistoryInputRequestTypeDef:
return {
"AlarmName": ...,
}
# DescribeAlarmHistoryInputRequestTypeDef definition
class DescribeAlarmHistoryInputRequestTypeDef(TypedDict):
AlarmName: NotRequired[str],
AlarmTypes: NotRequired[Sequence[AlarmTypeType]], # (1)
HistoryItemType: NotRequired[HistoryItemTypeType], # (2)
StartDate: NotRequired[Union[datetime, str]],
EndDate: NotRequired[Union[datetime, str]],
MaxRecords: NotRequired[int],
NextToken: NotRequired[str],
ScanBy: NotRequired[ScanByType], # (3)
- See AlarmTypeType
- See HistoryItemTypeType
- See ScanByType
WaiterConfigTypeDef#
# WaiterConfigTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import WaiterConfigTypeDef
def get_value() -> WaiterConfigTypeDef:
return {
"Delay": ...,
}
# WaiterConfigTypeDef definition
class WaiterConfigTypeDef(TypedDict):
Delay: NotRequired[int],
MaxAttempts: NotRequired[int],
DescribeAlarmsInputDescribeAlarmsPaginateTypeDef#
# DescribeAlarmsInputDescribeAlarmsPaginateTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmsInputDescribeAlarmsPaginateTypeDef
def get_value() -> DescribeAlarmsInputDescribeAlarmsPaginateTypeDef:
return {
"AlarmNames": ...,
}
# DescribeAlarmsInputDescribeAlarmsPaginateTypeDef definition
class DescribeAlarmsInputDescribeAlarmsPaginateTypeDef(TypedDict):
AlarmNames: NotRequired[Sequence[str]],
AlarmNamePrefix: NotRequired[str],
AlarmTypes: NotRequired[Sequence[AlarmTypeType]], # (1)
ChildrenOfAlarmName: NotRequired[str],
ParentsOfAlarmName: NotRequired[str],
StateValue: NotRequired[StateValueType], # (2)
ActionPrefix: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (3)
- See AlarmTypeType
- See StateValueType
- See PaginatorConfigTypeDef
DescribeAlarmsInputRequestTypeDef#
# DescribeAlarmsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmsInputRequestTypeDef
def get_value() -> DescribeAlarmsInputRequestTypeDef:
return {
"AlarmNames": ...,
}
# DescribeAlarmsInputRequestTypeDef definition
class DescribeAlarmsInputRequestTypeDef(TypedDict):
AlarmNames: NotRequired[Sequence[str]],
AlarmNamePrefix: NotRequired[str],
AlarmTypes: NotRequired[Sequence[AlarmTypeType]], # (1)
ChildrenOfAlarmName: NotRequired[str],
ParentsOfAlarmName: NotRequired[str],
StateValue: NotRequired[StateValueType], # (2)
ActionPrefix: NotRequired[str],
MaxRecords: NotRequired[int],
NextToken: NotRequired[str],
- See AlarmTypeType
- See StateValueType
DescribeInsightRulesInputRequestTypeDef#
# DescribeInsightRulesInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeInsightRulesInputRequestTypeDef
def get_value() -> DescribeInsightRulesInputRequestTypeDef:
return {
"NextToken": ...,
}
# DescribeInsightRulesInputRequestTypeDef definition
class DescribeInsightRulesInputRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
InsightRuleTypeDef#
# InsightRuleTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import InsightRuleTypeDef
def get_value() -> InsightRuleTypeDef:
return {
"Name": ...,
"State": ...,
"Schema": ...,
"Definition": ...,
}
# InsightRuleTypeDef definition
class InsightRuleTypeDef(TypedDict):
Name: str,
State: str,
Schema: str,
Definition: str,
ManagedRule: NotRequired[bool],
DimensionFilterTypeDef#
# DimensionFilterTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DimensionFilterTypeDef
def get_value() -> DimensionFilterTypeDef:
return {
"Name": ...,
}
# DimensionFilterTypeDef definition
class DimensionFilterTypeDef(TypedDict):
Name: str,
Value: NotRequired[str],
DisableAlarmActionsInputRequestTypeDef#
# DisableAlarmActionsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DisableAlarmActionsInputRequestTypeDef
def get_value() -> DisableAlarmActionsInputRequestTypeDef:
return {
"AlarmNames": ...,
}
# DisableAlarmActionsInputRequestTypeDef definition
class DisableAlarmActionsInputRequestTypeDef(TypedDict):
AlarmNames: Sequence[str],
DisableInsightRulesInputRequestTypeDef#
# DisableInsightRulesInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DisableInsightRulesInputRequestTypeDef
def get_value() -> DisableInsightRulesInputRequestTypeDef:
return {
"RuleNames": ...,
}
# DisableInsightRulesInputRequestTypeDef definition
class DisableInsightRulesInputRequestTypeDef(TypedDict):
RuleNames: Sequence[str],
EmptyResponseMetadataTypeDef#
# EmptyResponseMetadataTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import EmptyResponseMetadataTypeDef
def get_value() -> EmptyResponseMetadataTypeDef:
return {
"ResponseMetadata": ...,
}
# EmptyResponseMetadataTypeDef definition
class EmptyResponseMetadataTypeDef(TypedDict):
ResponseMetadata: ResponseMetadataTypeDef, # (1)
EnableAlarmActionsInputRequestTypeDef#
# EnableAlarmActionsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import EnableAlarmActionsInputRequestTypeDef
def get_value() -> EnableAlarmActionsInputRequestTypeDef:
return {
"AlarmNames": ...,
}
# EnableAlarmActionsInputRequestTypeDef definition
class EnableAlarmActionsInputRequestTypeDef(TypedDict):
AlarmNames: Sequence[str],
EnableInsightRulesInputRequestTypeDef#
# EnableInsightRulesInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import EnableInsightRulesInputRequestTypeDef
def get_value() -> EnableInsightRulesInputRequestTypeDef:
return {
"RuleNames": ...,
}
# EnableInsightRulesInputRequestTypeDef definition
class EnableInsightRulesInputRequestTypeDef(TypedDict):
RuleNames: Sequence[str],
GetDashboardInputRequestTypeDef#
# GetDashboardInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetDashboardInputRequestTypeDef
def get_value() -> GetDashboardInputRequestTypeDef:
return {
"DashboardName": ...,
}
# GetDashboardInputRequestTypeDef definition
class GetDashboardInputRequestTypeDef(TypedDict):
DashboardName: str,
GetDashboardOutputTypeDef#
# GetDashboardOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetDashboardOutputTypeDef
def get_value() -> GetDashboardOutputTypeDef:
return {
"DashboardArn": ...,
"DashboardBody": ...,
"DashboardName": ...,
"ResponseMetadata": ...,
}
# GetDashboardOutputTypeDef definition
class GetDashboardOutputTypeDef(TypedDict):
DashboardArn: str,
DashboardBody: str,
DashboardName: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetInsightRuleReportInputRequestTypeDef#
# GetInsightRuleReportInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetInsightRuleReportInputRequestTypeDef
def get_value() -> GetInsightRuleReportInputRequestTypeDef:
return {
"RuleName": ...,
"StartTime": ...,
"EndTime": ...,
"Period": ...,
}
# GetInsightRuleReportInputRequestTypeDef definition
class GetInsightRuleReportInputRequestTypeDef(TypedDict):
RuleName: str,
StartTime: Union[datetime, str],
EndTime: Union[datetime, str],
Period: int,
MaxContributorCount: NotRequired[int],
Metrics: NotRequired[Sequence[str]],
OrderBy: NotRequired[str],
InsightRuleMetricDatapointTypeDef#
# InsightRuleMetricDatapointTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import InsightRuleMetricDatapointTypeDef
def get_value() -> InsightRuleMetricDatapointTypeDef:
return {
"Timestamp": ...,
}
# InsightRuleMetricDatapointTypeDef definition
class InsightRuleMetricDatapointTypeDef(TypedDict):
Timestamp: datetime,
UniqueContributors: NotRequired[float],
MaxContributorValue: NotRequired[float],
SampleCount: NotRequired[float],
Average: NotRequired[float],
Sum: NotRequired[float],
Minimum: NotRequired[float],
Maximum: NotRequired[float],
LabelOptionsTypeDef#
# LabelOptionsTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import LabelOptionsTypeDef
def get_value() -> LabelOptionsTypeDef:
return {
"Timezone": ...,
}
# LabelOptionsTypeDef definition
class LabelOptionsTypeDef(TypedDict):
Timezone: NotRequired[str],
MessageDataTypeDef#
# MessageDataTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MessageDataTypeDef
def get_value() -> MessageDataTypeDef:
return {
"Code": ...,
}
# MessageDataTypeDef definition
class MessageDataTypeDef(TypedDict):
Code: NotRequired[str],
Value: NotRequired[str],
GetMetricStreamInputRequestTypeDef#
# GetMetricStreamInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricStreamInputRequestTypeDef
def get_value() -> GetMetricStreamInputRequestTypeDef:
return {
"Name": ...,
}
# GetMetricStreamInputRequestTypeDef definition
class GetMetricStreamInputRequestTypeDef(TypedDict):
Name: str,
MetricStreamFilterTypeDef#
# MetricStreamFilterTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricStreamFilterTypeDef
def get_value() -> MetricStreamFilterTypeDef:
return {
"Namespace": ...,
}
# MetricStreamFilterTypeDef definition
class MetricStreamFilterTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricNames: NotRequired[List[str]],
GetMetricWidgetImageInputRequestTypeDef#
# GetMetricWidgetImageInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricWidgetImageInputRequestTypeDef
def get_value() -> GetMetricWidgetImageInputRequestTypeDef:
return {
"MetricWidget": ...,
}
# GetMetricWidgetImageInputRequestTypeDef definition
class GetMetricWidgetImageInputRequestTypeDef(TypedDict):
MetricWidget: str,
OutputFormat: NotRequired[str],
GetMetricWidgetImageOutputTypeDef#
# GetMetricWidgetImageOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricWidgetImageOutputTypeDef
def get_value() -> GetMetricWidgetImageOutputTypeDef:
return {
"MetricWidgetImage": ...,
"ResponseMetadata": ...,
}
# GetMetricWidgetImageOutputTypeDef definition
class GetMetricWidgetImageOutputTypeDef(TypedDict):
MetricWidgetImage: bytes,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
InsightRuleContributorDatapointTypeDef#
# InsightRuleContributorDatapointTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import InsightRuleContributorDatapointTypeDef
def get_value() -> InsightRuleContributorDatapointTypeDef:
return {
"Timestamp": ...,
"ApproximateValue": ...,
}
# InsightRuleContributorDatapointTypeDef definition
class InsightRuleContributorDatapointTypeDef(TypedDict):
Timestamp: datetime,
ApproximateValue: float,
ListDashboardsInputListDashboardsPaginateTypeDef#
# ListDashboardsInputListDashboardsPaginateTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListDashboardsInputListDashboardsPaginateTypeDef
def get_value() -> ListDashboardsInputListDashboardsPaginateTypeDef:
return {
"DashboardNamePrefix": ...,
}
# ListDashboardsInputListDashboardsPaginateTypeDef definition
class ListDashboardsInputListDashboardsPaginateTypeDef(TypedDict):
DashboardNamePrefix: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListDashboardsInputRequestTypeDef#
# ListDashboardsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListDashboardsInputRequestTypeDef
def get_value() -> ListDashboardsInputRequestTypeDef:
return {
"DashboardNamePrefix": ...,
}
# ListDashboardsInputRequestTypeDef definition
class ListDashboardsInputRequestTypeDef(TypedDict):
DashboardNamePrefix: NotRequired[str],
NextToken: NotRequired[str],
ListManagedInsightRulesInputRequestTypeDef#
# ListManagedInsightRulesInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListManagedInsightRulesInputRequestTypeDef
def get_value() -> ListManagedInsightRulesInputRequestTypeDef:
return {
"ResourceARN": ...,
}
# ListManagedInsightRulesInputRequestTypeDef definition
class ListManagedInsightRulesInputRequestTypeDef(TypedDict):
ResourceARN: str,
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
ListMetricStreamsInputRequestTypeDef#
# ListMetricStreamsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListMetricStreamsInputRequestTypeDef
def get_value() -> ListMetricStreamsInputRequestTypeDef:
return {
"NextToken": ...,
}
# ListMetricStreamsInputRequestTypeDef definition
class ListMetricStreamsInputRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
MetricStreamEntryTypeDef#
# MetricStreamEntryTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricStreamEntryTypeDef
def get_value() -> MetricStreamEntryTypeDef:
return {
"Arn": ...,
}
# MetricStreamEntryTypeDef definition
class MetricStreamEntryTypeDef(TypedDict):
Arn: NotRequired[str],
CreationDate: NotRequired[datetime],
LastUpdateDate: NotRequired[datetime],
Name: NotRequired[str],
FirehoseArn: NotRequired[str],
State: NotRequired[str],
OutputFormat: NotRequired[MetricStreamOutputFormatType], # (1)
ListTagsForResourceInputRequestTypeDef#
# ListTagsForResourceInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListTagsForResourceInputRequestTypeDef
def get_value() -> ListTagsForResourceInputRequestTypeDef:
return {
"ResourceARN": ...,
}
# ListTagsForResourceInputRequestTypeDef definition
class ListTagsForResourceInputRequestTypeDef(TypedDict):
ResourceARN: str,
TagTypeDef#
# TagTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import TagTypeDef
def get_value() -> TagTypeDef:
return {
"Key": ...,
"Value": ...,
}
# TagTypeDef definition
class TagTypeDef(TypedDict):
Key: str,
Value: str,
ManagedRuleStateTypeDef#
# ManagedRuleStateTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ManagedRuleStateTypeDef
def get_value() -> ManagedRuleStateTypeDef:
return {
"RuleName": ...,
"State": ...,
}
# ManagedRuleStateTypeDef definition
class ManagedRuleStateTypeDef(TypedDict):
RuleName: str,
State: str,
StatisticSetTypeDef#
# StatisticSetTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import StatisticSetTypeDef
def get_value() -> StatisticSetTypeDef:
return {
"SampleCount": ...,
"Sum": ...,
"Minimum": ...,
"Maximum": ...,
}
# StatisticSetTypeDef definition
class StatisticSetTypeDef(TypedDict):
SampleCount: float,
Sum: float,
Minimum: float,
Maximum: float,
MetricStreamStatisticsMetricTypeDef#
# MetricStreamStatisticsMetricTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricStreamStatisticsMetricTypeDef
def get_value() -> MetricStreamStatisticsMetricTypeDef:
return {
"Namespace": ...,
"MetricName": ...,
}
# MetricStreamStatisticsMetricTypeDef definition
class MetricStreamStatisticsMetricTypeDef(TypedDict):
Namespace: str,
MetricName: str,
PaginatorConfigTypeDef#
# PaginatorConfigTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PaginatorConfigTypeDef
def get_value() -> PaginatorConfigTypeDef:
return {
"MaxItems": ...,
}
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
PutDashboardInputRequestTypeDef#
# PutDashboardInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutDashboardInputRequestTypeDef
def get_value() -> PutDashboardInputRequestTypeDef:
return {
"DashboardName": ...,
"DashboardBody": ...,
}
# PutDashboardInputRequestTypeDef definition
class PutDashboardInputRequestTypeDef(TypedDict):
DashboardName: str,
DashboardBody: str,
PutMetricStreamOutputTypeDef#
# PutMetricStreamOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutMetricStreamOutputTypeDef
def get_value() -> PutMetricStreamOutputTypeDef:
return {
"Arn": ...,
"ResponseMetadata": ...,
}
# PutMetricStreamOutputTypeDef definition
class PutMetricStreamOutputTypeDef(TypedDict):
Arn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
"HostId": ...,
"HTTPStatusCode": ...,
"HTTPHeaders": ...,
"RetryAttempts": ...,
}
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
SetAlarmStateInputAlarmSetStateTypeDef#
# SetAlarmStateInputAlarmSetStateTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import SetAlarmStateInputAlarmSetStateTypeDef
def get_value() -> SetAlarmStateInputAlarmSetStateTypeDef:
return {
"StateValue": ...,
"StateReason": ...,
}
# SetAlarmStateInputAlarmSetStateTypeDef definition
class SetAlarmStateInputAlarmSetStateTypeDef(TypedDict):
StateValue: StateValueType, # (1)
StateReason: str,
StateReasonData: NotRequired[str],
- See StateValueType
SetAlarmStateInputRequestTypeDef#
# SetAlarmStateInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import SetAlarmStateInputRequestTypeDef
def get_value() -> SetAlarmStateInputRequestTypeDef:
return {
"AlarmName": ...,
"StateValue": ...,
"StateReason": ...,
}
# SetAlarmStateInputRequestTypeDef definition
class SetAlarmStateInputRequestTypeDef(TypedDict):
AlarmName: str,
StateValue: StateValueType, # (1)
StateReason: str,
StateReasonData: NotRequired[str],
- See StateValueType
StartMetricStreamsInputRequestTypeDef#
# StartMetricStreamsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import StartMetricStreamsInputRequestTypeDef
def get_value() -> StartMetricStreamsInputRequestTypeDef:
return {
"Names": ...,
}
# StartMetricStreamsInputRequestTypeDef definition
class StartMetricStreamsInputRequestTypeDef(TypedDict):
Names: Sequence[str],
StopMetricStreamsInputRequestTypeDef#
# StopMetricStreamsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import StopMetricStreamsInputRequestTypeDef
def get_value() -> StopMetricStreamsInputRequestTypeDef:
return {
"Names": ...,
}
# StopMetricStreamsInputRequestTypeDef definition
class StopMetricStreamsInputRequestTypeDef(TypedDict):
Names: Sequence[str],
UntagResourceInputRequestTypeDef#
# UntagResourceInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import UntagResourceInputRequestTypeDef
def get_value() -> UntagResourceInputRequestTypeDef:
return {
"ResourceARN": ...,
"TagKeys": ...,
}
# UntagResourceInputRequestTypeDef definition
class UntagResourceInputRequestTypeDef(TypedDict):
ResourceARN: str,
TagKeys: Sequence[str],
DescribeAlarmHistoryOutputTypeDef#
# DescribeAlarmHistoryOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmHistoryOutputTypeDef
def get_value() -> DescribeAlarmHistoryOutputTypeDef:
return {
"AlarmHistoryItems": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# DescribeAlarmHistoryOutputTypeDef definition
class DescribeAlarmHistoryOutputTypeDef(TypedDict):
AlarmHistoryItems: List[AlarmHistoryItemTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
AnomalyDetectorConfigurationTypeDef#
# AnomalyDetectorConfigurationTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import AnomalyDetectorConfigurationTypeDef
def get_value() -> AnomalyDetectorConfigurationTypeDef:
return {
"ExcludedTimeRanges": ...,
}
# AnomalyDetectorConfigurationTypeDef definition
class AnomalyDetectorConfigurationTypeDef(TypedDict):
ExcludedTimeRanges: NotRequired[List[RangeTypeDef]], # (1)
MetricTimezone: NotRequired[str],
- See RangeTypeDef
DescribeAlarmsForMetricInputRequestTypeDef#
# DescribeAlarmsForMetricInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmsForMetricInputRequestTypeDef
def get_value() -> DescribeAlarmsForMetricInputRequestTypeDef:
return {
"MetricName": ...,
"Namespace": ...,
}
# DescribeAlarmsForMetricInputRequestTypeDef definition
class DescribeAlarmsForMetricInputRequestTypeDef(TypedDict):
MetricName: str,
Namespace: str,
Statistic: NotRequired[StatisticType], # (1)
ExtendedStatistic: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (2)
Period: NotRequired[int],
Unit: NotRequired[StandardUnitType], # (3)
- See StatisticType
- See DimensionTypeDef
- See StandardUnitType
DescribeAnomalyDetectorsInputDescribeAnomalyDetectorsPaginateTypeDef#
# DescribeAnomalyDetectorsInputDescribeAnomalyDetectorsPaginateTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAnomalyDetectorsInputDescribeAnomalyDetectorsPaginateTypeDef
def get_value() -> DescribeAnomalyDetectorsInputDescribeAnomalyDetectorsPaginateTypeDef:
return {
"Namespace": ...,
}
# DescribeAnomalyDetectorsInputDescribeAnomalyDetectorsPaginateTypeDef definition
class DescribeAnomalyDetectorsInputDescribeAnomalyDetectorsPaginateTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
AnomalyDetectorTypes: NotRequired[Sequence[AnomalyDetectorTypeType]], # (2)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (3)
DescribeAnomalyDetectorsInputRequestTypeDef#
# DescribeAnomalyDetectorsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAnomalyDetectorsInputRequestTypeDef
def get_value() -> DescribeAnomalyDetectorsInputRequestTypeDef:
return {
"NextToken": ...,
}
# DescribeAnomalyDetectorsInputRequestTypeDef definition
class DescribeAnomalyDetectorsInputRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
AnomalyDetectorTypes: NotRequired[Sequence[AnomalyDetectorTypeType]], # (2)
GetMetricStatisticsInputMetricGetStatisticsTypeDef#
# GetMetricStatisticsInputMetricGetStatisticsTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricStatisticsInputMetricGetStatisticsTypeDef
def get_value() -> GetMetricStatisticsInputMetricGetStatisticsTypeDef:
return {
"StartTime": ...,
"EndTime": ...,
"Period": ...,
}
# GetMetricStatisticsInputMetricGetStatisticsTypeDef definition
class GetMetricStatisticsInputMetricGetStatisticsTypeDef(TypedDict):
StartTime: Union[datetime, str],
EndTime: Union[datetime, str],
Period: int,
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
Statistics: NotRequired[Sequence[StatisticType]], # (2)
ExtendedStatistics: NotRequired[Sequence[str]],
Unit: NotRequired[StandardUnitType], # (3)
- See DimensionTypeDef
- See StatisticType
- See StandardUnitType
GetMetricStatisticsInputRequestTypeDef#
# GetMetricStatisticsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricStatisticsInputRequestTypeDef
def get_value() -> GetMetricStatisticsInputRequestTypeDef:
return {
"Namespace": ...,
"MetricName": ...,
"StartTime": ...,
"EndTime": ...,
"Period": ...,
}
# GetMetricStatisticsInputRequestTypeDef definition
class GetMetricStatisticsInputRequestTypeDef(TypedDict):
Namespace: str,
MetricName: str,
StartTime: Union[datetime, str],
EndTime: Union[datetime, str],
Period: int,
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
Statistics: NotRequired[Sequence[StatisticType]], # (2)
ExtendedStatistics: NotRequired[Sequence[str]],
Unit: NotRequired[StandardUnitType], # (3)
- See DimensionTypeDef
- See StatisticType
- See StandardUnitType
MetricTypeDef#
# MetricTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricTypeDef
def get_value() -> MetricTypeDef:
return {
"Namespace": ...,
}
# MetricTypeDef definition
class MetricTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
- See DimensionTypeDef
SingleMetricAnomalyDetectorTypeDef#
# SingleMetricAnomalyDetectorTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import SingleMetricAnomalyDetectorTypeDef
def get_value() -> SingleMetricAnomalyDetectorTypeDef:
return {
"Namespace": ...,
}
# SingleMetricAnomalyDetectorTypeDef definition
class SingleMetricAnomalyDetectorTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
Stat: NotRequired[str],
- See DimensionTypeDef
ListDashboardsOutputTypeDef#
# ListDashboardsOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListDashboardsOutputTypeDef
def get_value() -> ListDashboardsOutputTypeDef:
return {
"DashboardEntries": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# ListDashboardsOutputTypeDef definition
class ListDashboardsOutputTypeDef(TypedDict):
DashboardEntries: List[DashboardEntryTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
PutDashboardOutputTypeDef#
# PutDashboardOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutDashboardOutputTypeDef
def get_value() -> PutDashboardOutputTypeDef:
return {
"DashboardValidationMessages": ...,
"ResponseMetadata": ...,
}
# PutDashboardOutputTypeDef definition
class PutDashboardOutputTypeDef(TypedDict):
DashboardValidationMessages: List[DashboardValidationMessageTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetMetricStatisticsOutputTypeDef#
# GetMetricStatisticsOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricStatisticsOutputTypeDef
def get_value() -> GetMetricStatisticsOutputTypeDef:
return {
"Label": ...,
"Datapoints": ...,
"ResponseMetadata": ...,
}
# GetMetricStatisticsOutputTypeDef definition
class GetMetricStatisticsOutputTypeDef(TypedDict):
Label: str,
Datapoints: List[DatapointTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DeleteInsightRulesOutputTypeDef#
# DeleteInsightRulesOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DeleteInsightRulesOutputTypeDef
def get_value() -> DeleteInsightRulesOutputTypeDef:
return {
"Failures": ...,
"ResponseMetadata": ...,
}
# DeleteInsightRulesOutputTypeDef definition
class DeleteInsightRulesOutputTypeDef(TypedDict):
Failures: List[PartialFailureTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DisableInsightRulesOutputTypeDef#
# DisableInsightRulesOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DisableInsightRulesOutputTypeDef
def get_value() -> DisableInsightRulesOutputTypeDef:
return {
"Failures": ...,
"ResponseMetadata": ...,
}
# DisableInsightRulesOutputTypeDef definition
class DisableInsightRulesOutputTypeDef(TypedDict):
Failures: List[PartialFailureTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
EnableInsightRulesOutputTypeDef#
# EnableInsightRulesOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import EnableInsightRulesOutputTypeDef
def get_value() -> EnableInsightRulesOutputTypeDef:
return {
"Failures": ...,
"ResponseMetadata": ...,
}
# EnableInsightRulesOutputTypeDef definition
class EnableInsightRulesOutputTypeDef(TypedDict):
Failures: List[PartialFailureTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
PutManagedInsightRulesOutputTypeDef#
# PutManagedInsightRulesOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutManagedInsightRulesOutputTypeDef
def get_value() -> PutManagedInsightRulesOutputTypeDef:
return {
"Failures": ...,
"ResponseMetadata": ...,
}
# PutManagedInsightRulesOutputTypeDef definition
class PutManagedInsightRulesOutputTypeDef(TypedDict):
Failures: List[PartialFailureTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeAlarmsInputAlarmExistsWaitTypeDef#
# DescribeAlarmsInputAlarmExistsWaitTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmsInputAlarmExistsWaitTypeDef
def get_value() -> DescribeAlarmsInputAlarmExistsWaitTypeDef:
return {
"AlarmNames": ...,
}
# DescribeAlarmsInputAlarmExistsWaitTypeDef definition
class DescribeAlarmsInputAlarmExistsWaitTypeDef(TypedDict):
AlarmNames: NotRequired[Sequence[str]],
AlarmNamePrefix: NotRequired[str],
AlarmTypes: NotRequired[Sequence[AlarmTypeType]], # (1)
ChildrenOfAlarmName: NotRequired[str],
ParentsOfAlarmName: NotRequired[str],
StateValue: NotRequired[StateValueType], # (2)
ActionPrefix: NotRequired[str],
MaxRecords: NotRequired[int],
NextToken: NotRequired[str],
WaiterConfig: NotRequired[WaiterConfigTypeDef], # (3)
- See AlarmTypeType
- See StateValueType
- See WaiterConfigTypeDef
DescribeAlarmsInputCompositeAlarmExistsWaitTypeDef#
# DescribeAlarmsInputCompositeAlarmExistsWaitTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmsInputCompositeAlarmExistsWaitTypeDef
def get_value() -> DescribeAlarmsInputCompositeAlarmExistsWaitTypeDef:
return {
"AlarmNames": ...,
}
# DescribeAlarmsInputCompositeAlarmExistsWaitTypeDef definition
class DescribeAlarmsInputCompositeAlarmExistsWaitTypeDef(TypedDict):
AlarmNames: NotRequired[Sequence[str]],
AlarmNamePrefix: NotRequired[str],
AlarmTypes: NotRequired[Sequence[AlarmTypeType]], # (1)
ChildrenOfAlarmName: NotRequired[str],
ParentsOfAlarmName: NotRequired[str],
StateValue: NotRequired[StateValueType], # (2)
ActionPrefix: NotRequired[str],
MaxRecords: NotRequired[int],
NextToken: NotRequired[str],
WaiterConfig: NotRequired[WaiterConfigTypeDef], # (3)
- See AlarmTypeType
- See StateValueType
- See WaiterConfigTypeDef
DescribeInsightRulesOutputTypeDef#
# DescribeInsightRulesOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeInsightRulesOutputTypeDef
def get_value() -> DescribeInsightRulesOutputTypeDef:
return {
"NextToken": ...,
"InsightRules": ...,
"ResponseMetadata": ...,
}
# DescribeInsightRulesOutputTypeDef definition
class DescribeInsightRulesOutputTypeDef(TypedDict):
NextToken: str,
InsightRules: List[InsightRuleTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListMetricsInputListMetricsPaginateTypeDef#
# ListMetricsInputListMetricsPaginateTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListMetricsInputListMetricsPaginateTypeDef
def get_value() -> ListMetricsInputListMetricsPaginateTypeDef:
return {
"Namespace": ...,
}
# ListMetricsInputListMetricsPaginateTypeDef definition
class ListMetricsInputListMetricsPaginateTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionFilterTypeDef]], # (1)
RecentlyActive: NotRequired[RecentlyActiveType], # (2)
IncludeLinkedAccounts: NotRequired[bool],
OwningAccount: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (3)
ListMetricsInputRequestTypeDef#
# ListMetricsInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListMetricsInputRequestTypeDef
def get_value() -> ListMetricsInputRequestTypeDef:
return {
"Namespace": ...,
}
# ListMetricsInputRequestTypeDef definition
class ListMetricsInputRequestTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionFilterTypeDef]], # (1)
NextToken: NotRequired[str],
RecentlyActive: NotRequired[RecentlyActiveType], # (2)
IncludeLinkedAccounts: NotRequired[bool],
OwningAccount: NotRequired[str],
MetricDataResultTypeDef#
# MetricDataResultTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricDataResultTypeDef
def get_value() -> MetricDataResultTypeDef:
return {
"Id": ...,
}
# MetricDataResultTypeDef definition
class MetricDataResultTypeDef(TypedDict):
Id: NotRequired[str],
Label: NotRequired[str],
Timestamps: NotRequired[List[datetime]],
Values: NotRequired[List[float]],
StatusCode: NotRequired[StatusCodeType], # (1)
Messages: NotRequired[List[MessageDataTypeDef]], # (2)
- See StatusCodeType
- See MessageDataTypeDef
InsightRuleContributorTypeDef#
# InsightRuleContributorTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import InsightRuleContributorTypeDef
def get_value() -> InsightRuleContributorTypeDef:
return {
"Keys": ...,
"ApproximateAggregateValue": ...,
"Datapoints": ...,
}
# InsightRuleContributorTypeDef definition
class InsightRuleContributorTypeDef(TypedDict):
Keys: List[str],
ApproximateAggregateValue: float,
Datapoints: List[InsightRuleContributorDatapointTypeDef], # (1)
ListMetricStreamsOutputTypeDef#
# ListMetricStreamsOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListMetricStreamsOutputTypeDef
def get_value() -> ListMetricStreamsOutputTypeDef:
return {
"NextToken": ...,
"Entries": ...,
"ResponseMetadata": ...,
}
# ListMetricStreamsOutputTypeDef definition
class ListMetricStreamsOutputTypeDef(TypedDict):
NextToken: str,
Entries: List[MetricStreamEntryTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListTagsForResourceOutputTypeDef#
# ListTagsForResourceOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListTagsForResourceOutputTypeDef
def get_value() -> ListTagsForResourceOutputTypeDef:
return {
"Tags": ...,
"ResponseMetadata": ...,
}
# ListTagsForResourceOutputTypeDef definition
class ListTagsForResourceOutputTypeDef(TypedDict):
Tags: List[TagTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See TagTypeDef
- See ResponseMetadataTypeDef
ManagedRuleTypeDef#
# ManagedRuleTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ManagedRuleTypeDef
def get_value() -> ManagedRuleTypeDef:
return {
"TemplateName": ...,
"ResourceARN": ...,
}
# ManagedRuleTypeDef definition
class ManagedRuleTypeDef(TypedDict):
TemplateName: str,
ResourceARN: str,
Tags: NotRequired[Sequence[TagTypeDef]], # (1)
- See TagTypeDef
PutCompositeAlarmInputRequestTypeDef#
# PutCompositeAlarmInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutCompositeAlarmInputRequestTypeDef
def get_value() -> PutCompositeAlarmInputRequestTypeDef:
return {
"AlarmName": ...,
"AlarmRule": ...,
}
# PutCompositeAlarmInputRequestTypeDef definition
class PutCompositeAlarmInputRequestTypeDef(TypedDict):
AlarmName: str,
AlarmRule: str,
ActionsEnabled: NotRequired[bool],
AlarmActions: NotRequired[Sequence[str]],
AlarmDescription: NotRequired[str],
InsufficientDataActions: NotRequired[Sequence[str]],
OKActions: NotRequired[Sequence[str]],
Tags: NotRequired[Sequence[TagTypeDef]], # (1)
ActionsSuppressor: NotRequired[str],
ActionsSuppressorWaitPeriod: NotRequired[int],
ActionsSuppressorExtensionPeriod: NotRequired[int],
- See TagTypeDef
PutInsightRuleInputRequestTypeDef#
# PutInsightRuleInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutInsightRuleInputRequestTypeDef
def get_value() -> PutInsightRuleInputRequestTypeDef:
return {
"RuleName": ...,
"RuleDefinition": ...,
}
# PutInsightRuleInputRequestTypeDef definition
class PutInsightRuleInputRequestTypeDef(TypedDict):
RuleName: str,
RuleDefinition: str,
RuleState: NotRequired[str],
Tags: NotRequired[Sequence[TagTypeDef]], # (1)
- See TagTypeDef
TagResourceInputRequestTypeDef#
# TagResourceInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import TagResourceInputRequestTypeDef
def get_value() -> TagResourceInputRequestTypeDef:
return {
"ResourceARN": ...,
"Tags": ...,
}
# TagResourceInputRequestTypeDef definition
class TagResourceInputRequestTypeDef(TypedDict):
ResourceARN: str,
Tags: Sequence[TagTypeDef], # (1)
- See TagTypeDef
ManagedRuleDescriptionTypeDef#
# ManagedRuleDescriptionTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ManagedRuleDescriptionTypeDef
def get_value() -> ManagedRuleDescriptionTypeDef:
return {
"TemplateName": ...,
}
# ManagedRuleDescriptionTypeDef definition
class ManagedRuleDescriptionTypeDef(TypedDict):
TemplateName: NotRequired[str],
ResourceARN: NotRequired[str],
RuleState: NotRequired[ManagedRuleStateTypeDef], # (1)
MetricDatumTypeDef#
# MetricDatumTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricDatumTypeDef
def get_value() -> MetricDatumTypeDef:
return {
"MetricName": ...,
}
# MetricDatumTypeDef definition
class MetricDatumTypeDef(TypedDict):
MetricName: str,
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
Timestamp: NotRequired[Union[datetime, str]],
Value: NotRequired[float],
StatisticValues: NotRequired[StatisticSetTypeDef], # (2)
Values: NotRequired[Sequence[float]],
Counts: NotRequired[Sequence[float]],
Unit: NotRequired[StandardUnitType], # (3)
StorageResolution: NotRequired[int],
- See DimensionTypeDef
- See StatisticSetTypeDef
- See StandardUnitType
MetricStreamStatisticsConfigurationTypeDef#
# MetricStreamStatisticsConfigurationTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricStreamStatisticsConfigurationTypeDef
def get_value() -> MetricStreamStatisticsConfigurationTypeDef:
return {
"IncludeMetrics": ...,
"AdditionalStatistics": ...,
}
# MetricStreamStatisticsConfigurationTypeDef definition
class MetricStreamStatisticsConfigurationTypeDef(TypedDict):
IncludeMetrics: List[MetricStreamStatisticsMetricTypeDef], # (1)
AdditionalStatistics: List[str],
ListMetricsOutputTypeDef#
# ListMetricsOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListMetricsOutputTypeDef
def get_value() -> ListMetricsOutputTypeDef:
return {
"Metrics": ...,
"NextToken": ...,
"OwningAccounts": ...,
"ResponseMetadata": ...,
}
# ListMetricsOutputTypeDef definition
class ListMetricsOutputTypeDef(TypedDict):
Metrics: List[MetricTypeDef], # (1)
NextToken: str,
OwningAccounts: List[str],
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See MetricTypeDef
- See ResponseMetadataTypeDef
MetricStatTypeDef#
# MetricStatTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricStatTypeDef
def get_value() -> MetricStatTypeDef:
return {
"Metric": ...,
"Period": ...,
"Stat": ...,
}
# MetricStatTypeDef definition
class MetricStatTypeDef(TypedDict):
Metric: MetricTypeDef, # (1)
Period: int,
Stat: str,
Unit: NotRequired[StandardUnitType], # (2)
- See MetricTypeDef
- See StandardUnitType
GetMetricDataOutputTypeDef#
# GetMetricDataOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricDataOutputTypeDef
def get_value() -> GetMetricDataOutputTypeDef:
return {
"MetricDataResults": ...,
"NextToken": ...,
"Messages": ...,
"ResponseMetadata": ...,
}
# GetMetricDataOutputTypeDef definition
class GetMetricDataOutputTypeDef(TypedDict):
MetricDataResults: List[MetricDataResultTypeDef], # (1)
NextToken: str,
Messages: List[MessageDataTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
GetInsightRuleReportOutputTypeDef#
# GetInsightRuleReportOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetInsightRuleReportOutputTypeDef
def get_value() -> GetInsightRuleReportOutputTypeDef:
return {
"KeyLabels": ...,
"AggregationStatistic": ...,
"AggregateValue": ...,
"ApproximateUniqueCount": ...,
"Contributors": ...,
"MetricDatapoints": ...,
"ResponseMetadata": ...,
}
# GetInsightRuleReportOutputTypeDef definition
class GetInsightRuleReportOutputTypeDef(TypedDict):
KeyLabels: List[str],
AggregationStatistic: str,
AggregateValue: float,
ApproximateUniqueCount: int,
Contributors: List[InsightRuleContributorTypeDef], # (1)
MetricDatapoints: List[InsightRuleMetricDatapointTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
PutManagedInsightRulesInputRequestTypeDef#
# PutManagedInsightRulesInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutManagedInsightRulesInputRequestTypeDef
def get_value() -> PutManagedInsightRulesInputRequestTypeDef:
return {
"ManagedRules": ...,
}
# PutManagedInsightRulesInputRequestTypeDef definition
class PutManagedInsightRulesInputRequestTypeDef(TypedDict):
ManagedRules: Sequence[ManagedRuleTypeDef], # (1)
ListManagedInsightRulesOutputTypeDef#
# ListManagedInsightRulesOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import ListManagedInsightRulesOutputTypeDef
def get_value() -> ListManagedInsightRulesOutputTypeDef:
return {
"ManagedRules": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# ListManagedInsightRulesOutputTypeDef definition
class ListManagedInsightRulesOutputTypeDef(TypedDict):
ManagedRules: List[ManagedRuleDescriptionTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
PutMetricDataInputRequestTypeDef#
# PutMetricDataInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutMetricDataInputRequestTypeDef
def get_value() -> PutMetricDataInputRequestTypeDef:
return {
"Namespace": ...,
"MetricData": ...,
}
# PutMetricDataInputRequestTypeDef definition
class PutMetricDataInputRequestTypeDef(TypedDict):
Namespace: str,
MetricData: Sequence[MetricDatumTypeDef], # (1)
GetMetricStreamOutputTypeDef#
# GetMetricStreamOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricStreamOutputTypeDef
def get_value() -> GetMetricStreamOutputTypeDef:
return {
"Arn": ...,
"Name": ...,
"IncludeFilters": ...,
"ExcludeFilters": ...,
"FirehoseArn": ...,
"RoleArn": ...,
"State": ...,
"CreationDate": ...,
"LastUpdateDate": ...,
"OutputFormat": ...,
"StatisticsConfigurations": ...,
"IncludeLinkedAccountsMetrics": ...,
"ResponseMetadata": ...,
}
# GetMetricStreamOutputTypeDef definition
class GetMetricStreamOutputTypeDef(TypedDict):
Arn: str,
Name: str,
IncludeFilters: List[MetricStreamFilterTypeDef], # (1)
ExcludeFilters: List[MetricStreamFilterTypeDef], # (1)
FirehoseArn: str,
RoleArn: str,
State: str,
CreationDate: datetime,
LastUpdateDate: datetime,
OutputFormat: MetricStreamOutputFormatType, # (3)
StatisticsConfigurations: List[MetricStreamStatisticsConfigurationTypeDef], # (4)
IncludeLinkedAccountsMetrics: bool,
ResponseMetadata: ResponseMetadataTypeDef, # (5)
- See MetricStreamFilterTypeDef
- See MetricStreamFilterTypeDef
- See MetricStreamOutputFormatType
- See MetricStreamStatisticsConfigurationTypeDef
- See ResponseMetadataTypeDef
PutMetricStreamInputRequestTypeDef#
# PutMetricStreamInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutMetricStreamInputRequestTypeDef
def get_value() -> PutMetricStreamInputRequestTypeDef:
return {
"Name": ...,
"FirehoseArn": ...,
"RoleArn": ...,
"OutputFormat": ...,
}
# PutMetricStreamInputRequestTypeDef definition
class PutMetricStreamInputRequestTypeDef(TypedDict):
Name: str,
FirehoseArn: str,
RoleArn: str,
OutputFormat: MetricStreamOutputFormatType, # (1)
IncludeFilters: NotRequired[Sequence[MetricStreamFilterTypeDef]], # (2)
ExcludeFilters: NotRequired[Sequence[MetricStreamFilterTypeDef]], # (2)
Tags: NotRequired[Sequence[TagTypeDef]], # (4)
StatisticsConfigurations: NotRequired[Sequence[MetricStreamStatisticsConfigurationTypeDef]], # (5)
IncludeLinkedAccountsMetrics: NotRequired[bool],
- See MetricStreamOutputFormatType
- See MetricStreamFilterTypeDef
- See MetricStreamFilterTypeDef
- See TagTypeDef
- See MetricStreamStatisticsConfigurationTypeDef
MetricDataQueryTypeDef#
# MetricDataQueryTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricDataQueryTypeDef
def get_value() -> MetricDataQueryTypeDef:
return {
"Id": ...,
}
# MetricDataQueryTypeDef definition
class MetricDataQueryTypeDef(TypedDict):
Id: str,
MetricStat: NotRequired[MetricStatTypeDef], # (1)
Expression: NotRequired[str],
Label: NotRequired[str],
ReturnData: NotRequired[bool],
Period: NotRequired[int],
AccountId: NotRequired[str],
GetMetricDataInputGetMetricDataPaginateTypeDef#
# GetMetricDataInputGetMetricDataPaginateTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricDataInputGetMetricDataPaginateTypeDef
def get_value() -> GetMetricDataInputGetMetricDataPaginateTypeDef:
return {
"MetricDataQueries": ...,
"StartTime": ...,
"EndTime": ...,
}
# GetMetricDataInputGetMetricDataPaginateTypeDef definition
class GetMetricDataInputGetMetricDataPaginateTypeDef(TypedDict):
MetricDataQueries: Sequence[MetricDataQueryTypeDef], # (1)
StartTime: Union[datetime, str],
EndTime: Union[datetime, str],
ScanBy: NotRequired[ScanByType], # (2)
LabelOptions: NotRequired[LabelOptionsTypeDef], # (3)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (4)
- See MetricDataQueryTypeDef
- See ScanByType
- See LabelOptionsTypeDef
- See PaginatorConfigTypeDef
GetMetricDataInputRequestTypeDef#
# GetMetricDataInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import GetMetricDataInputRequestTypeDef
def get_value() -> GetMetricDataInputRequestTypeDef:
return {
"MetricDataQueries": ...,
"StartTime": ...,
"EndTime": ...,
}
# GetMetricDataInputRequestTypeDef definition
class GetMetricDataInputRequestTypeDef(TypedDict):
MetricDataQueries: Sequence[MetricDataQueryTypeDef], # (1)
StartTime: Union[datetime, str],
EndTime: Union[datetime, str],
NextToken: NotRequired[str],
ScanBy: NotRequired[ScanByType], # (2)
MaxDatapoints: NotRequired[int],
LabelOptions: NotRequired[LabelOptionsTypeDef], # (3)
- See MetricDataQueryTypeDef
- See ScanByType
- See LabelOptionsTypeDef
MetricAlarmTypeDef#
# MetricAlarmTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricAlarmTypeDef
def get_value() -> MetricAlarmTypeDef:
return {
"AlarmName": ...,
}
# MetricAlarmTypeDef definition
class MetricAlarmTypeDef(TypedDict):
AlarmName: NotRequired[str],
AlarmArn: NotRequired[str],
AlarmDescription: NotRequired[str],
AlarmConfigurationUpdatedTimestamp: NotRequired[datetime],
ActionsEnabled: NotRequired[bool],
OKActions: NotRequired[List[str]],
AlarmActions: NotRequired[List[str]],
InsufficientDataActions: NotRequired[List[str]],
StateValue: NotRequired[StateValueType], # (1)
StateReason: NotRequired[str],
StateReasonData: NotRequired[str],
StateUpdatedTimestamp: NotRequired[datetime],
MetricName: NotRequired[str],
Namespace: NotRequired[str],
Statistic: NotRequired[StatisticType], # (2)
ExtendedStatistic: NotRequired[str],
Dimensions: NotRequired[List[DimensionTypeDef]], # (3)
Period: NotRequired[int],
Unit: NotRequired[StandardUnitType], # (4)
EvaluationPeriods: NotRequired[int],
DatapointsToAlarm: NotRequired[int],
Threshold: NotRequired[float],
ComparisonOperator: NotRequired[ComparisonOperatorType], # (5)
TreatMissingData: NotRequired[str],
EvaluateLowSampleCountPercentile: NotRequired[str],
Metrics: NotRequired[List[MetricDataQueryTypeDef]], # (6)
ThresholdMetricId: NotRequired[str],
EvaluationState: NotRequired[EvaluationStateType], # (7)
StateTransitionedTimestamp: NotRequired[datetime],
- See StateValueType
- See StatisticType
- See DimensionTypeDef
- See StandardUnitType
- See ComparisonOperatorType
- See MetricDataQueryTypeDef
- See EvaluationStateType
MetricMathAnomalyDetectorTypeDef#
# MetricMathAnomalyDetectorTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import MetricMathAnomalyDetectorTypeDef
def get_value() -> MetricMathAnomalyDetectorTypeDef:
return {
"MetricDataQueries": ...,
}
# MetricMathAnomalyDetectorTypeDef definition
class MetricMathAnomalyDetectorTypeDef(TypedDict):
MetricDataQueries: NotRequired[Sequence[MetricDataQueryTypeDef]], # (1)
PutMetricAlarmInputMetricPutAlarmTypeDef#
# PutMetricAlarmInputMetricPutAlarmTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutMetricAlarmInputMetricPutAlarmTypeDef
def get_value() -> PutMetricAlarmInputMetricPutAlarmTypeDef:
return {
"AlarmName": ...,
"EvaluationPeriods": ...,
"ComparisonOperator": ...,
}
# PutMetricAlarmInputMetricPutAlarmTypeDef definition
class PutMetricAlarmInputMetricPutAlarmTypeDef(TypedDict):
AlarmName: str,
EvaluationPeriods: int,
ComparisonOperator: ComparisonOperatorType, # (1)
AlarmDescription: NotRequired[str],
ActionsEnabled: NotRequired[bool],
OKActions: NotRequired[Sequence[str]],
AlarmActions: NotRequired[Sequence[str]],
InsufficientDataActions: NotRequired[Sequence[str]],
Statistic: NotRequired[StatisticType], # (2)
ExtendedStatistic: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (3)
Period: NotRequired[int],
Unit: NotRequired[StandardUnitType], # (4)
DatapointsToAlarm: NotRequired[int],
Threshold: NotRequired[float],
TreatMissingData: NotRequired[str],
EvaluateLowSampleCountPercentile: NotRequired[str],
Metrics: NotRequired[Sequence[MetricDataQueryTypeDef]], # (5)
Tags: NotRequired[Sequence[TagTypeDef]], # (6)
ThresholdMetricId: NotRequired[str],
- See ComparisonOperatorType
- See StatisticType
- See DimensionTypeDef
- See StandardUnitType
- See MetricDataQueryTypeDef
- See TagTypeDef
PutMetricAlarmInputRequestTypeDef#
# PutMetricAlarmInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutMetricAlarmInputRequestTypeDef
def get_value() -> PutMetricAlarmInputRequestTypeDef:
return {
"AlarmName": ...,
"EvaluationPeriods": ...,
"ComparisonOperator": ...,
}
# PutMetricAlarmInputRequestTypeDef definition
class PutMetricAlarmInputRequestTypeDef(TypedDict):
AlarmName: str,
EvaluationPeriods: int,
ComparisonOperator: ComparisonOperatorType, # (1)
AlarmDescription: NotRequired[str],
ActionsEnabled: NotRequired[bool],
OKActions: NotRequired[Sequence[str]],
AlarmActions: NotRequired[Sequence[str]],
InsufficientDataActions: NotRequired[Sequence[str]],
MetricName: NotRequired[str],
Namespace: NotRequired[str],
Statistic: NotRequired[StatisticType], # (2)
ExtendedStatistic: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (3)
Period: NotRequired[int],
Unit: NotRequired[StandardUnitType], # (4)
DatapointsToAlarm: NotRequired[int],
Threshold: NotRequired[float],
TreatMissingData: NotRequired[str],
EvaluateLowSampleCountPercentile: NotRequired[str],
Metrics: NotRequired[Sequence[MetricDataQueryTypeDef]], # (5)
Tags: NotRequired[Sequence[TagTypeDef]], # (6)
ThresholdMetricId: NotRequired[str],
- See ComparisonOperatorType
- See StatisticType
- See DimensionTypeDef
- See StandardUnitType
- See MetricDataQueryTypeDef
- See TagTypeDef
DescribeAlarmsForMetricOutputTypeDef#
# DescribeAlarmsForMetricOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmsForMetricOutputTypeDef
def get_value() -> DescribeAlarmsForMetricOutputTypeDef:
return {
"MetricAlarms": ...,
"ResponseMetadata": ...,
}
# DescribeAlarmsForMetricOutputTypeDef definition
class DescribeAlarmsForMetricOutputTypeDef(TypedDict):
MetricAlarms: List[MetricAlarmTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeAlarmsOutputTypeDef#
# DescribeAlarmsOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAlarmsOutputTypeDef
def get_value() -> DescribeAlarmsOutputTypeDef:
return {
"CompositeAlarms": ...,
"MetricAlarms": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# DescribeAlarmsOutputTypeDef definition
class DescribeAlarmsOutputTypeDef(TypedDict):
CompositeAlarms: List[CompositeAlarmTypeDef], # (1)
MetricAlarms: List[MetricAlarmTypeDef], # (2)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
AnomalyDetectorTypeDef#
# AnomalyDetectorTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import AnomalyDetectorTypeDef
def get_value() -> AnomalyDetectorTypeDef:
return {
"Namespace": ...,
}
# AnomalyDetectorTypeDef definition
class AnomalyDetectorTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[List[DimensionTypeDef]], # (1)
Stat: NotRequired[str],
Configuration: NotRequired[AnomalyDetectorConfigurationTypeDef], # (2)
StateValue: NotRequired[AnomalyDetectorStateValueType], # (3)
SingleMetricAnomalyDetector: NotRequired[SingleMetricAnomalyDetectorTypeDef], # (4)
MetricMathAnomalyDetector: NotRequired[MetricMathAnomalyDetectorTypeDef], # (5)
- See DimensionTypeDef
- See AnomalyDetectorConfigurationTypeDef
- See AnomalyDetectorStateValueType
- See SingleMetricAnomalyDetectorTypeDef
- See MetricMathAnomalyDetectorTypeDef
DeleteAnomalyDetectorInputRequestTypeDef#
# DeleteAnomalyDetectorInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DeleteAnomalyDetectorInputRequestTypeDef
def get_value() -> DeleteAnomalyDetectorInputRequestTypeDef:
return {
"Namespace": ...,
}
# DeleteAnomalyDetectorInputRequestTypeDef definition
class DeleteAnomalyDetectorInputRequestTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
Stat: NotRequired[str],
SingleMetricAnomalyDetector: NotRequired[SingleMetricAnomalyDetectorTypeDef], # (2)
MetricMathAnomalyDetector: NotRequired[MetricMathAnomalyDetectorTypeDef], # (3)
PutAnomalyDetectorInputRequestTypeDef#
# PutAnomalyDetectorInputRequestTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import PutAnomalyDetectorInputRequestTypeDef
def get_value() -> PutAnomalyDetectorInputRequestTypeDef:
return {
"Namespace": ...,
}
# PutAnomalyDetectorInputRequestTypeDef definition
class PutAnomalyDetectorInputRequestTypeDef(TypedDict):
Namespace: NotRequired[str],
MetricName: NotRequired[str],
Dimensions: NotRequired[Sequence[DimensionTypeDef]], # (1)
Stat: NotRequired[str],
Configuration: NotRequired[AnomalyDetectorConfigurationTypeDef], # (2)
SingleMetricAnomalyDetector: NotRequired[SingleMetricAnomalyDetectorTypeDef], # (3)
MetricMathAnomalyDetector: NotRequired[MetricMathAnomalyDetectorTypeDef], # (4)
- See DimensionTypeDef
- See AnomalyDetectorConfigurationTypeDef
- See SingleMetricAnomalyDetectorTypeDef
- See MetricMathAnomalyDetectorTypeDef
DescribeAnomalyDetectorsOutputTypeDef#
# DescribeAnomalyDetectorsOutputTypeDef usage example
from mypy_boto3_cloudwatch.type_defs import DescribeAnomalyDetectorsOutputTypeDef
def get_value() -> DescribeAnomalyDetectorsOutputTypeDef:
return {
"AnomalyDetectors": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# DescribeAnomalyDetectorsOutputTypeDef definition
class DescribeAnomalyDetectorsOutputTypeDef(TypedDict):
AnomalyDetectors: List[AnomalyDetectorTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)