Struct google_api_proto::google::monitoring::dashboard::v1::scorecard::SparkChartView
source · pub struct SparkChartView {
pub spark_chart_type: i32,
pub min_alignment_period: Option<Duration>,
}
Expand description
A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard’s timeseries.
Fields§
§spark_chart_type: i32
Required. The type of sparkchart to show in this chartView.
min_alignment_period: Option<Duration>
The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.
Implementations§
source§impl SparkChartView
impl SparkChartView
sourcepub fn spark_chart_type(&self) -> SparkChartType
pub fn spark_chart_type(&self) -> SparkChartType
Returns the enum value of spark_chart_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_spark_chart_type(&mut self, value: SparkChartType)
pub fn set_spark_chart_type(&mut self, value: SparkChartType)
Sets spark_chart_type
to the provided enum value.
Trait Implementations§
source§impl Clone for SparkChartView
impl Clone for SparkChartView
source§fn clone(&self) -> SparkChartView
fn clone(&self) -> SparkChartView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SparkChartView
impl Debug for SparkChartView
source§impl Default for SparkChartView
impl Default for SparkChartView
source§impl Message for SparkChartView
impl Message for SparkChartView
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 SparkChartView
impl PartialEq for SparkChartView
source§fn eq(&self, other: &SparkChartView) -> bool
fn eq(&self, other: &SparkChartView) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for SparkChartView
impl StructuralPartialEq for SparkChartView
Auto Trait Implementations§
impl Freeze for SparkChartView
impl RefUnwindSafe for SparkChartView
impl Send for SparkChartView
impl Sync for SparkChartView
impl Unpin for SparkChartView
impl UnwindSafe for SparkChartView
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