Struct google_api_proto::google::monitoring::dashboard::v1::xy_chart::DataSet
source · pub struct DataSet {
pub time_series_query: Option<TimeSeriesQuery>,
pub plot_type: i32,
pub legend_template: String,
pub min_alignment_period: Option<Duration>,
pub target_axis: i32,
}
Expand description
Groups a time series query definition with charting options.
Fields§
§time_series_query: Option<TimeSeriesQuery>
Required. Fields for querying time series data from the Stackdriver metrics API.
plot_type: i32
How this data should be plotted on the chart.
legend_template: String
A template string for naming TimeSeries
in the resulting data set.
This should be a string with interpolations of the form ${label_name}
,
which will resolve to the label’s value.
min_alignment_period: Option<Duration>
Optional. The lower bound on data point frequency for this data set,
implemented by specifying the minimum alignment period to use in a time
series query For example, if the data is published once every 10 minutes,
the min_alignment_period
should be at least 10 minutes. It would not
make sense to fetch and align data at one minute intervals.
target_axis: i32
Optional. The target axis to use for plotting the metric.
Implementations§
source§impl DataSet
impl DataSet
sourcepub fn plot_type(&self) -> PlotType
pub fn plot_type(&self) -> PlotType
Returns the enum value of plot_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_plot_type(&mut self, value: PlotType)
pub fn set_plot_type(&mut self, value: PlotType)
Sets plot_type
to the provided enum value.
sourcepub fn target_axis(&self) -> TargetAxis
pub fn target_axis(&self) -> TargetAxis
Returns the enum value of target_axis
, or the default if the field is set to an invalid enum value.
sourcepub fn set_target_axis(&mut self, value: TargetAxis)
pub fn set_target_axis(&mut self, value: TargetAxis)
Sets target_axis
to the provided enum value.
Trait Implementations§
source§impl Message for DataSet
impl Message for DataSet
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DataSet
impl PartialEq for DataSet
impl StructuralPartialEq for DataSet
Auto Trait Implementations§
impl Freeze for DataSet
impl RefUnwindSafe for DataSet
impl Send for DataSet
impl Sync for DataSet
impl Unpin for DataSet
impl UnwindSafe for DataSet
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request