Skip to content

EC2  >  Structures  >  DataQuery

DataQuery

Structure Class

DataQuery dataclass

Bases: _SerdeShape

A query used for retrieving network health data.

Attributes

destination class-attribute instance-attribute
destination: str | None = ...

The Region or Availability Zone that's the target for the data query. For example, eu-north-1.

id class-attribute instance-attribute
id: str | None = ...

A user-defined ID associated with a data query that's returned in the dataResponse identifying the query. For example, if you set the Id to MyQuery01in the query, the dataResponse identifies the query as MyQuery01.

metric class-attribute instance-attribute
metric: str | None = ...

The metric used for the network performance request.

period class-attribute instance-attribute
period: str | None = ...

The aggregation period used for the data query.

source class-attribute instance-attribute
source: str | None = ...

The Region or Availability Zone that's the source for the data query. For example, us-east-1.

statistic class-attribute instance-attribute
statistic: str | None = ...

The metric data aggregation period, p50, between the specified startDate and endDate. For example, a metric of five_minutes is the median of all the data points gathered within those five minutes. p50 is the only supported metric.