Skip to content

CloudWatchClient.get_insight_rule_report

rboto-cloudwatch==0.4.0 · Service index · Types

Model summary (excerpt): This operation returns the time series data collected by a Contributor Insights rule. The data includes the identity and number of contributors to the log group. You can also optionally return one or more statistics about each data point in the time series. These statistics can include the following: UniqueContributors -- the number of unique contributors for each data point....

Install and imports

python -m pip install "rboto[cloudwatch]==0.4.0"
from rboto import CloudWatchClient
from collections.abc import Sequence
from rboto_cloudwatch.types import (
    GetInsightRuleReportOutput,
)

Signature

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: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
rule_name Yes The name of the rule that you want to see data from.
start_time Yes The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as yyyy-MM-dd'T'HH:mm:ss . For example, 2019-07-01T23:59:59 .
end_time Yes The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as yyyy-MM-dd'T'HH:mm:ss . For example, 2019-07-01T23:59:59 .
period Yes The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results.
max_contributor_count No The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the default of 10 is used.
metrics No Specifies which metrics to use for aggregation of contributor values for the report. You can specify one or more of the following metrics: UniqueContributors -- the number of unique contributors for each data point. MaxContributorValue -- the value of the top contributor for each data point. The identity of the contributor might change for each data point in the graph. If this rule aggregates...
order_by No Determines what statistic to use to rank the contributors. Valid values are Sum and Maximum .

Output

GetInsightRuleReportOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
key_labels list[str] | None Always present —
aggregation_statistic str | None Always present —
aggregate_value float | None Always present —
approximate_unique_count int | None Always present —
contributors list[InsightRuleContributorOutput] | None Always present InsightRuleContributorOutput
metric_datapoints list[InsightRuleMetricDatapointOutput] | None Always present InsightRuleMetricDatapointOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

GetInsightRuleReportOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_cloudwatch.exceptions:

InvalidParameterValueError, MissingRequiredParameterError, ResourceNotFoundExceptionError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model