Type definitions#
Auto-generated documentation for PI type annotations stubs module mypy-boto3-pi.
TimestampTypeDef#
# TimestampTypeDef definition
TimestampTypeDef = Union[
datetime,
str,
]
TagTypeDef#
# TagTypeDef definition
class TagTypeDef(TypedDict):
Key: str,
Value: str,
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
DataPointTypeDef#
# DataPointTypeDef definition
class DataPointTypeDef(TypedDict):
Timestamp: datetime,
Value: float,
PerformanceInsightsMetricTypeDef#
# PerformanceInsightsMetricTypeDef definition
class PerformanceInsightsMetricTypeDef(TypedDict):
Metric: NotRequired[str],
DisplayName: NotRequired[str],
Dimensions: NotRequired[Dict[str, str]],
Value: NotRequired[float],
DeletePerformanceAnalysisReportRequestRequestTypeDef#
# DeletePerformanceAnalysisReportRequestRequestTypeDef definition
class DeletePerformanceAnalysisReportRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
AnalysisReportId: str,
- See ServiceTypeType
DimensionGroupTypeDef#
# DimensionGroupTypeDef definition
class DimensionGroupTypeDef(TypedDict):
Group: str,
Dimensions: NotRequired[Sequence[str]],
Limit: NotRequired[int],
DimensionKeyDescriptionTypeDef#
# DimensionKeyDescriptionTypeDef definition
class DimensionKeyDescriptionTypeDef(TypedDict):
Dimensions: NotRequired[Dict[str, str]],
Total: NotRequired[float],
AdditionalMetrics: NotRequired[Dict[str, float]],
Partitions: NotRequired[List[float]],
ResponsePartitionKeyTypeDef#
# ResponsePartitionKeyTypeDef definition
class ResponsePartitionKeyTypeDef(TypedDict):
Dimensions: Dict[str, str],
DimensionDetailTypeDef#
# DimensionDetailTypeDef definition
class DimensionDetailTypeDef(TypedDict):
Identifier: NotRequired[str],
DimensionKeyDetailTypeDef#
# DimensionKeyDetailTypeDef definition
class DimensionKeyDetailTypeDef(TypedDict):
Value: NotRequired[str],
Dimension: NotRequired[str],
Status: NotRequired[DetailStatusType], # (1)
- See DetailStatusType
FeatureMetadataTypeDef#
# FeatureMetadataTypeDef definition
class FeatureMetadataTypeDef(TypedDict):
Status: NotRequired[FeatureStatusType], # (1)
GetDimensionKeyDetailsRequestRequestTypeDef#
# GetDimensionKeyDetailsRequestRequestTypeDef definition
class GetDimensionKeyDetailsRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
Group: str,
GroupIdentifier: str,
RequestedDimensions: NotRequired[Sequence[str]],
- See ServiceTypeType
GetPerformanceAnalysisReportRequestRequestTypeDef#
# GetPerformanceAnalysisReportRequestRequestTypeDef definition
class GetPerformanceAnalysisReportRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
AnalysisReportId: str,
TextFormat: NotRequired[TextFormatType], # (2)
AcceptLanguage: NotRequired[AcceptLanguageType], # (3)
- See ServiceTypeType
- See TextFormatType
- See AcceptLanguageType
GetResourceMetadataRequestRequestTypeDef#
# GetResourceMetadataRequestRequestTypeDef definition
class GetResourceMetadataRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
- See ServiceTypeType
RecommendationTypeDef#
# RecommendationTypeDef definition
class RecommendationTypeDef(TypedDict):
RecommendationId: NotRequired[str],
RecommendationDescription: NotRequired[str],
ListAvailableResourceDimensionsRequestRequestTypeDef#
# ListAvailableResourceDimensionsRequestRequestTypeDef definition
class ListAvailableResourceDimensionsRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
Metrics: Sequence[str],
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
AuthorizedActions: NotRequired[Sequence[FineGrainedActionType]], # (2)
- See ServiceTypeType
- See FineGrainedActionType
ListAvailableResourceMetricsRequestRequestTypeDef#
# ListAvailableResourceMetricsRequestRequestTypeDef definition
class ListAvailableResourceMetricsRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
MetricTypes: Sequence[str],
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
- See ServiceTypeType
ResponseResourceMetricTypeDef#
# ResponseResourceMetricTypeDef definition
class ResponseResourceMetricTypeDef(TypedDict):
Metric: NotRequired[str],
Description: NotRequired[str],
Unit: NotRequired[str],
ListPerformanceAnalysisReportsRequestRequestTypeDef#
# ListPerformanceAnalysisReportsRequestRequestTypeDef definition
class ListPerformanceAnalysisReportsRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
ListTags: NotRequired[bool],
- See ServiceTypeType
ListTagsForResourceRequestRequestTypeDef#
# ListTagsForResourceRequestRequestTypeDef definition
class ListTagsForResourceRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
ResourceARN: str,
- See ServiceTypeType
ResponseResourceMetricKeyTypeDef#
# ResponseResourceMetricKeyTypeDef definition
class ResponseResourceMetricKeyTypeDef(TypedDict):
Metric: str,
Dimensions: NotRequired[Dict[str, str]],
UntagResourceRequestRequestTypeDef#
# UntagResourceRequestRequestTypeDef definition
class UntagResourceRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
ResourceARN: str,
TagKeys: Sequence[str],
- See ServiceTypeType
AnalysisReportSummaryTypeDef#
# AnalysisReportSummaryTypeDef definition
class AnalysisReportSummaryTypeDef(TypedDict):
AnalysisReportId: NotRequired[str],
CreateTime: NotRequired[datetime],
StartTime: NotRequired[datetime],
EndTime: NotRequired[datetime],
Status: NotRequired[AnalysisStatusType], # (1)
Tags: NotRequired[List[TagTypeDef]], # (2)
- See AnalysisStatusType
- See TagTypeDef
TagResourceRequestRequestTypeDef#
# TagResourceRequestRequestTypeDef definition
class TagResourceRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
ResourceARN: str,
Tags: Sequence[TagTypeDef], # (2)
- See ServiceTypeType
- See TagTypeDef
CreatePerformanceAnalysisReportRequestRequestTypeDef#
# CreatePerformanceAnalysisReportRequestRequestTypeDef definition
class CreatePerformanceAnalysisReportRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
StartTime: TimestampTypeDef,
EndTime: TimestampTypeDef,
Tags: NotRequired[Sequence[TagTypeDef]], # (2)
- See ServiceTypeType
- See TagTypeDef
CreatePerformanceAnalysisReportResponseTypeDef#
# CreatePerformanceAnalysisReportResponseTypeDef definition
class CreatePerformanceAnalysisReportResponseTypeDef(TypedDict):
AnalysisReportId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListTagsForResourceResponseTypeDef#
# ListTagsForResourceResponseTypeDef definition
class ListTagsForResourceResponseTypeDef(TypedDict):
Tags: List[TagTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See TagTypeDef
- See ResponseMetadataTypeDef
DataTypeDef#
# DataTypeDef definition
class DataTypeDef(TypedDict):
PerformanceInsightsMetric: NotRequired[PerformanceInsightsMetricTypeDef], # (1)
DescribeDimensionKeysRequestRequestTypeDef#
# DescribeDimensionKeysRequestRequestTypeDef definition
class DescribeDimensionKeysRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
StartTime: TimestampTypeDef,
EndTime: TimestampTypeDef,
Metric: str,
GroupBy: DimensionGroupTypeDef, # (2)
PeriodInSeconds: NotRequired[int],
AdditionalMetrics: NotRequired[Sequence[str]],
PartitionBy: NotRequired[DimensionGroupTypeDef], # (2)
Filter: NotRequired[Mapping[str, str]],
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
MetricQueryTypeDef#
# MetricQueryTypeDef definition
class MetricQueryTypeDef(TypedDict):
Metric: str,
GroupBy: NotRequired[DimensionGroupTypeDef], # (1)
Filter: NotRequired[Mapping[str, str]],
DescribeDimensionKeysResponseTypeDef#
# DescribeDimensionKeysResponseTypeDef definition
class DescribeDimensionKeysResponseTypeDef(TypedDict):
AlignedStartTime: datetime,
AlignedEndTime: datetime,
PartitionKeys: List[ResponsePartitionKeyTypeDef], # (1)
Keys: List[DimensionKeyDescriptionTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
NextToken: NotRequired[str],
DimensionGroupDetailTypeDef#
# DimensionGroupDetailTypeDef definition
class DimensionGroupDetailTypeDef(TypedDict):
Group: NotRequired[str],
Dimensions: NotRequired[List[DimensionDetailTypeDef]], # (1)
GetDimensionKeyDetailsResponseTypeDef#
# GetDimensionKeyDetailsResponseTypeDef definition
class GetDimensionKeyDetailsResponseTypeDef(TypedDict):
Dimensions: List[DimensionKeyDetailTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetResourceMetadataResponseTypeDef#
# GetResourceMetadataResponseTypeDef definition
class GetResourceMetadataResponseTypeDef(TypedDict):
Identifier: str,
Features: Dict[str, FeatureMetadataTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListAvailableResourceMetricsResponseTypeDef#
# ListAvailableResourceMetricsResponseTypeDef definition
class ListAvailableResourceMetricsResponseTypeDef(TypedDict):
Metrics: List[ResponseResourceMetricTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
MetricKeyDataPointsTypeDef#
# MetricKeyDataPointsTypeDef definition
class MetricKeyDataPointsTypeDef(TypedDict):
Key: NotRequired[ResponseResourceMetricKeyTypeDef], # (1)
DataPoints: NotRequired[List[DataPointTypeDef]], # (2)
ListPerformanceAnalysisReportsResponseTypeDef#
# ListPerformanceAnalysisReportsResponseTypeDef definition
class ListPerformanceAnalysisReportsResponseTypeDef(TypedDict):
AnalysisReports: List[AnalysisReportSummaryTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
InsightTypeDef#
# InsightTypeDef definition
class InsightTypeDef(TypedDict):
InsightId: str,
InsightType: NotRequired[str],
Context: NotRequired[ContextTypeType], # (1)
StartTime: NotRequired[datetime],
EndTime: NotRequired[datetime],
Severity: NotRequired[SeverityType], # (2)
SupportingInsights: NotRequired[List[Dict[str, Any]]],
Description: NotRequired[str],
Recommendations: NotRequired[List[RecommendationTypeDef]], # (3)
InsightData: NotRequired[List[DataTypeDef]], # (4)
BaselineData: NotRequired[List[DataTypeDef]], # (4)
- See ContextTypeType
- See SeverityType
- See RecommendationTypeDef
- See DataTypeDef
- See DataTypeDef
GetResourceMetricsRequestRequestTypeDef#
# GetResourceMetricsRequestRequestTypeDef definition
class GetResourceMetricsRequestRequestTypeDef(TypedDict):
ServiceType: ServiceTypeType, # (1)
Identifier: str,
MetricQueries: Sequence[MetricQueryTypeDef], # (2)
StartTime: TimestampTypeDef,
EndTime: TimestampTypeDef,
PeriodInSeconds: NotRequired[int],
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
PeriodAlignment: NotRequired[PeriodAlignmentType], # (3)
- See ServiceTypeType
- See MetricQueryTypeDef
- See PeriodAlignmentType
MetricDimensionGroupsTypeDef#
# MetricDimensionGroupsTypeDef definition
class MetricDimensionGroupsTypeDef(TypedDict):
Metric: NotRequired[str],
Groups: NotRequired[List[DimensionGroupDetailTypeDef]], # (1)
GetResourceMetricsResponseTypeDef#
# GetResourceMetricsResponseTypeDef definition
class GetResourceMetricsResponseTypeDef(TypedDict):
AlignedStartTime: datetime,
AlignedEndTime: datetime,
Identifier: str,
MetricList: List[MetricKeyDataPointsTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
AnalysisReportTypeDef#
# AnalysisReportTypeDef definition
class AnalysisReportTypeDef(TypedDict):
AnalysisReportId: str,
Identifier: NotRequired[str],
ServiceType: NotRequired[ServiceTypeType], # (1)
CreateTime: NotRequired[datetime],
StartTime: NotRequired[datetime],
EndTime: NotRequired[datetime],
Status: NotRequired[AnalysisStatusType], # (2)
Insights: NotRequired[List[InsightTypeDef]], # (3)
- See ServiceTypeType
- See AnalysisStatusType
- See InsightTypeDef
ListAvailableResourceDimensionsResponseTypeDef#
# ListAvailableResourceDimensionsResponseTypeDef definition
class ListAvailableResourceDimensionsResponseTypeDef(TypedDict):
MetricDimensions: List[MetricDimensionGroupsTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
GetPerformanceAnalysisReportResponseTypeDef#
# GetPerformanceAnalysisReportResponseTypeDef definition
class GetPerformanceAnalysisReportResponseTypeDef(TypedDict):
AnalysisReport: AnalysisReportTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)