Metadata-Version: 2.4
Name: rboto-cloudwatch
Version: 0.4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Framework :: AsyncIO
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Rust
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Dist: rboto==0.4.0
Requires-Dist: typing-extensions>=4.15,<5
License-File: LICENSE
Summary: rboto: async-only, typed Python client for Amazon CloudWatch, powered by Rust. Alpha preview.
Keywords: rboto,aws,cloudwatch,asyncio,typing,rust
Home-Page: https://github.com/ferrumio/rboto
Author-email: Leandro Cavalcante Damascena <leandro.damascena@gmail.com>
License-Expression: Apache-2.0
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/ferrumio/rboto/releases
Project-URL: Documentation, https://ferrumio.github.io/rboto/guides/cloudwatch/
Project-URL: Homepage, https://ferrumio.github.io/rboto/
Project-URL: Issues, https://github.com/ferrumio/rboto/issues
Project-URL: Repository, https://github.com/ferrumio/rboto

<!-- Generated by rboto-codegen. Edit the descriptor, template, or example source. -->
# rboto-cloudwatch

rboto is an independent project maintained by [Ferrumio](https://github.com/ferrumio).
It is not affiliated with, sponsored by, or endorsed by Amazon Web Services (AWS).

**Preview (Alpha).** rboto is under active development. APIs may change between releases.

rboto provides an **async-only, typed Python client for Amazon CloudWatch**,
powered by Rust. This package contains `CloudWatchClient` and
**59 operations**.

## Installation

Requires Python 3.12 or newer and a native wheel for your Python version and platform.

```bash
python -m pip install "rboto[cloudwatch]"
```

You can also install `rboto-cloudwatch` directly; it installs the matching
`rboto` package. Only the selected service is installed.

These are the package names to use when a release is available on your package index.
If your index has no release yet, follow the
[source installation instructions](https://ferrumio.github.io/rboto/getting-started/).

## Usage

Configure credentials through your environment, shared profile, or workload role.
The example uses `us-east-1`; select a region where your service and resources are available.
Resource names, identifiers, input files, and model IDs in the example are placeholders
to replace with your own.

```python
import asyncio

from rboto import CloudWatchClient


async def main() -> None:
    async with CloudWatchClient(region="eu-west-2") as client:
        await client.put_metric_data(
            namespace="MyApplication",
            metric_data=[{
                "metric_name": "ProcessedEvents",
                "value": 1.0,
                "unit": "Count",
                "dimensions": [{"name": "Environment", "value": "development"}],
            }],
        )
        async for page in client.paginators.describe_alarms(max_records=20):
            for alarm in page.metric_alarms or []:
                print(alarm.alarm_name, alarm.state_value)


if __name__ == "__main__":
    asyncio.run(main())
```

In an application with an event loop, call `await main()` instead of `asyncio.run(main())`.
Reuse the client across calls. Constructing a client does not send a request.
Use `async with` or `await client.aclose()` to close it. Returned streams have
their own `aclose()` and async contexts; see
[client and stream lifetimes](https://ferrumio.github.io/rboto/guides/lifecycle/).

## API conventions

- Import the client with `from rboto import CloudWatchClient`.
- Every operation is asynchronous: use `await client.method(...)`.
- Operation arguments are keyword-only and use the Python names listed below.
- Structured inputs use typed dictionaries and tagged unions from `rboto_cloudwatch.types`.
- Regular responses expose typed attributes; `response.to_dict()` converts them to a dictionary.
- Event-stream responses may be typed dictionaries containing async iterators. Follow the
  declared return type; consume event streams with `async for`.
- Byte streams are consumed asynchronously. `await stream.read()` buffers the complete body;
  iterate the stream when processing a large response.
- Direct operation calls return one page.
- Use `async for page in client.paginators.method(...)` for supported paginated operations.
  Paginators accept the same typed arguments as the corresponding client method.

- Catch modeled exceptions from `rboto_cloudwatch.exceptions`. Their `error_code`,
  `message`, and `operation_name` identify service failures.

Clients also accept `profile`, `endpoint_url`, or shared `Session` settings.
See [configuration](https://ferrumio.github.io/rboto/guides/configuration/),
[errors](https://ferrumio.github.io/rboto/guides/errors/), and
[streaming](https://ferrumio.github.io/rboto/guides/streaming/).

## Waiters

Use `await client.waiters.name(...)` to wait for a resource state. Each waiter accepts
the polling operation's typed arguments plus `waiter_config: WaiterConfig | None`.
Import `WaiterConfig` from `rboto` to set the poll delay, maximum attempts, or overall
timeout. See the [waiter guide](https://ferrumio.github.io/rboto/guides/waiters/).

| Waiter | Polling operation |
|---|---|
| [`alarm_exists`](https://ferrumio.github.io/rboto/reference/cloudwatch/operations/describe_alarms/#waiters) | `describe_alarms` |
| [`alarm_mute_rule_exists`](https://ferrumio.github.io/rboto/reference/cloudwatch/operations/get_alarm_mute_rule/#waiters) | `get_alarm_mute_rule` |
| [`composite_alarm_exists`](https://ferrumio.github.io/rboto/reference/cloudwatch/operations/describe_alarms/#waiters) | `describe_alarms` |
| [`log_alarm_exists`](https://ferrumio.github.io/rboto/reference/cloudwatch/operations/describe_alarms/#waiters) | `describe_alarms` |

## Operations

The [operation reference](https://ferrumio.github.io/rboto/reference/cloudwatch/)
documents arguments, nested types, Output fields, errors and pagination.
Method and type docstrings link to their reference pages.

This is the complete operation catalog for this generated package. “Required arguments”
lists arguments without defaults in the Python signature. Service-side conditions may
require additional arguments. Each method links to its complete signature, including
optional arguments. Nested input definitions are in `rboto_cloudwatch.types`;
native response definitions are in the package's `_native.pyi`.

| Method | Required arguments | Return type |
|---|---|---|
| [`associate_dataset_kms_key`](#associate_dataset_kms_key) | <code>dataset_identifier: str</code>, <code>kms_key_arn: str</code> | <code>AssociateDatasetKmsKeyOutput</code> |
| [`create_resource_metrics_configuration`](#create_resource_metrics_configuration) | <code>resource_arn: str</code> | <code>CreateResourceMetricsConfigurationOutput</code> |
| [`delete_alarm_mute_rule`](#delete_alarm_mute_rule) | <code>alarm_mute_rule_name: str</code> | <code>None</code> |
| [`delete_alarms`](#delete_alarms) | <code>alarm_names: Sequence[str]</code> | <code>None</code> |
| [`delete_anomaly_detector`](#delete_anomaly_detector) | None | <code>DeleteAnomalyDetectorOutput</code> |
| [`delete_dashboards`](#delete_dashboards) | <code>dashboard_names: Sequence[str]</code> | <code>DeleteDashboardsOutput</code> |
| [`delete_insight_rules`](#delete_insight_rules) | <code>rule_names: Sequence[str]</code> | <code>DeleteInsightRulesOutput</code> |
| [`delete_metric_data_query_definition`](#delete_metric_data_query_definition) | <code>id: str</code> | <code>DeleteMetricDataQueryDefinitionOutput</code> |
| [`delete_metric_stream`](#delete_metric_stream) | <code>name: str</code> | <code>DeleteMetricStreamOutput</code> |
| [`delete_resource_metrics_configuration`](#delete_resource_metrics_configuration) | <code>resource_arn: str</code> | <code>DeleteResourceMetricsConfigurationOutput</code> |
| [`describe_alarm_contributors`](#describe_alarm_contributors) | <code>alarm_name: str</code> | <code>DescribeAlarmContributorsOutput</code> |
| [`describe_alarm_history`](#describe_alarm_history) | None | <code>DescribeAlarmHistoryOutput</code> |
| [`describe_alarms`](#describe_alarms) | None | <code>DescribeAlarmsOutput</code> |
| [`describe_alarms_for_metric`](#describe_alarms_for_metric) | <code>metric_name: str</code>, <code>namespace: str</code> | <code>DescribeAlarmsForMetricOutput</code> |
| [`describe_anomaly_detectors`](#describe_anomaly_detectors) | None | <code>DescribeAnomalyDetectorsOutput</code> |
| [`describe_insight_rules`](#describe_insight_rules) | None | <code>DescribeInsightRulesOutput</code> |
| [`disable_alarm_actions`](#disable_alarm_actions) | <code>alarm_names: Sequence[str]</code> | <code>None</code> |
| [`disable_insight_rules`](#disable_insight_rules) | <code>rule_names: Sequence[str]</code> | <code>DisableInsightRulesOutput</code> |
| [`disassociate_dataset_kms_key`](#disassociate_dataset_kms_key) | <code>dataset_identifier: str</code> | <code>DisassociateDatasetKmsKeyOutput</code> |
| [`enable_alarm_actions`](#enable_alarm_actions) | <code>alarm_names: Sequence[str]</code> | <code>None</code> |
| [`enable_insight_rules`](#enable_insight_rules) | <code>rule_names: Sequence[str]</code> | <code>EnableInsightRulesOutput</code> |
| [`get_alarm_mute_rule`](#get_alarm_mute_rule) | <code>alarm_mute_rule_name: str</code> | <code>GetAlarmMuteRuleOutput</code> |
| [`get_dashboard`](#get_dashboard) | <code>dashboard_name: str</code> | <code>GetDashboardOutput</code> |
| [`get_dataset`](#get_dataset) | <code>dataset_identifier: str</code> | <code>GetDatasetOutput</code> |
| [`get_insight_rule_report`](#get_insight_rule_report) | <code>rule_name: str</code>, <code>start_time: str</code>, <code>end_time: str</code>, <code>period: int</code> | <code>GetInsightRuleReportOutput</code> |
| [`get_metric_data`](#get_metric_data) | <code>metric_data_queries: Sequence[MetricDataQuery]</code>, <code>start_time: str</code>, <code>end_time: str</code> | <code>GetMetricDataOutput</code> |
| [`get_metric_data_query_definition`](#get_metric_data_query_definition) | <code>id: str</code> | <code>GetMetricDataQueryDefinitionOutput</code> |
| [`get_metric_statistics`](#get_metric_statistics) | <code>namespace: str</code>, <code>metric_name: str</code>, <code>start_time: str</code>, <code>end_time: str</code>, <code>period: int</code> | <code>GetMetricStatisticsOutput</code> |
| [`get_metric_stream`](#get_metric_stream) | <code>name: str</code> | <code>GetMetricStreamOutput</code> |
| [`get_metric_widget_image`](#get_metric_widget_image) | <code>metric_widget: str</code> | <code>GetMetricWidgetImageOutput</code> |
| [`get_o_tel_enrichment`](#get_o_tel_enrichment) | None | <code>GetOTelEnrichmentOutput</code> |
| [`get_resource_metrics_configuration`](#get_resource_metrics_configuration) | <code>resource_arn: str</code> | <code>GetResourceMetricsConfigurationOutput</code> |
| [`list_alarm_mute_rules`](#list_alarm_mute_rules) | None | <code>ListAlarmMuteRulesOutput</code> |
| [`list_dashboards`](#list_dashboards) | None | <code>ListDashboardsOutput</code> |
| [`list_managed_insight_rules`](#list_managed_insight_rules) | <code>resource_arn: str</code> | <code>ListManagedInsightRulesOutput</code> |
| [`list_metric_data_query_definitions`](#list_metric_data_query_definitions) | None | <code>ListMetricDataQueryDefinitionsOutput</code> |
| [`list_metric_streams`](#list_metric_streams) | None | <code>ListMetricStreamsOutput</code> |
| [`list_metrics`](#list_metrics) | None | <code>ListMetricsOutput</code> |
| [`list_tags_for_resource`](#list_tags_for_resource) | <code>resource_arn: str</code> | <code>ListTagsForResourceOutput</code> |
| [`put_alarm_mute_rule`](#put_alarm_mute_rule) | <code>name: str</code>, <code>rule: Rule</code> | <code>None</code> |
| [`put_anomaly_detector`](#put_anomaly_detector) | None | <code>PutAnomalyDetectorOutput</code> |
| [`put_composite_alarm`](#put_composite_alarm) | <code>alarm_name: str</code>, <code>alarm_rule: str</code> | <code>None</code> |
| [`put_dashboard`](#put_dashboard) | <code>dashboard_name: str</code>, <code>dashboard_body: str</code> | <code>PutDashboardOutput</code> |
| [`put_insight_rule`](#put_insight_rule) | <code>rule_name: str</code>, <code>rule_definition: str</code> | <code>PutInsightRuleOutput</code> |
| [`put_log_alarm`](#put_log_alarm) | <code>alarm_name: str</code>, <code>scheduled_query_configuration: ScheduledQueryConfiguration</code>, <code>query_results_to_evaluate: int</code>, <code>query_results_to_alarm: int</code>, <code>threshold: float</code>, <code>comparison_operator: ComparisonOperator</code> | <code>None</code> |
| [`put_managed_insight_rules`](#put_managed_insight_rules) | <code>managed_rules: Sequence[ManagedRule]</code> | <code>PutManagedInsightRulesOutput</code> |
| [`put_metric_alarm`](#put_metric_alarm) | <code>alarm_name: str</code> | <code>None</code> |
| [`put_metric_data`](#put_metric_data) | <code>namespace: str</code> | <code>None</code> |
| [`put_metric_data_query_definition`](#put_metric_data_query_definition) | <code>path: str</code>, <code>expression: str</code>, <code>type: QueryType</code> | <code>PutMetricDataQueryDefinitionOutput</code> |
| [`put_metric_stream`](#put_metric_stream) | <code>name: str</code>, <code>firehose_arn: str</code>, <code>role_arn: str</code>, <code>output_format: MetricStreamOutputFormat</code> | <code>PutMetricStreamOutput</code> |
| [`set_alarm_state`](#set_alarm_state) | <code>alarm_name: str</code>, <code>state_value: StateValue</code>, <code>state_reason: str</code> | <code>None</code> |
| [`start_metric_streams`](#start_metric_streams) | <code>names: Sequence[str]</code> | <code>StartMetricStreamsOutput</code> |
| [`start_o_tel_enrichment`](#start_o_tel_enrichment) | None | <code>StartOTelEnrichmentOutput</code> |
| [`stop_metric_streams`](#stop_metric_streams) | <code>names: Sequence[str]</code> | <code>StopMetricStreamsOutput</code> |
| [`stop_o_tel_enrichment`](#stop_o_tel_enrichment) | None | <code>StopOTelEnrichmentOutput</code> |
| [`tag_resource`](#tag_resource) | <code>resource_arn: str</code>, <code>tags: Sequence[Tag]</code> | <code>TagResourceOutput</code> |
| [`untag_resource`](#untag_resource) | <code>resource_arn: str</code>, <code>tag_keys: Sequence[str]</code> | <code>UntagResourceOutput</code> |
| [`update_o_tel_enrichment`](#update_o_tel_enrichment) | None | <code>UpdateOTelEnrichmentOutput</code> |
| [`update_resource_metrics_configuration`](#update_resource_metrics_configuration) | <code>resource_arn: str</code> | <code>UpdateResourceMetricsConfigurationOutput</code> |

## Complete signatures

### associate_dataset_kms_key

```python
async def associate_dataset_kms_key(
    *,
    dataset_identifier: str,
    kms_key_arn: str,
) -> AssociateDatasetKmsKeyOutput: ...
```


### create_resource_metrics_configuration

```python
async def create_resource_metrics_configuration(
    *,
    resource_arn: str,
    metric_selections: Sequence[ResourceMetricSelection] | None = None,
) -> CreateResourceMetricsConfigurationOutput: ...
```


### delete_alarm_mute_rule

```python
async def delete_alarm_mute_rule(
    *,
    alarm_mute_rule_name: str,
) -> None: ...
```


### delete_alarms

```python
async def delete_alarms(
    *,
    alarm_names: Sequence[str],
) -> None: ...
```


### delete_anomaly_detector

```python
async def delete_anomaly_detector(
    *,
    anomaly_detector_id: str | None = None,
    namespace: str | None = None,
    metric_name: str | None = None,
    dimensions: Sequence[Dimension] | None = None,
    stat: str | None = None,
    single_metric_anomaly_detector: SingleMetricAnomalyDetector | None = None,
    metric_math_anomaly_detector: MetricMathAnomalyDetector | None = None,
) -> DeleteAnomalyDetectorOutput: ...
```


### delete_dashboards

```python
async def delete_dashboards(
    *,
    dashboard_names: Sequence[str],
) -> DeleteDashboardsOutput: ...
```


### delete_insight_rules

```python
async def delete_insight_rules(
    *,
    rule_names: Sequence[str],
) -> DeleteInsightRulesOutput: ...
```


### delete_metric_data_query_definition

```python
async def delete_metric_data_query_definition(
    *,
    id: str,
) -> DeleteMetricDataQueryDefinitionOutput: ...
```


### delete_metric_stream

```python
async def delete_metric_stream(
    *,
    name: str,
) -> DeleteMetricStreamOutput: ...
```


### delete_resource_metrics_configuration

```python
async def delete_resource_metrics_configuration(
    *,
    resource_arn: str,
) -> DeleteResourceMetricsConfigurationOutput: ...
```


### describe_alarm_contributors

```python
async def describe_alarm_contributors(
    *,
    alarm_name: str,
    next_token: str | None = None,
) -> DescribeAlarmContributorsOutput: ...
```

Also available as `client.paginators.describe_alarm_contributors(...)`, returning an
async iterator of the response type above.


### describe_alarm_history

```python
async def describe_alarm_history(
    *,
    alarm_name: str | None = None,
    alarm_contributor_id: str | None = None,
    alarm_types: Sequence[AlarmType] | None = None,
    history_item_type: HistoryItemType | None = None,
    start_date: str | None = None,
    end_date: str | None = None,
    max_records: int | None = None,
    next_token: str | None = None,
    scan_by: ScanBy | None = None,
) -> DescribeAlarmHistoryOutput: ...
```

Also available as `client.paginators.describe_alarm_history(...)`, returning an
async iterator of the response type above.


### describe_alarms

```python
async def describe_alarms(
    *,
    alarm_names: Sequence[str] | None = None,
    alarm_name_prefix: str | None = None,
    alarm_types: Sequence[AlarmType] | None = None,
    children_of_alarm_name: str | None = None,
    parents_of_alarm_name: str | None = None,
    state_value: StateValue | None = None,
    action_prefix: str | None = None,
    max_records: int | None = None,
    next_token: str | None = None,
) -> DescribeAlarmsOutput: ...
```

Also available as `client.paginators.describe_alarms(...)`, returning an
async iterator of the response type above.


### describe_alarms_for_metric

```python
async def describe_alarms_for_metric(
    *,
    metric_name: str,
    namespace: str,
    statistic: Statistic | None = None,
    extended_statistic: str | None = None,
    dimensions: Sequence[Dimension] | None = None,
    period: int | None = None,
    unit: StandardUnit | None = None,
) -> DescribeAlarmsForMetricOutput: ...
```


### describe_anomaly_detectors

```python
async def describe_anomaly_detectors(
    *,
    anomaly_detector_ids: Sequence[str] | None = None,
    next_token: str | None = None,
    max_results: int | None = None,
    namespace: str | None = None,
    metric_name: str | None = None,
    dimensions: Sequence[Dimension] | None = None,
    anomaly_detector_types: Sequence[AnomalyDetectorType] | None = None,
) -> DescribeAnomalyDetectorsOutput: ...
```

Also available as `client.paginators.describe_anomaly_detectors(...)`, returning an
async iterator of the response type above.


### describe_insight_rules

```python
async def describe_insight_rules(
    *,
    next_token: str | None = None,
    max_results: int | None = None,
) -> DescribeInsightRulesOutput: ...
```

Also available as `client.paginators.describe_insight_rules(...)`, returning an
async iterator of the response type above.


### disable_alarm_actions

```python
async def disable_alarm_actions(
    *,
    alarm_names: Sequence[str],
) -> None: ...
```


### disable_insight_rules

```python
async def disable_insight_rules(
    *,
    rule_names: Sequence[str],
) -> DisableInsightRulesOutput: ...
```


### disassociate_dataset_kms_key

```python
async def disassociate_dataset_kms_key(
    *,
    dataset_identifier: str,
) -> DisassociateDatasetKmsKeyOutput: ...
```


### enable_alarm_actions

```python
async def enable_alarm_actions(
    *,
    alarm_names: Sequence[str],
) -> None: ...
```


### enable_insight_rules

```python
async def enable_insight_rules(
    *,
    rule_names: Sequence[str],
) -> EnableInsightRulesOutput: ...
```


### get_alarm_mute_rule

```python
async def get_alarm_mute_rule(
    *,
    alarm_mute_rule_name: str,
) -> GetAlarmMuteRuleOutput: ...
```


### get_dashboard

```python
async def get_dashboard(
    *,
    dashboard_name: str,
) -> GetDashboardOutput: ...
```


### get_dataset

```python
async def get_dataset(
    *,
    dataset_identifier: str,
) -> GetDatasetOutput: ...
```


### get_insight_rule_report

```python
async def get_insight_rule_report(
    *,
    rule_name: str,
    start_time: str,
    end_time: str,
    period: int,
    max_contributor_count: int | None = None,
    metrics: Sequence[str] | None = None,
    order_by: str | None = None,
) -> GetInsightRuleReportOutput: ...
```


### get_metric_data

```python
async def get_metric_data(
    *,
    metric_data_queries: Sequence[MetricDataQuery],
    start_time: str,
    end_time: str,
    next_token: str | None = None,
    scan_by: ScanBy | None = None,
    max_datapoints: int | None = None,
    label_options: LabelOptions | None = None,
) -> GetMetricDataOutput: ...
```

Also available as `client.paginators.get_metric_data(...)`, returning an
async iterator of the response type above.


### get_metric_data_query_definition

```python
async def get_metric_data_query_definition(
    *,
    id: str,
) -> GetMetricDataQueryDefinitionOutput: ...
```


### get_metric_statistics

```python
async def get_metric_statistics(
    *,
    namespace: str,
    metric_name: str,
    start_time: str,
    end_time: str,
    period: int,
    dimensions: Sequence[Dimension] | None = None,
    statistics: Sequence[Statistic] | None = None,
    extended_statistics: Sequence[str] | None = None,
    unit: StandardUnit | None = None,
) -> GetMetricStatisticsOutput: ...
```


### get_metric_stream

```python
async def get_metric_stream(
    *,
    name: str,
) -> GetMetricStreamOutput: ...
```


### get_metric_widget_image

```python
async def get_metric_widget_image(
    *,
    metric_widget: str,
    output_format: str | None = None,
) -> GetMetricWidgetImageOutput: ...
```


### get_o_tel_enrichment

```python
async def get_o_tel_enrichment() -> GetOTelEnrichmentOutput: ...
```


### get_resource_metrics_configuration

```python
async def get_resource_metrics_configuration(
    *,
    resource_arn: str,
) -> GetResourceMetricsConfigurationOutput: ...
```


### list_alarm_mute_rules

```python
async def list_alarm_mute_rules(
    *,
    alarm_name: str | None = None,
    statuses: Sequence[AlarmMuteRuleStatus] | None = None,
    max_records: int | None = None,
    next_token: str | None = None,
) -> ListAlarmMuteRulesOutput: ...
```

Also available as `client.paginators.list_alarm_mute_rules(...)`, returning an
async iterator of the response type above.


### list_dashboards

```python
async def list_dashboards(
    *,
    dashboard_name_prefix: str | None = None,
    next_token: str | None = None,
) -> ListDashboardsOutput: ...
```

Also available as `client.paginators.list_dashboards(...)`, returning an
async iterator of the response type above.


### list_managed_insight_rules

```python
async def list_managed_insight_rules(
    *,
    resource_arn: str,
    next_token: str | None = None,
    max_results: int | None = None,
) -> ListManagedInsightRulesOutput: ...
```

Also available as `client.paginators.list_managed_insight_rules(...)`, returning an
async iterator of the response type above.


### list_metric_data_query_definitions

```python
async def list_metric_data_query_definitions(
    *,
    max_results: int | None = None,
    next_token: str | None = None,
) -> ListMetricDataQueryDefinitionsOutput: ...
```

Also available as `client.paginators.list_metric_data_query_definitions(...)`, returning an
async iterator of the response type above.


### list_metric_streams

```python
async def list_metric_streams(
    *,
    next_token: str | None = None,
    max_results: int | None = None,
) -> ListMetricStreamsOutput: ...
```

Also available as `client.paginators.list_metric_streams(...)`, returning an
async iterator of the response type above.


### list_metrics

```python
async def list_metrics(
    *,
    namespace: str | None = None,
    metric_name: str | None = None,
    dimensions: Sequence[DimensionFilter] | None = None,
    next_token: str | None = None,
    recently_active: RecentlyActive | None = None,
    include_linked_accounts: bool | None = None,
    owning_account: str | None = None,
) -> ListMetricsOutput: ...
```

Also available as `client.paginators.list_metrics(...)`, returning an
async iterator of the response type above.


### list_tags_for_resource

```python
async def list_tags_for_resource(
    *,
    resource_arn: str,
) -> ListTagsForResourceOutput: ...
```


### put_alarm_mute_rule

```python
async def put_alarm_mute_rule(
    *,
    name: str,
    rule: Rule,
    description: str | None = None,
    mute_targets: MuteTargets | None = None,
    tags: Sequence[Tag] | None = None,
    start_date: str | None = None,
    expire_date: str | None = None,
) -> None: ...
```


### put_anomaly_detector

```python
async def put_anomaly_detector(
    *,
    namespace: str | None = None,
    metric_name: str | None = None,
    dimensions: Sequence[Dimension] | None = None,
    stat: str | None = None,
    configuration: AnomalyDetectorConfiguration | None = None,
    metric_characteristics: MetricCharacteristics | None = None,
    single_metric_anomaly_detector: SingleMetricAnomalyDetector | None = None,
    metric_math_anomaly_detector: MetricMathAnomalyDetector | None = None,
) -> PutAnomalyDetectorOutput: ...
```


### put_composite_alarm

```python
async def put_composite_alarm(
    *,
    alarm_name: str,
    alarm_rule: str,
    actions_enabled: bool | None = None,
    alarm_actions: Sequence[str] | None = None,
    alarm_description: str | None = None,
    insufficient_data_actions: Sequence[str] | None = None,
    ok_actions: Sequence[str] | None = None,
    tags: Sequence[Tag] | None = None,
    actions_suppressor: str | None = None,
    actions_suppressor_wait_period: int | None = None,
    actions_suppressor_extension_period: int | None = None,
    action_configuration: ActionConfiguration | None = None,
) -> None: ...
```


### put_dashboard

```python
async def put_dashboard(
    *,
    dashboard_name: str,
    dashboard_body: str,
    tags: Sequence[Tag] | None = None,
) -> PutDashboardOutput: ...
```


### put_insight_rule

```python
async def put_insight_rule(
    *,
    rule_name: str,
    rule_definition: str,
    rule_state: str | None = None,
    tags: Sequence[Tag] | None = None,
    apply_on_transformed_logs: bool | None = None,
) -> PutInsightRuleOutput: ...
```


### put_log_alarm

```python
async def put_log_alarm(
    *,
    alarm_name: str,
    scheduled_query_configuration: ScheduledQueryConfiguration,
    query_results_to_evaluate: int,
    query_results_to_alarm: int,
    threshold: float,
    comparison_operator: ComparisonOperator,
    alarm_description: str | None = None,
    action_log_line_count: int | None = None,
    action_log_line_role_arn: str | None = None,
    actions_enabled: bool | None = None,
    ok_actions: Sequence[str] | None = None,
    alarm_actions: Sequence[str] | None = None,
    insufficient_data_actions: Sequence[str] | None = None,
    treat_missing_data: str | None = None,
    tags: Sequence[Tag] | None = None,
    warm_up_configuration: WarmUpConfiguration | None = None,
    action_configuration: ActionConfiguration | None = None,
) -> None: ...
```


### put_managed_insight_rules

```python
async def put_managed_insight_rules(
    *,
    managed_rules: Sequence[ManagedRule],
) -> PutManagedInsightRulesOutput: ...
```


### put_metric_alarm

```python
async def put_metric_alarm(
    *,
    alarm_name: str,
    alarm_description: str | None = None,
    actions_enabled: bool | None = None,
    ok_actions: Sequence[str] | None = None,
    alarm_actions: Sequence[str] | None = None,
    insufficient_data_actions: Sequence[str] | None = None,
    metric_name: str | None = None,
    namespace: str | None = None,
    statistic: Statistic | None = None,
    extended_statistic: str | None = None,
    dimensions: Sequence[Dimension] | None = None,
    period: int | None = None,
    unit: StandardUnit | None = None,
    evaluation_periods: int | None = None,
    datapoints_to_alarm: int | None = None,
    threshold: float | None = None,
    comparison_operator: ComparisonOperator | None = None,
    treat_missing_data: str | None = None,
    evaluate_low_sample_count_percentile: str | None = None,
    metrics: Sequence[MetricDataQuery] | None = None,
    tags: Sequence[Tag] | None = None,
    threshold_metric_id: str | None = None,
    evaluation_window: EvaluationWindow | None = None,
    warm_up_configuration: WarmUpConfiguration | None = None,
    evaluation_criteria: EvaluationCriteria | None = None,
    evaluation_interval: int | None = None,
    action_configuration: ActionConfiguration | None = None,
) -> None: ...
```


### put_metric_data

```python
async def put_metric_data(
    *,
    namespace: str,
    metric_data: Sequence[MetricDatum] | None = None,
    entity_metric_data: Sequence[EntityMetricData] | None = None,
    strict_entity_validation: bool | None = None,
) -> None: ...
```


### put_metric_data_query_definition

```python
async def put_metric_data_query_definition(
    *,
    path: str,
    expression: str,
    type: QueryType,
    id: str | None = None,
    tags: Sequence[Tag] | None = None,
) -> PutMetricDataQueryDefinitionOutput: ...
```


### put_metric_stream

```python
async def put_metric_stream(
    *,
    name: str,
    firehose_arn: str,
    role_arn: str,
    output_format: MetricStreamOutputFormat,
    include_filters: Sequence[MetricStreamFilter] | None = None,
    exclude_filters: Sequence[MetricStreamFilter] | None = None,
    tags: Sequence[Tag] | None = None,
    statistics_configurations: Sequence[MetricStreamStatisticsConfiguration] | None = None,
    include_linked_accounts_metrics: bool | None = None,
) -> PutMetricStreamOutput: ...
```


### set_alarm_state

```python
async def set_alarm_state(
    *,
    alarm_name: str,
    state_value: StateValue,
    state_reason: str,
    state_reason_data: str | None = None,
) -> None: ...
```


### start_metric_streams

```python
async def start_metric_streams(
    *,
    names: Sequence[str],
) -> StartMetricStreamsOutput: ...
```


### start_o_tel_enrichment

```python
async def start_o_tel_enrichment(
    *,
    include_filters: Sequence[OTelEnrichmentMetricSelector] | None = None,
    exclude_filters: Sequence[OTelEnrichmentMetricSelector] | None = None,
) -> StartOTelEnrichmentOutput: ...
```


### stop_metric_streams

```python
async def stop_metric_streams(
    *,
    names: Sequence[str],
) -> StopMetricStreamsOutput: ...
```


### stop_o_tel_enrichment

```python
async def stop_o_tel_enrichment() -> StopOTelEnrichmentOutput: ...
```


### tag_resource

```python
async def tag_resource(
    *,
    resource_arn: str,
    tags: Sequence[Tag],
) -> TagResourceOutput: ...
```


### untag_resource

```python
async def untag_resource(
    *,
    resource_arn: str,
    tag_keys: Sequence[str],
) -> UntagResourceOutput: ...
```


### update_o_tel_enrichment

```python
async def update_o_tel_enrichment(
    *,
    include_filters: Sequence[OTelEnrichmentMetricSelector] | None = None,
    exclude_filters: Sequence[OTelEnrichmentMetricSelector] | None = None,
) -> UpdateOTelEnrichmentOutput: ...
```


### update_resource_metrics_configuration

```python
async def update_resource_metrics_configuration(
    *,
    resource_arn: str,
    metric_selections: Sequence[ResourceMetricSelection] | None = None,
) -> UpdateResourceMetricsConfigurationOutput: ...
```


## Links

- [Service guide](https://ferrumio.github.io/rboto/guides/cloudwatch/)
- [Repository](https://github.com/ferrumio/rboto)
- [Issues](https://github.com/ferrumio/rboto/issues)
- [Releases](https://github.com/ferrumio/rboto/releases)

Licensed under Apache-2.0.

