@Generated(value="software.amazon.awssdk:codegen") public final class DataQuery extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataQuery.Builder,DataQuery>
A query used for retrieving network health data.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataQuery.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DataQuery.Builder |
builder() |
String |
destination()
The Region or Availability Zone that's the target for the data query.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
A user-defined ID associated with a data query that's returned in the
dataResponse identifying the
query. |
MetricType |
metric()
The aggregation metric used for the data query.
|
String |
metricAsString()
The aggregation metric used for the data query.
|
PeriodType |
period()
The aggregation period used for the data query.
|
String |
periodAsString()
The aggregation period used for the data query.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DataQuery.Builder> |
serializableBuilderClass() |
String |
source()
The Region or Availability Zone that's the source for the data query.
|
StatisticType |
statistic()
Metric data aggregations over specified periods of time.
|
String |
statisticAsString()
Metric data aggregations over specified periods of time.
|
DataQuery.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
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.
dataResponse
identifying the query. For example, if you set the Id to MyQuery01in the query, the
dataResponse identifies the query as MyQuery01.public final String source()
The Region or Availability Zone that's the source for the data query. For example, us-east-1.
us-east-1
.public final String destination()
The Region or Availability Zone that's the target for the data query. For example, eu-north-1.
eu-north-1.public final MetricType metric()
The aggregation metric used for the data query. Currently only aggregation-latency is supported,
indicating network latency.
If the service returns an enum value that is not available in the current SDK version, metric will
return MetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
metricAsString().
aggregation-latency is
supported, indicating network latency.MetricTypepublic final String metricAsString()
The aggregation metric used for the data query. Currently only aggregation-latency is supported,
indicating network latency.
If the service returns an enum value that is not available in the current SDK version, metric will
return MetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
metricAsString().
aggregation-latency is
supported, indicating network latency.MetricTypepublic final StatisticType statistic()
Metric data aggregations over specified periods of time. The following are the supported Infrastructure Performance statistics:
p50 - The median value of the metric aggregated over a specified start and end time. For example, a
metric of five_minutes is the median of all the data points gathered within those five minutes.
If the service returns an enum value that is not available in the current SDK version, statistic will
return StatisticType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statisticAsString().
p50 - The median value of the metric aggregated over a specified start and end time. For
example, a metric of five_minutes is the median of all the data points gathered within those
five minutes.
StatisticTypepublic final String statisticAsString()
Metric data aggregations over specified periods of time. The following are the supported Infrastructure Performance statistics:
p50 - The median value of the metric aggregated over a specified start and end time. For example, a
metric of five_minutes is the median of all the data points gathered within those five minutes.
If the service returns an enum value that is not available in the current SDK version, statistic will
return StatisticType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statisticAsString().
p50 - The median value of the metric aggregated over a specified start and end time. For
example, a metric of five_minutes is the median of all the data points gathered within those
five minutes.
StatisticTypepublic final PeriodType period()
The aggregation period used for the data query.
If the service returns an enum value that is not available in the current SDK version, period will
return PeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodAsString().
PeriodTypepublic final String periodAsString()
The aggregation period used for the data query.
If the service returns an enum value that is not available in the current SDK version, period will
return PeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodAsString().
PeriodTypepublic DataQuery.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DataQuery.Builder,DataQuery>public static DataQuery.Builder builder()
public static Class<? extends DataQuery.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.