Skip to content

Type definitions#

Index > ApplicationInsights > Type definitions

Auto-generated documentation for ApplicationInsights type annotations stubs module mypy-boto3-application-insights.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

WorkloadConfigurationTypeDef#

# WorkloadConfigurationTypeDef definition

class WorkloadConfigurationTypeDef(TypedDict):
    WorkloadName: NotRequired[str],
    Tier: NotRequired[TierType],  # (1)
    Configuration: NotRequired[str],
  1. See TierType

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

ApplicationComponentTypeDef#

# ApplicationComponentTypeDef definition

class ApplicationComponentTypeDef(TypedDict):
    ComponentName: NotRequired[str],
    ComponentRemarks: NotRequired[str],
    ResourceType: NotRequired[str],
    OsType: NotRequired[OsTypeType],  # (1)
    Tier: NotRequired[TierType],  # (2)
    Monitor: NotRequired[bool],
    DetectedWorkload: NotRequired[Dict[TierType, Dict[str, str]]],  # (3)
  1. See OsTypeType
  2. See TierType
  3. See TierType

ApplicationInfoTypeDef#

# ApplicationInfoTypeDef definition

class ApplicationInfoTypeDef(TypedDict):
    AccountId: NotRequired[str],
    ResourceGroupName: NotRequired[str],
    LifeCycle: NotRequired[str],
    OpsItemSNSTopicArn: NotRequired[str],
    OpsCenterEnabled: NotRequired[bool],
    CWEMonitorEnabled: NotRequired[bool],
    Remarks: NotRequired[str],
    AutoConfigEnabled: NotRequired[bool],
    DiscoveryType: NotRequired[DiscoveryTypeType],  # (1)
    AttachMissingPermission: NotRequired[bool],
  1. See DiscoveryTypeType

ConfigurationEventTypeDef#

# ConfigurationEventTypeDef definition

class ConfigurationEventTypeDef(TypedDict):
    ResourceGroupName: NotRequired[str],
    AccountId: NotRequired[str],
    MonitoredResourceARN: NotRequired[str],
    EventStatus: NotRequired[ConfigurationEventStatusType],  # (1)
    EventResourceType: NotRequired[ConfigurationEventResourceTypeType],  # (2)
    EventTime: NotRequired[datetime],
    EventDetail: NotRequired[str],
    EventResourceName: NotRequired[str],
  1. See ConfigurationEventStatusType
  2. See ConfigurationEventResourceTypeType

TagTypeDef#

# TagTypeDef definition

class TagTypeDef(TypedDict):
    Key: str,
    Value: str,

CreateComponentRequestRequestTypeDef#

# CreateComponentRequestRequestTypeDef definition

class CreateComponentRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    ResourceList: Sequence[str],

CreateLogPatternRequestRequestTypeDef#

# CreateLogPatternRequestRequestTypeDef definition

class CreateLogPatternRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    PatternSetName: str,
    PatternName: str,
    Pattern: str,
    Rank: int,

LogPatternTypeDef#

# LogPatternTypeDef definition

class LogPatternTypeDef(TypedDict):
    PatternSetName: NotRequired[str],
    PatternName: NotRequired[str],
    Pattern: NotRequired[str],
    Rank: NotRequired[int],

DeleteApplicationRequestRequestTypeDef#

# DeleteApplicationRequestRequestTypeDef definition

class DeleteApplicationRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,

DeleteComponentRequestRequestTypeDef#

# DeleteComponentRequestRequestTypeDef definition

class DeleteComponentRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,

DeleteLogPatternRequestRequestTypeDef#

# DeleteLogPatternRequestRequestTypeDef definition

class DeleteLogPatternRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    PatternSetName: str,
    PatternName: str,

DescribeApplicationRequestRequestTypeDef#

# DescribeApplicationRequestRequestTypeDef definition

class DescribeApplicationRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    AccountId: NotRequired[str],

DescribeComponentConfigurationRecommendationRequestRequestTypeDef#

# DescribeComponentConfigurationRecommendationRequestRequestTypeDef definition

class DescribeComponentConfigurationRecommendationRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    Tier: TierType,  # (1)
    WorkloadName: NotRequired[str],
    RecommendationType: NotRequired[RecommendationTypeType],  # (2)
  1. See TierType
  2. See RecommendationTypeType

DescribeComponentConfigurationRequestRequestTypeDef#

# DescribeComponentConfigurationRequestRequestTypeDef definition

class DescribeComponentConfigurationRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    AccountId: NotRequired[str],

DescribeComponentRequestRequestTypeDef#

# DescribeComponentRequestRequestTypeDef definition

class DescribeComponentRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    AccountId: NotRequired[str],

DescribeLogPatternRequestRequestTypeDef#

# DescribeLogPatternRequestRequestTypeDef definition

class DescribeLogPatternRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    PatternSetName: str,
    PatternName: str,
    AccountId: NotRequired[str],

DescribeObservationRequestRequestTypeDef#

# DescribeObservationRequestRequestTypeDef definition

class DescribeObservationRequestRequestTypeDef(TypedDict):
    ObservationId: str,
    AccountId: NotRequired[str],

ObservationTypeDef#

# ObservationTypeDef definition

class ObservationTypeDef(TypedDict):
    Id: NotRequired[str],
    StartTime: NotRequired[datetime],
    EndTime: NotRequired[datetime],
    SourceType: NotRequired[str],
    SourceARN: NotRequired[str],
    LogGroup: NotRequired[str],
    LineTime: NotRequired[datetime],
    LogText: NotRequired[str],
    LogFilter: NotRequired[LogFilterType],  # (1)
    MetricNamespace: NotRequired[str],
    MetricName: NotRequired[str],
    Unit: NotRequired[str],
    Value: NotRequired[float],
    CloudWatchEventId: NotRequired[str],
    CloudWatchEventSource: NotRequired[CloudWatchEventSourceType],  # (2)
    CloudWatchEventDetailType: NotRequired[str],
    HealthEventArn: NotRequired[str],
    HealthService: NotRequired[str],
    HealthEventTypeCode: NotRequired[str],
    HealthEventTypeCategory: NotRequired[str],
    HealthEventDescription: NotRequired[str],
    CodeDeployDeploymentId: NotRequired[str],
    CodeDeployDeploymentGroup: NotRequired[str],
    CodeDeployState: NotRequired[str],
    CodeDeployApplication: NotRequired[str],
    CodeDeployInstanceGroupId: NotRequired[str],
    Ec2State: NotRequired[str],
    RdsEventCategories: NotRequired[str],
    RdsEventMessage: NotRequired[str],
    S3EventName: NotRequired[str],
    StatesExecutionArn: NotRequired[str],
    StatesArn: NotRequired[str],
    StatesStatus: NotRequired[str],
    StatesInput: NotRequired[str],
    EbsEvent: NotRequired[str],
    EbsResult: NotRequired[str],
    EbsCause: NotRequired[str],
    EbsRequestId: NotRequired[str],
    XRayFaultPercent: NotRequired[int],
    XRayThrottlePercent: NotRequired[int],
    XRayErrorPercent: NotRequired[int],
    XRayRequestCount: NotRequired[int],
    XRayRequestAverageLatency: NotRequired[int],
    XRayNodeName: NotRequired[str],
    XRayNodeType: NotRequired[str],
  1. See LogFilterType
  2. See CloudWatchEventSourceType

DescribeProblemObservationsRequestRequestTypeDef#

# DescribeProblemObservationsRequestRequestTypeDef definition

class DescribeProblemObservationsRequestRequestTypeDef(TypedDict):
    ProblemId: str,
    AccountId: NotRequired[str],

DescribeProblemRequestRequestTypeDef#

# DescribeProblemRequestRequestTypeDef definition

class DescribeProblemRequestRequestTypeDef(TypedDict):
    ProblemId: str,
    AccountId: NotRequired[str],

ProblemTypeDef#

# ProblemTypeDef definition

class ProblemTypeDef(TypedDict):
    Id: NotRequired[str],
    Title: NotRequired[str],
    Insights: NotRequired[str],
    Status: NotRequired[StatusType],  # (1)
    AffectedResource: NotRequired[str],
    StartTime: NotRequired[datetime],
    EndTime: NotRequired[datetime],
    SeverityLevel: NotRequired[SeverityLevelType],  # (2)
    AccountId: NotRequired[str],
    ResourceGroupName: NotRequired[str],
    Feedback: NotRequired[Dict[FeedbackKeyType, FeedbackValueType]],  # (3)
    RecurringCount: NotRequired[int],
    LastRecurrenceTime: NotRequired[datetime],
    Visibility: NotRequired[VisibilityType],  # (4)
    ResolutionMethod: NotRequired[ResolutionMethodType],  # (5)
  1. See StatusType
  2. See SeverityLevelType
  3. See FeedbackKeyType FeedbackValueType
  4. See VisibilityType
  5. See ResolutionMethodType

DescribeWorkloadRequestRequestTypeDef#

# DescribeWorkloadRequestRequestTypeDef definition

class DescribeWorkloadRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    WorkloadId: str,
    AccountId: NotRequired[str],

ListApplicationsRequestRequestTypeDef#

# ListApplicationsRequestRequestTypeDef definition

class ListApplicationsRequestRequestTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    AccountId: NotRequired[str],

ListComponentsRequestRequestTypeDef#

# ListComponentsRequestRequestTypeDef definition

class ListComponentsRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    AccountId: NotRequired[str],

ListLogPatternSetsRequestRequestTypeDef#

# ListLogPatternSetsRequestRequestTypeDef definition

class ListLogPatternSetsRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    AccountId: NotRequired[str],

ListLogPatternsRequestRequestTypeDef#

# ListLogPatternsRequestRequestTypeDef definition

class ListLogPatternsRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    PatternSetName: NotRequired[str],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    AccountId: NotRequired[str],

ListTagsForResourceRequestRequestTypeDef#

# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    ResourceARN: str,

ListWorkloadsRequestRequestTypeDef#

# ListWorkloadsRequestRequestTypeDef definition

class ListWorkloadsRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    AccountId: NotRequired[str],

WorkloadTypeDef#

# WorkloadTypeDef definition

class WorkloadTypeDef(TypedDict):
    WorkloadId: NotRequired[str],
    ComponentName: NotRequired[str],
    WorkloadName: NotRequired[str],
    Tier: NotRequired[TierType],  # (1)
    WorkloadRemarks: NotRequired[str],
  1. See TierType

RemoveWorkloadRequestRequestTypeDef#

# RemoveWorkloadRequestRequestTypeDef definition

class RemoveWorkloadRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    WorkloadId: str,

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef definition

class UntagResourceRequestRequestTypeDef(TypedDict):
    ResourceARN: str,
    TagKeys: Sequence[str],

UpdateApplicationRequestRequestTypeDef#

# UpdateApplicationRequestRequestTypeDef definition

class UpdateApplicationRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    OpsCenterEnabled: NotRequired[bool],
    CWEMonitorEnabled: NotRequired[bool],
    OpsItemSNSTopicArn: NotRequired[str],
    RemoveSNSTopic: NotRequired[bool],
    AutoConfigEnabled: NotRequired[bool],
    AttachMissingPermission: NotRequired[bool],

UpdateComponentConfigurationRequestRequestTypeDef#

# UpdateComponentConfigurationRequestRequestTypeDef definition

class UpdateComponentConfigurationRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    Monitor: NotRequired[bool],
    Tier: NotRequired[TierType],  # (1)
    ComponentConfiguration: NotRequired[str],
    AutoConfigEnabled: NotRequired[bool],
  1. See TierType

UpdateComponentRequestRequestTypeDef#

# UpdateComponentRequestRequestTypeDef definition

class UpdateComponentRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    NewComponentName: NotRequired[str],
    ResourceList: NotRequired[Sequence[str]],

UpdateLogPatternRequestRequestTypeDef#

# UpdateLogPatternRequestRequestTypeDef definition

class UpdateLogPatternRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    PatternSetName: str,
    PatternName: str,
    Pattern: NotRequired[str],
    Rank: NotRequired[int],

UpdateProblemRequestRequestTypeDef#

# UpdateProblemRequestRequestTypeDef definition

class UpdateProblemRequestRequestTypeDef(TypedDict):
    ProblemId: str,
    UpdateStatus: NotRequired[UpdateStatusType],  # (1)
    Visibility: NotRequired[VisibilityType],  # (2)
  1. See UpdateStatusType
  2. See VisibilityType

AddWorkloadRequestRequestTypeDef#

# AddWorkloadRequestRequestTypeDef definition

class AddWorkloadRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    WorkloadConfiguration: WorkloadConfigurationTypeDef,  # (1)
  1. See WorkloadConfigurationTypeDef

UpdateWorkloadRequestRequestTypeDef#

# UpdateWorkloadRequestRequestTypeDef definition

class UpdateWorkloadRequestRequestTypeDef(TypedDict):
    ResourceGroupName: str,
    ComponentName: str,
    WorkloadConfiguration: WorkloadConfigurationTypeDef,  # (1)
    WorkloadId: NotRequired[str],
  1. See WorkloadConfigurationTypeDef

AddWorkloadResponseTypeDef#

# AddWorkloadResponseTypeDef definition

class AddWorkloadResponseTypeDef(TypedDict):
    WorkloadId: str,
    WorkloadConfiguration: WorkloadConfigurationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See WorkloadConfigurationTypeDef
  2. See ResponseMetadataTypeDef

DescribeComponentConfigurationRecommendationResponseTypeDef#

# DescribeComponentConfigurationRecommendationResponseTypeDef definition

class DescribeComponentConfigurationRecommendationResponseTypeDef(TypedDict):
    ComponentConfiguration: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DescribeComponentConfigurationResponseTypeDef#

# DescribeComponentConfigurationResponseTypeDef definition

class DescribeComponentConfigurationResponseTypeDef(TypedDict):
    Monitor: bool,
    Tier: TierType,  # (1)
    ComponentConfiguration: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TierType
  2. See ResponseMetadataTypeDef

DescribeWorkloadResponseTypeDef#

# DescribeWorkloadResponseTypeDef definition

class DescribeWorkloadResponseTypeDef(TypedDict):
    WorkloadId: str,
    WorkloadRemarks: str,
    WorkloadConfiguration: WorkloadConfigurationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See WorkloadConfigurationTypeDef
  2. See ResponseMetadataTypeDef

ListLogPatternSetsResponseTypeDef#

# ListLogPatternSetsResponseTypeDef definition

class ListLogPatternSetsResponseTypeDef(TypedDict):
    ResourceGroupName: str,
    AccountId: str,
    LogPatternSets: List[str],
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

UpdateWorkloadResponseTypeDef#

# UpdateWorkloadResponseTypeDef definition

class UpdateWorkloadResponseTypeDef(TypedDict):
    WorkloadId: str,
    WorkloadConfiguration: WorkloadConfigurationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See WorkloadConfigurationTypeDef
  2. See ResponseMetadataTypeDef

DescribeComponentResponseTypeDef#

# DescribeComponentResponseTypeDef definition

class DescribeComponentResponseTypeDef(TypedDict):
    ApplicationComponent: ApplicationComponentTypeDef,  # (1)
    ResourceList: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationComponentTypeDef
  2. See ResponseMetadataTypeDef

ListComponentsResponseTypeDef#

# ListComponentsResponseTypeDef definition

class ListComponentsResponseTypeDef(TypedDict):
    ApplicationComponentList: List[ApplicationComponentTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationComponentTypeDef
  2. See ResponseMetadataTypeDef

CreateApplicationResponseTypeDef#

# CreateApplicationResponseTypeDef definition

class CreateApplicationResponseTypeDef(TypedDict):
    ApplicationInfo: ApplicationInfoTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationInfoTypeDef
  2. See ResponseMetadataTypeDef

DescribeApplicationResponseTypeDef#

# DescribeApplicationResponseTypeDef definition

class DescribeApplicationResponseTypeDef(TypedDict):
    ApplicationInfo: ApplicationInfoTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationInfoTypeDef
  2. See ResponseMetadataTypeDef

ListApplicationsResponseTypeDef#

# ListApplicationsResponseTypeDef definition

class ListApplicationsResponseTypeDef(TypedDict):
    ApplicationInfoList: List[ApplicationInfoTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationInfoTypeDef
  2. See ResponseMetadataTypeDef

UpdateApplicationResponseTypeDef#

# UpdateApplicationResponseTypeDef definition

class UpdateApplicationResponseTypeDef(TypedDict):
    ApplicationInfo: ApplicationInfoTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationInfoTypeDef
  2. See ResponseMetadataTypeDef

ListConfigurationHistoryResponseTypeDef#

# ListConfigurationHistoryResponseTypeDef definition

class ListConfigurationHistoryResponseTypeDef(TypedDict):
    EventList: List[ConfigurationEventTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ConfigurationEventTypeDef
  2. See ResponseMetadataTypeDef

CreateApplicationRequestRequestTypeDef#

# CreateApplicationRequestRequestTypeDef definition

class CreateApplicationRequestRequestTypeDef(TypedDict):
    ResourceGroupName: NotRequired[str],
    OpsCenterEnabled: NotRequired[bool],
    CWEMonitorEnabled: NotRequired[bool],
    OpsItemSNSTopicArn: NotRequired[str],
    Tags: NotRequired[Sequence[TagTypeDef]],  # (1)
    AutoConfigEnabled: NotRequired[bool],
    AutoCreate: NotRequired[bool],
    GroupingType: NotRequired[GroupingTypeType],  # (2)
    AttachMissingPermission: NotRequired[bool],
  1. See TagTypeDef
  2. See GroupingTypeType

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef definition

class ListTagsForResourceResponseTypeDef(TypedDict):
    Tags: List[TagTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TagTypeDef
  2. See ResponseMetadataTypeDef

TagResourceRequestRequestTypeDef#

# TagResourceRequestRequestTypeDef definition

class TagResourceRequestRequestTypeDef(TypedDict):
    ResourceARN: str,
    Tags: Sequence[TagTypeDef],  # (1)
  1. See TagTypeDef

CreateLogPatternResponseTypeDef#

# CreateLogPatternResponseTypeDef definition

class CreateLogPatternResponseTypeDef(TypedDict):
    LogPattern: LogPatternTypeDef,  # (1)
    ResourceGroupName: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See LogPatternTypeDef
  2. See ResponseMetadataTypeDef

DescribeLogPatternResponseTypeDef#

# DescribeLogPatternResponseTypeDef definition

class DescribeLogPatternResponseTypeDef(TypedDict):
    ResourceGroupName: str,
    AccountId: str,
    LogPattern: LogPatternTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See LogPatternTypeDef
  2. See ResponseMetadataTypeDef

ListLogPatternsResponseTypeDef