Skip to content

UpdateFleetMetricRequest

Source code in docs_src/capo_iot/types/update_fleet_metric_request.py
class UpdateFleetMetricRequest(TypedDict, closed=True):
    metric_name: "capo_iot.types.fleet_metric_name.FleetMetricName"
    """<p>The name of the fleet metric to update.</p>"""
    query_string: NotRequired["capo_iot.types.query_string.QueryString"]
    """<p>The search query string.</p>"""
    aggregation_type: NotRequired["capo_iot.types.aggregation_type.AggregationType"]
    """<p>The type of the aggregation query.</p>"""
    period: NotRequired["capo_iot.types.fleet_metric_period.FleetMetricPeriod"]
    """<p>The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.</p>"""
    aggregation_field: NotRequired["capo_iot.types.aggregation_field.AggregationField"]
    """<p>The field to aggregate.</p>"""
    description: NotRequired[
        "capo_iot.types.fleet_metric_description.FleetMetricDescription"
    ]
    """<p>The description of the fleet metric.</p>"""
    query_version: NotRequired["capo_iot.types.query_version.QueryVersion"]
    """<p>The version of the query.</p>"""
    index_name: "capo_iot.types.index_name.IndexName"
    """<p>The name of the index to search.</p>"""
    unit: NotRequired["capo_iot.types.fleet_metric_unit.FleetMetricUnit"]
    """<p>Used to support unit transformation such as milliseconds to seconds. The unit must be supported by <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">CW metric</a>.</p>"""
    expected_version: NotRequired["capo_iot.types.optional_version.OptionalVersion"]
    """<p>The expected version of the fleet metric record in the registry.</p>"""

aggregation_field instance-attribute

aggregation_field: NotRequired[AggregationField]

The field to aggregate.

aggregation_type instance-attribute

aggregation_type: NotRequired[AggregationType]

The type of the aggregation query.

description instance-attribute

description: NotRequired[FleetMetricDescription]

The description of the fleet metric.

expected_version instance-attribute

expected_version: NotRequired[OptionalVersion]

The expected version of the fleet metric record in the registry.

index_name instance-attribute

index_name: IndexName

The name of the index to search.

metric_name instance-attribute

metric_name: FleetMetricName

The name of the fleet metric to update.

period instance-attribute

period: NotRequired[FleetMetricPeriod]

The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.

query_string instance-attribute

query_string: NotRequired[QueryString]

The search query string.

query_version instance-attribute

query_version: NotRequired[QueryVersion]

The version of the query.

unit instance-attribute

unit: NotRequired[FleetMetricUnit]

Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric.