#[non_exhaustive]pub struct MetricsQueryMetadata {Show 14 fields
pub aggr: Option<Option<String>>,
pub display_name: Option<String>,
pub end: Option<i64>,
pub expression: Option<String>,
pub interval: Option<i64>,
pub length: Option<i64>,
pub metric: Option<String>,
pub pointlist: Option<Vec<Vec<Option<f64>>>>,
pub query_index: Option<i64>,
pub scope: Option<String>,
pub start: Option<i64>,
pub tag_set: Option<Vec<String>>,
pub unit: Option<Vec<Option<MetricsQueryUnit>>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Object containing all metric names returned and their associated metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.aggr: Option<Option<String>>
Aggregation type.
display_name: Option<String>
Display name of the metric.
end: Option<i64>
End of the time window, milliseconds since Unix epoch.
expression: Option<String>
Metric expression.
interval: Option<i64>
Number of milliseconds between data samples.
length: Option<i64>
Number of data samples.
metric: Option<String>
Metric name.
pointlist: Option<Vec<Vec<Option<f64>>>>
List of points of the timeseries in milliseconds.
query_index: Option<i64>
The index of the series’ query within the request.
scope: Option<String>
Metric scope, comma separated list of tags.
start: Option<i64>
Start of the time window, milliseconds since Unix epoch.
tag_set: Option<Vec<String>>
Unique tags identifying this series.
unit: Option<Vec<Option<MetricsQueryUnit>>>
Detailed information about the metric unit.
The first element describes the “primary unit” (for example, bytes
in bytes per second
).
The second element describes the “per unit” (for example, second
in bytes per second
).
If the second element is not present, the API returns null.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl MetricsQueryMetadata
impl MetricsQueryMetadata
pub fn new() -> MetricsQueryMetadata
pub fn aggr(self, value: Option<String>) -> Self
pub fn display_name(self, value: String) -> Self
pub fn end(self, value: i64) -> Self
pub fn expression(self, value: String) -> Self
pub fn interval(self, value: i64) -> Self
pub fn length(self, value: i64) -> Self
pub fn metric(self, value: String) -> Self
pub fn pointlist(self, value: Vec<Vec<Option<f64>>>) -> Self
pub fn query_index(self, value: i64) -> Self
pub fn scope(self, value: String) -> Self
pub fn start(self, value: i64) -> Self
pub fn tag_set(self, value: Vec<String>) -> Self
pub fn unit(self, value: Vec<Option<MetricsQueryUnit>>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for MetricsQueryMetadata
impl Clone for MetricsQueryMetadata
Source§fn clone(&self) -> MetricsQueryMetadata
fn clone(&self) -> MetricsQueryMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more