Skip to content

ApplicationInsightsClient#

Index > ApplicationInsights > ApplicationInsightsClient

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

ApplicationInsightsClient#

Type annotations and code completion for boto3.client("application-insights"). boto3 documentation

# ApplicationInsightsClient usage example

from boto3.session import Session
from mypy_boto3_application_insights.client import ApplicationInsightsClient

def get_application-insights_client() -> ApplicationInsightsClient:
    return Session().client("application-insights")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("application-insights").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("application-insights")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.BadRequestException,
    client.exceptions.ClientError,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceInUseException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.TagsAlreadyExistException,
    client.exceptions.TooManyTagsException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_application_insights.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

add_workload#

Adds a workload to a component.

Type annotations and code completion for boto3.client("application-insights").add_workload method. boto3 documentation

# add_workload method definition

def add_workload(
    self,
    *,
    ResourceGroupName: str,
    ComponentName: str,
    WorkloadConfiguration: WorkloadConfigurationTypeDef,  # (1)
) -> AddWorkloadResponseTypeDef:  # (2)
    ...
  1. See WorkloadConfigurationTypeDef
  2. See AddWorkloadResponseTypeDef
# add_workload method usage example with argument unpacking

kwargs: AddWorkloadRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
    "ComponentName": ...,
    "WorkloadConfiguration": ...,
}

parent.add_workload(**kwargs)
  1. See AddWorkloadRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("application-insights").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("application-insights").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_application#

Adds an application that is created from a resource group.

Type annotations and code completion for boto3.client("application-insights").create_application method. boto3 documentation

# create_application method definition

def create_application(
    self,
    *,
    ResourceGroupName: str = ...,
    OpsCenterEnabled: bool = ...,
    CWEMonitorEnabled: bool = ...,
    OpsItemSNSTopicArn: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
    AutoConfigEnabled: bool = ...,
    AutoCreate: bool = ...,
    GroupingType: GroupingTypeType = ...,  # (2)
    AttachMissingPermission: bool = ...,
) -> CreateApplicationResponseTypeDef:  # (3)
    ...
  1. See TagTypeDef
  2. See GroupingTypeType
  3. See CreateApplicationResponseTypeDef
# create_application method usage example with argument unpacking

kwargs: CreateApplicationRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
}

parent.create_application(**kwargs)
  1. See CreateApplicationRequestRequestTypeDef

create_component#

Creates a custom component by grouping similar standalone instances to monitor.

Type annotations and code completion for boto3.client("application-insights").create_component method. boto3 documentation

# create_component method definition

def create_component(
    self,
    *,
    ResourceGroupName: str,
    ComponentName: str,
    ResourceList: Sequence[str],
) -> Dict[str, Any]:
    ...
# create_component method usage example with argument unpacking

kwargs: CreateComponentRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
    "ComponentName": ...,
    "ResourceList": ...,
}

parent.create_component(**kwargs)
  1. See CreateComponentRequestRequestTypeDef

create_log_pattern#

Adds an log pattern to a LogPatternSet.

Type annotations and code completion for boto3.client("application-insights").create_log_pattern method. boto3 documentation

# create_log_pattern method definition

def create_log_pattern(
    self,
    *,
    ResourceGroupName: str,
    PatternSetName: str,
    PatternName: str,
    Pattern: str,
    Rank: int,
) -> CreateLogPatternResponseTypeDef:  # (1)
    ...
  1. See CreateLogPatternResponseTypeDef
# create_log_pattern method usage example with argument unpacking

kwargs: CreateLogPatternRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
    "PatternSetName": ...,
    "PatternName": ...,
    "Pattern": ...,
    "Rank": ...,
}

parent.create_log_pattern(**kwargs)
  1. See CreateLogPatternRequestRequestTypeDef

delete_application#

Removes the specified application from monitoring.

Type annotations and code completion for boto3.client("application-insights").delete_application method. boto3 documentation

# delete_application method definition

def delete_application(
    self,
    *,
    ResourceGroupName: str,
) -> Dict[str, Any]:
    ...
# delete_application method usage example with argument unpacking

kwargs: DeleteApplicationRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
}

parent.delete_application(**kwargs)
  1. See DeleteApplicationRequestRequestTypeDef

delete_component#

Ungroups a custom component.

Type annotations and code completion for boto3.client("application-insights").delete_component method. boto3 documentation

# delete_component method definition

def delete_component(
    self,
    *,
    ResourceGroupName: str,
    ComponentName: str,
) -> Dict[str, Any]:
    ...
# delete_component method usage example with argument unpacking

kwargs: DeleteComponentRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
    "ComponentName": ...,
}

parent.delete_component(**kwargs)
  1. See DeleteComponentRequestRequestTypeDef

delete_log_pattern#

Removes the specified log pattern from a LogPatternSet.

Type annotations and code completion for boto3.client("application-insights").delete_log_pattern method. boto3 documentation

# delete_log_pattern method definition

def delete_log_pattern(
    self,
    *,
    ResourceGroupName: str,
    PatternSetName: str,
    PatternName: str,
) -> Dict[str, Any]:
    ...
# delete_log_pattern method usage example with argument unpacking

kwargs: DeleteLogPatternRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
    "PatternSetName": ...,
    "PatternName": ...,
}

parent.delete_log_pattern(**kwargs)
  1. See DeleteLogPatternRequestRequestTypeDef

describe_application#

Describes the application.

Type annotations and code completion for boto3.client("application-insights").describe_application method. boto3 documentation

# describe_application method definition

def describe_application(
    self,
    *,
    ResourceGroupName: str,
    AccountId: str = ...,
) -> DescribeApplicationResponseTypeDef:  # (1)
    ...
  1. See DescribeApplicationResponseTypeDef
# describe_application method usage example with argument unpacking

kwargs: DescribeApplicationRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
}

parent.describe_application(**kwargs)
  1. See DescribeApplicationRequestRequestTypeDef

describe_component#

Describes a component and lists the resources that are grouped together in a component.

Type annotations and code completion for boto3.client("application-insights").describe_component method. boto3 documentation

# describe_component method definition

def describe_component(
    self,
    *,
    ResourceGroupName: str,
    ComponentName: str,
    AccountId: str = ...,
) -> DescribeComponentResponseTypeDef:  # (1)
    ...
  1. See DescribeComponentResponseTypeDef
# describe_component method usage example with argument unpacking

kwargs: DescribeComponentRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
    "ComponentName": ...,
}

parent.describe_component(**kwargs)
  1. See DescribeComponentRequestRequestTypeDef

describe_component_configuration#

Describes the monitoring configuration of the component.

Type annotations and code completion for boto3.client("application-insights").describe_component_configuration method. boto3 documentation

# describe_component_configuration method definition

def describe_component_configuration(
    self,
    *,
    ResourceGroupName: str,
    ComponentName: str,
    AccountId: str = ...,
) -> DescribeComponentConfigurationResponseTypeDef:  # (1)
    ...
  1. See DescribeComponentConfigurationResponseTypeDef
# describe_component_configuration method usage example with argument unpacking

kwargs: DescribeComponentConfigurationRequestRequestTypeDef = {  # (1)
    "ResourceGroupName": ...,
    "ComponentName": ...,
}

parent.describe_component_configuration(**kwargs)
  1. See DescribeComponentConfigurationRequestRequestTypeDef

describe_component_configuration_recommendation#

Describes the recommended monitoring configuration of the component.

Type annotations and code completion for boto3.client("application-insights").describe_component_configuration_recommendation method.