describe_metric_filters
async
¶
describe_metric_filters(
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
log_group_name: Optional[LogGroupName] = None,
filter_name_prefix: Optional[FilterName] = None,
next_token: Optional[NextToken] = None,
limit: Optional[DescribeLimit] = None,
metric_name: Optional[MetricName] = None,
metric_namespace: Optional[MetricNamespace] = None,
) -> DescribeMetricFiltersResponse
Lists the specified metric filters. You can list all of the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.
Parameters:
-
log_group_name(Optional[LogGroupName], default:None) –The name of the log group.
-
filter_name_prefix(Optional[FilterName], default:None) –The prefix to match. CloudWatch Logs uses the value that you set here only if you also include the
logGroupNameparameter in your request. -
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
-
limit(Optional[DescribeLimit], default:None) –The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
-
metric_name(Optional[MetricName], default:None) –Filters results to include only those with the specified metric name. If you include this parameter in your request, you must also include the
metricNamespaceparameter. -
metric_namespace(Optional[MetricNamespace], default:None) –Filters results to include only those in the specified namespace. If you include this parameter in your request, you must also include the
metricNameparameter.
Raises:
-
InvalidParameterException–A parameter is specified incorrectly.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service cannot complete the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 | |