#[non_exhaustive]pub struct MetricsQueryResponse {
pub error: Option<String>,
pub from_date: Option<i64>,
pub group_by: Option<Vec<String>>,
pub message: Option<String>,
pub query: Option<String>,
pub res_type: Option<String>,
pub series: Option<Vec<MetricsQueryMetadata>>,
pub status: Option<String>,
pub to_date: Option<i64>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Response Object that includes your query and the list of metrics retrieved.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.error: Option<String>
Message indicating the errors if status is not ok
.
from_date: Option<i64>
Start of requested time window, milliseconds since Unix epoch.
group_by: Option<Vec<String>>
List of tag keys on which to group.
message: Option<String>
Message indicating success
if status is ok
.
query: Option<String>
Query string
res_type: Option<String>
Type of response.
series: Option<Vec<MetricsQueryMetadata>>
List of timeseries queried.
status: Option<String>
Status of the query.
to_date: Option<i64>
End of requested time window, milliseconds since Unix epoch.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl MetricsQueryResponse
impl MetricsQueryResponse
pub fn new() -> MetricsQueryResponse
pub fn error(self, value: String) -> Self
pub fn from_date(self, value: i64) -> Self
pub fn group_by(self, value: Vec<String>) -> Self
pub fn message(self, value: String) -> Self
pub fn query(self, value: String) -> Self
pub fn res_type(self, value: String) -> Self
pub fn series(self, value: Vec<MetricsQueryMetadata>) -> Self
pub fn status(self, value: String) -> Self
pub fn to_date(self, value: i64) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for MetricsQueryResponse
impl Clone for MetricsQueryResponse
Source§fn clone(&self) -> MetricsQueryResponse
fn clone(&self) -> MetricsQueryResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetricsQueryResponse
impl Debug for MetricsQueryResponse
Source§impl Default for MetricsQueryResponse
impl Default for MetricsQueryResponse
Source§impl<'de> Deserialize<'de> for MetricsQueryResponse
impl<'de> Deserialize<'de> for MetricsQueryResponse
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MetricsQueryResponse
impl PartialEq for MetricsQueryResponse
Source§impl Serialize for MetricsQueryResponse
impl Serialize for MetricsQueryResponse
impl StructuralPartialEq for MetricsQueryResponse
Auto Trait Implementations§
impl Freeze for MetricsQueryResponse
impl RefUnwindSafe for MetricsQueryResponse
impl Send for MetricsQueryResponse
impl Sync for MetricsQueryResponse
impl Unpin for MetricsQueryResponse
impl UnwindSafe for MetricsQueryResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more