Skip to content

Type definitions#

Index > PrometheusService > Type definitions

Auto-generated documentation for PrometheusService type annotations stubs module mypy-boto3-amp.

BlobTypeDef#

# BlobTypeDef definition

BlobTypeDef = Union[
    str,
    bytes,
    IO[Any],
    StreamingBody,
]

ScrapeConfigurationUnionTypeDef#

# ScrapeConfigurationUnionTypeDef definition

ScrapeConfigurationUnionTypeDef = Union[
    ScrapeConfigurationTypeDef,  # (1)
    ScrapeConfigurationOutputTypeDef,  # (2)
]
  1. See ScrapeConfigurationTypeDef
  2. See ScrapeConfigurationOutputTypeDef

SourceUnionTypeDef#

# SourceUnionTypeDef definition

SourceUnionTypeDef = Union[
    SourceTypeDef,  # (1)
    SourceExtraOutputTypeDef,  # (2)
]
  1. See SourceTypeDef
  2. See SourceExtraOutputTypeDef

AlertManagerDefinitionStatusTypeDef#

# AlertManagerDefinitionStatusTypeDef definition

class AlertManagerDefinitionStatusTypeDef(TypedDict):
    statusCode: AlertManagerDefinitionStatusCodeType,  # (1)
    statusReason: NotRequired[str],
  1. See AlertManagerDefinitionStatusCodeType

AmpConfigurationTypeDef#

# AmpConfigurationTypeDef definition

class AmpConfigurationTypeDef(TypedDict):
    workspaceArn: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

CreateLoggingConfigurationRequestRequestTypeDef#

# CreateLoggingConfigurationRequestRequestTypeDef definition

class CreateLoggingConfigurationRequestRequestTypeDef(TypedDict):
    logGroupArn: str,
    workspaceId: str,
    clientToken: NotRequired[str],

LoggingConfigurationStatusTypeDef#

# LoggingConfigurationStatusTypeDef definition

class LoggingConfigurationStatusTypeDef(TypedDict):
    statusCode: LoggingConfigurationStatusCodeType,  # (1)
    statusReason: NotRequired[str],
  1. See LoggingConfigurationStatusCodeType

RuleGroupsNamespaceStatusTypeDef#

# RuleGroupsNamespaceStatusTypeDef definition

class RuleGroupsNamespaceStatusTypeDef(TypedDict):
    statusCode: RuleGroupsNamespaceStatusCodeType,  # (1)
    statusReason: NotRequired[str],
  1. See RuleGroupsNamespaceStatusCodeType

ScraperStatusTypeDef#

# ScraperStatusTypeDef definition

class ScraperStatusTypeDef(TypedDict):
    statusCode: ScraperStatusCodeType,  # (1)
  1. See ScraperStatusCodeType

CreateWorkspaceRequestRequestTypeDef#

# CreateWorkspaceRequestRequestTypeDef definition

class CreateWorkspaceRequestRequestTypeDef(TypedDict):
    alias: NotRequired[str],
    clientToken: NotRequired[str],
    kmsKeyArn: NotRequired[str],
    tags: NotRequired[Mapping[str, str]],

WorkspaceStatusTypeDef#

# WorkspaceStatusTypeDef definition

class WorkspaceStatusTypeDef(TypedDict):
    statusCode: WorkspaceStatusCodeType,  # (1)
  1. See WorkspaceStatusCodeType

DeleteAlertManagerDefinitionRequestRequestTypeDef#

# DeleteAlertManagerDefinitionRequestRequestTypeDef definition

class DeleteAlertManagerDefinitionRequestRequestTypeDef(TypedDict):
    workspaceId: str,
    clientToken: NotRequired[str],

DeleteLoggingConfigurationRequestRequestTypeDef#

# DeleteLoggingConfigurationRequestRequestTypeDef definition

class DeleteLoggingConfigurationRequestRequestTypeDef(TypedDict):
    workspaceId: str,
    clientToken: NotRequired[str],

DeleteRuleGroupsNamespaceRequestRequestTypeDef#

# DeleteRuleGroupsNamespaceRequestRequestTypeDef definition

class DeleteRuleGroupsNamespaceRequestRequestTypeDef(TypedDict):
    name: str,
    workspaceId: str,
    clientToken: NotRequired[str],

DeleteScraperRequestRequestTypeDef#

# DeleteScraperRequestRequestTypeDef definition

class DeleteScraperRequestRequestTypeDef(TypedDict):
    scraperId: str,
    clientToken: NotRequired[str],

DeleteWorkspaceRequestRequestTypeDef#

# DeleteWorkspaceRequestRequestTypeDef definition

class DeleteWorkspaceRequestRequestTypeDef(TypedDict):
    workspaceId: str,
    clientToken: NotRequired[str],

DescribeAlertManagerDefinitionRequestRequestTypeDef#

# DescribeAlertManagerDefinitionRequestRequestTypeDef definition

class DescribeAlertManagerDefinitionRequestRequestTypeDef(TypedDict):
    workspaceId: str,

DescribeLoggingConfigurationRequestRequestTypeDef#

# DescribeLoggingConfigurationRequestRequestTypeDef definition

class DescribeLoggingConfigurationRequestRequestTypeDef(TypedDict):
    workspaceId: str,

DescribeRuleGroupsNamespaceRequestRequestTypeDef#

# DescribeRuleGroupsNamespaceRequestRequestTypeDef definition

class DescribeRuleGroupsNamespaceRequestRequestTypeDef(TypedDict):
    name: str,
    workspaceId: str,

DescribeScraperRequestRequestTypeDef#

# DescribeScraperRequestR