Struct google_api_proto::google::cloud::timeseriesinsights::v1::SlicingParams
source · pub struct SlicingParams {
pub dimension_names: Vec<String>,
pub pinned_dimensions: Vec<PinnedDimension>,
}
Expand description
Parameters that control how we slice the dataset and, optionally, filter slices that have some specific values on some dimensions (pinned dimensions).
Fields§
§dimension_names: Vec<String>
Required. Dimensions over which we will group the events in slices. The names
specified here come from the
[EventDimension.name][google.cloud.timeseriesinsights.v1.EventDimension.name] field. At least
one dimension name must be specified. All dimension names that do not exist
in the queried DataSet
will be ignored.
Currently only dimensions that hold string values can be specified here.
pinned_dimensions: Vec<PinnedDimension>
Optional. We will only analyze slices for which
[EvaluatedSlice.dimensions][google.cloud.timeseriesinsights.v1.EvaluatedSlice.dimensions] contain all of the
following pinned dimensions. A query with a pinned dimension { name: "d3" stringVal: "v3" }
will only analyze events which contain the dimension { name: "d3" stringVal: "v3" }
.
The [pinnedDimensions][google.cloud.timeseriesinsights.v1.SlicingParams.pinned_dimensions] and
[dimensionNames][google.cloud.timeseriesinsights.v1.SlicingParams.dimension_names] fields can not
share the same dimension names.
Example a valid specification:
{
dimensionNames: \["d1", "d2"\],
pinnedDimensions: [
{ name: "d3" stringVal: "v3" },
{ name: "d4" stringVal: "v4" }
]
}
In the previous example we will slice the dataset by dimensions “d1”, “d2”, “d3” and “d4”, but we will only analyze slices for which “d3=v3” and “d4=v4”.
The following example is invalid as “d2” is present in both dimensionNames and pinnedDimensions:
{
dimensionNames: \["d1", "d2"\],
pinnedDimensions: [
{ name: "d2" stringVal: "v2" },
{ name: "d4" stringVal: "v4" }
]
}
Trait Implementations§
source§impl Clone for SlicingParams
impl Clone for SlicingParams
source§fn clone(&self) -> SlicingParams
fn clone(&self) -> SlicingParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SlicingParams
impl Debug for SlicingParams
source§impl Default for SlicingParams
impl Default for SlicingParams
source§impl Message for SlicingParams
impl Message for SlicingParams
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 SlicingParams
impl PartialEq for SlicingParams
source§fn eq(&self, other: &SlicingParams) -> bool
fn eq(&self, other: &SlicingParams) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlicingParams
Auto Trait Implementations§
impl Freeze for SlicingParams
impl RefUnwindSafe for SlicingParams
impl Send for SlicingParams
impl Sync for SlicingParams
impl Unpin for SlicingParams
impl UnwindSafe for SlicingParams
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