Type definitions#
Index > CloudWatchRUM > Type definitions
Auto-generated documentation for CloudWatchRUM type annotations stubs module mypy-boto3-rum.
TimestampTypeDef#
# TimestampTypeDef definition
TimestampTypeDef = Union[
datetime,
str,
]
MetricDefinitionRequestUnionTypeDef#
# MetricDefinitionRequestUnionTypeDef definition
MetricDefinitionRequestUnionTypeDef = Union[
MetricDefinitionRequestTypeDef, # (1)
MetricDefinitionRequestOutputTypeDef, # (2)
]
AppMonitorConfigurationOutputTypeDef#
# AppMonitorConfigurationOutputTypeDef definition
class AppMonitorConfigurationOutputTypeDef(TypedDict):
AllowCookies: NotRequired[bool],
EnableXRay: NotRequired[bool],
ExcludedPages: NotRequired[List[str]],
FavoritePages: NotRequired[List[str]],
GuestRoleArn: NotRequired[str],
IdentityPoolId: NotRequired[str],
IncludedPages: NotRequired[List[str]],
SessionSampleRate: NotRequired[float],
Telemetries: NotRequired[List[TelemetryType]], # (1)
- See TelemetryType
AppMonitorConfigurationTypeDef#
# AppMonitorConfigurationTypeDef definition
class AppMonitorConfigurationTypeDef(TypedDict):
AllowCookies: NotRequired[bool],
EnableXRay: NotRequired[bool],
ExcludedPages: NotRequired[Sequence[str]],
FavoritePages: NotRequired[Sequence[str]],
GuestRoleArn: NotRequired[str],
IdentityPoolId: NotRequired[str],
IncludedPages: NotRequired[Sequence[str]],
SessionSampleRate: NotRequired[float],
Telemetries: NotRequired[Sequence[TelemetryType]], # (1)
- See TelemetryType
AppMonitorDetailsTypeDef#
# AppMonitorDetailsTypeDef definition
class AppMonitorDetailsTypeDef(TypedDict):
id: NotRequired[str],
name: NotRequired[str],
version: NotRequired[str],
AppMonitorSummaryTypeDef#
# AppMonitorSummaryTypeDef definition
class AppMonitorSummaryTypeDef(TypedDict):
Created: NotRequired[str],
Id: NotRequired[str],
LastModified: NotRequired[str],
Name: NotRequired[str],
State: NotRequired[StateEnumType], # (1)
- See StateEnumType
CustomEventsTypeDef#
# CustomEventsTypeDef definition
class CustomEventsTypeDef(TypedDict):
Status: NotRequired[CustomEventsStatusType], # (1)
MetricDefinitionRequestOutputTypeDef#
# MetricDefinitionRequestOutputTypeDef definition
class MetricDefinitionRequestOutputTypeDef(TypedDict):
Name: str,
DimensionKeys: NotRequired[Dict[str, str]],
EventPattern: NotRequired[str],
Namespace: NotRequired[str],
UnitLabel: NotRequired[str],
ValueKey: NotRequired[str],
MetricDefinitionTypeDef#
# MetricDefinitionTypeDef definition
class MetricDefinitionTypeDef(TypedDict):
MetricDefinitionId: str,
Name: str,
DimensionKeys: NotRequired[Dict[str, str]],
EventPattern: NotRequired[str],
Namespace: NotRequired[str],
UnitLabel: NotRequired[str],
ValueKey: NotRequired[str],
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
BatchDeleteRumMetricDefinitionsErrorTypeDef#
# BatchDeleteRumMetricDefinitionsErrorTypeDef definition
class BatchDeleteRumMetricDefinitionsErrorTypeDef(TypedDict):
ErrorCode: str,
ErrorMessage: str,
MetricDefinitionId: str,
BatchDeleteRumMetricDefinitionsRequestRequestTypeDef#
# BatchDeleteRumMetricDefinitionsRequestRequestTypeDef definition
class BatchDeleteRumMetricDefinitionsRequestRequestTypeDef(TypedDict):
AppMonitorName: str,
Destination: MetricDestinationType, # (1)
MetricDefinitionIds: Sequence[str],
DestinationArn: NotRequired[str],
PaginatorConfigTypeDef#
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
BatchGetRumMetricDefinitionsRequestRequestTypeDef#
# BatchGetRumMetricDefinitionsRequestRequestTypeDef definition
class BatchGetRumMetricDefinitionsRequestRequestTypeDef(TypedDict):
AppMonitorName: str,
Destination: MetricDestinationType, # (1)
DestinationArn: NotRequired[str],
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
CwLogTypeDef#
# CwLogTypeDef definition
class CwLogTypeDef(TypedDict):
CwLogEnabled: NotRequired[bool],
CwLogGroup: NotRequired[str],
DeleteAppMonitorRequestRequestTypeDef#
# DeleteAppMonitorRequestRequestTypeDef definition
class DeleteAppMonitorRequestRequestTypeDef(TypedDict):
Name: str,
DeleteRumMetricsDestinationRequestRequestTypeDef#
# DeleteRumMetricsDestinationRequestRequestTypeDef definition
class DeleteRumMetricsDestinationRequestRequestTypeDef(TypedDict):
AppMonitorName: str,
Destination: MetricDestinationType, # (1)
DestinationArn: NotRequired[str],
QueryFilterTypeDef#
# QueryFilterTypeDef definition
class QueryFilterTypeDef(TypedDict):
Name: NotRequired[str],
Values: NotRequired[Sequence[str]],
TimeRangeTypeDef#
# TimeRangeTypeDef definition
class TimeRangeTypeDef(TypedDict):
After: int,
Before: NotRequired[int],
GetAppMonitorRequestRequestTypeDef#
# GetAppMonitorRequestRequestTypeDef definition
class GetAppMonitorRequestRequestTypeDef(TypedDict):
Name: str,
ListAppMonitorsRequestRequestTypeDef#
# ListAppMonitorsRequestRequestTypeDef definition
class ListAppMonitorsRequestRequestTypeDef(TypedDict):
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
ListRumMetricsDestinationsRequestRequestTypeDef#
# ListRumMetricsDestinationsRequestRequestTypeDef definition
class ListRumMetricsDestinationsRequestRequestTypeDef(TypedDict):
AppMonitorName: str,
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
MetricDestinationSummaryTypeDef#
# MetricDestinationSummaryTypeDef definition
class MetricDestinationSummaryTypeDef(TypedDict):
Destination: NotRequired[MetricDestinationType], # (1)
DestinationArn: NotRequired[str],
IamRoleArn: NotRequired[str],
ListTagsForResourceRequestRequestTypeDef#
# ListTagsForResourceRequestRequestTypeDef definition
class ListTagsForResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
MetricDefinitionRequestTypeDef#
# MetricDefinitionRequestTypeDef definition
class MetricDefinitionRequestTypeDef(TypedDict):
Name: str,
DimensionKeys: NotRequired[Mapping[str, str]],
EventPattern: NotRequired[str],
Namespace: NotRequired[str],
UnitLabel: NotRequired[str],
ValueKey: NotRequired[str],
UserDetailsTypeDef#
# UserDetailsTypeDef definition
class UserDetailsTypeDef(TypedDict):
sessionId: NotRequired[str],
userId: NotRequired[str],
PutRumMetricsDestinationRequestRequestTypeDef#
# PutRumMetricsDestinationRequestRequestTypeDef definition
class PutRumMetricsDestinationRequestRequestTypeDef(TypedDict):
AppMonitorName: str,
Destination: MetricDestinationType, # (1)
DestinationArn: NotRequired[str],
IamRoleArn: NotRequired[str],
TagResourceRequestRequestTypeDef#
# TagResourceRequestRequestTypeDef definition
class TagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
Tags: Mapping[str, str],
UntagResourceRequestRequestTypeDef#
# UntagResourceRequestRequestTypeDef definition
class UntagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
TagKeys: Sequence[str],
CreateAppMonitorRequestRequestTypeDef#
# CreateAppMonitorRequestRequestTypeDef definition
class CreateAppMonitorRequestRequestTypeDef(TypedDict):
Domain: str,
Name: str,
AppMonitorConfiguration: NotRequired[AppMonitorConfigurationTypeDef], # (1)
CustomEvents: NotRequired[CustomEventsTypeDef], # (2)
CwLogEnabled: NotRequired[bool],
Tags: NotRequired[Mapping[str, str]],
UpdateAppMonitorRequestRequestTypeDef#
# UpdateAppMonitorRequestRequestTypeDef definition
class UpdateAppMonitorRequestRequestTypeDef(TypedDict):
Name: str,
AppMonitorConfiguration: NotRequired[AppMonitorConfigurationTypeDef], # (1)
CustomEvents: NotRequired[CustomEventsTypeDef], # (2)
CwLogEnabled: NotRequired[bool],
Domain: NotRequired[str],
BatchCreateRumMetricDefinitionsErrorTypeDef#
# BatchCreateRumMetricDefinitionsErrorTypeDef definition
class BatchCreateRumMetricDefinitionsErrorTypeDef(TypedDict):
ErrorCode: str,
ErrorMessage: str,
MetricDefinition: MetricDefinitionRequestOutputTypeDef, # (1)
BatchGetRumMetricDefinitionsResponseTypeDef#
# BatchGetRumMetricDefinitionsResponseTypeDef definition
class BatchGetRumMetricDefinitionsResponseTypeDef(TypedDict):
MetricDefinitions: List[MetricDefinitionTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
CreateAppMonitorResponseTypeDef#
# CreateAppMonitorResponseTypeDef definition
class CreateAppMonitorResponseTypeDef(TypedDict):
Id: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetAppMonitorDataResponseTypeDef#
# GetAppMonitorDataResponseTypeDef definition
class GetAppMonitorDataResponseTypeDef(TypedDict):
Events: List[str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
NextToken: NotRequired[str],
ListAppMonitorsResponseTypeDef#
# ListAppMonitorsResponseTypeDef definition
class ListAppMonitorsResponseTypeDef(TypedDict):
AppMonitorSummaries: List[AppMonitorSummaryTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
ListTagsForResourceResponseTypeDef#
# ListTagsForResourceResponseTypeDef definition
class ListTagsForResourceResponseTypeDef(TypedDict):
ResourceArn: str,
Tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
BatchDeleteRumMetricDefinitionsResponseTypeDef#
# BatchDeleteRumMetricDefinitionsResponseTypeDef definition
class BatchDeleteRumMetricDefinitionsResponseTypeDef(TypedDict):
Errors: List[BatchDeleteRumMetricDefinitionsErrorTypeDef], # (1)
MetricDefinitionIds: List[str],
ResponseMetadata: ResponseMetadataTypeDef, # (2)
BatchGetRumMetricDefinitionsRequestBatchGetRumMetricDefinitionsPaginateTypeDef#
# BatchGetRumMetricDefinitionsRequestBatchGetRumMetricDefinitionsPaginateTypeDef definition
class BatchGetRumMetricDefinitionsRequestBatchGetRumMetricDefinitionsPaginateTypeDef(TypedDict):
AppMonitorName: str,
Destination: MetricDestinationType, # (1)
DestinationArn: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
ListAppMonitorsRequestListAppMonitorsPaginateTypeDef#
# ListAppMonitorsRequestListAppMonitorsPaginateTypeDef definition
class ListAppMonitorsRequestListAppMonitorsPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListRumMetricsDestinationsRequestListRumMetricsDestinationsPaginateTypeDef#
# ListRumMetricsDestinationsRequestListRumMetricsDestinationsPaginateTypeDef definition
class ListRumMetricsDestinationsRequestListRumMetricsDestinationsPaginateTypeDef(TypedDict):
AppMonitorName: str,
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
DataStorageTypeDef#
# DataStorageTypeDef definition
class DataStorageTypeDef(TypedDict):
CwLog: NotRequired[CwLogTypeDef], # (1)
- See CwLogTypeDef
GetAppMonitorDataRequestGetAppMonitorDataPaginateTypeDef#
# GetAppMonitorDataRequestGetAppMonitorDataPaginateTypeDef definition
class GetAppMonitorDataRequestGetAppMonitorDataPaginateTypeDef(TypedDict):
Name: str,
TimeRange: TimeRangeTypeDef, # (1)
Filters: NotRequired[Sequence[QueryFilterTypeDef]], # (2)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (3)
- See TimeRangeTypeDef
- See QueryFilterTypeDef
- See PaginatorConfigTypeDef
GetAppMonitorDataRequestRequestTypeDef#
# GetAppMonitorDataRequestRequestTypeDef definition
class GetAppMonitorDataRequestRequestTypeDef(TypedDict):
Name: str,
TimeRange: TimeRangeTypeDef, # (1)
Filters: NotRequired[Sequence[QueryFilterTypeDef]], # (2)
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
- See TimeRangeTypeDef
- See QueryFilterTypeDef
ListRumMetricsDestinationsResponseTypeDef#
# ListRumMetricsDestinationsResponseTypeDef definition
class ListRumMetricsDestinationsResponseTypeDef(TypedDict):
Destinations: List[MetricDestinationSummaryTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
UpdateRumMetricDefinitionRequestRequestTypeDef#
# UpdateRumMetricDefinitionRequestRequestTypeDef definition
class UpdateRumMetricDefinitionRequestRequestTypeDef(TypedDict):
AppMonitorName: str,
Destination: MetricDestinationType, # (1)
MetricDefinition: MetricDefinitionRequestTypeDef, # (2)
MetricDefinitionId: str,
DestinationArn: NotRequired[str],
RumEventTypeDef#
# RumEventTypeDef definition
class RumEventTypeDef(TypedDict):
details: str,
id: str,
timestamp: TimestampTypeDef,
type: str,
metadata: NotRequired[str],
BatchCreateRumMetricDefinitionsResponseTypeDef#
# BatchCreateRumMetricDefinitionsResponseTypeDef definition
class BatchCreateRumMetricDefinitionsResponseTypeDef(TypedDict):
Errors: List[BatchCreateRumMetricDefinitionsErrorTypeDef], # (1)
MetricDefinitions: List[MetricDefinitionTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
- See BatchCreateRumMetricDefinitionsErrorTypeDef
- See MetricDefinitionTypeDef
- See ResponseMetadataTypeDef
AppMonitorTypeDef#
# AppMonitorTypeDef definition
class AppMonitorTypeDef(TypedDict):
AppMonitorConfiguration: NotRequired[AppMonitorConfigurationOutputTypeDef], # (1)
Created: NotRequired[str],
CustomEvents: NotRequired[CustomEventsTypeDef], # (2)
DataStorage: NotRequired[DataStorageTypeDef], # (3)
Domain: NotRequired[str],
Id: NotRequired[str],
LastModified: NotRequired[str],
Name: NotRequired[str],
State: NotRequired[StateEnumType], # (4)
Tags: NotRequired[Dict[str, str]],
- See AppMonitorConfigurationOutputTypeDef
- See CustomEventsTypeDef
- See DataStorageTypeDef
- See StateEnumType
BatchCreateRumMetricDefinitionsRequestRequestTypeDef#
# BatchCreateRumMetricDefinitionsRequestRequestTypeDef definition
class BatchCreateRumMetricDefinitionsRequestRequestTypeDef(TypedDict):
AppMonitorName: str,
Destination: MetricDestinationType, # (1)
MetricDefinitions: Sequence[MetricDefinitionRequestUnionTypeDef], # (2)
DestinationArn: NotRequired[str],
PutRumEventsRequestRequestTypeDef#
# PutRumEventsRequestRequestTypeDef definition
class PutRumEventsRequestRequestTypeDef(TypedDict):
AppMonitorDetails: AppMonitorDetailsTypeDef, # (1)
BatchId: str,
Id: str,
RumEvents: Sequence[RumEventTypeDef], # (2)
UserDetails: UserDetailsTypeDef, # (3)
GetAppMonitorResponseTypeDef#
# GetAppMonitorResponseTypeDef definition
class GetAppMonitorResponseTypeDef(TypedDict):
AppMonitor: AppMonitorTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)