pub struct EvaluateTimeseriesRequest {
pub parent: String,
pub timeseries: Option<Timeseries>,
pub granularity: Option<Duration>,
pub forecast_params: Option<ForecastParams>,
}
Expand description
Request for evaluateTimeseries.
Fields§
§parent: String
Required. Client project name in the format of ‘projects/{project}’.
timeseries: Option<Timeseries>
Evaluate this time series without requiring it was previously loaded in a data set.
The evaluated time series point is the last one, analogous to calling
evaluateSlice or query with
[detectionTime][google.cloud.timeseriesinsights.v1.EvaluateSliceRequest.detection_time] set to
timeseries.point(timeseries.point_size() - 1).time
.
The length of the time series must be at least 10.
All points must have the same time offset relative to the granularity. For example, if the [granularity][google.cloud.timeseriesinsights.v1.EvaluateTimeseriesRequest.granularity] is “5s”, then the following point.time sequences are valid:
- “100s”, “105s”, “120s”, “125s” (no offset)
- “102s”, “107s”, “122s”, “127s” (offset is “2s”) However, the following sequence is invalid as it has inconsistent offsets:
- “100s”, “105s”, “122s”, “127s” (offsets are either “0s” or “2s”)
granularity: Option<Duration>
The granularity of the time series (time distance between two consecutive points).
forecast_params: Option<ForecastParams>
The forecast parameters.
Trait Implementations§
source§impl Clone for EvaluateTimeseriesRequest
impl Clone for EvaluateTimeseriesRequest
source§fn clone(&self) -> EvaluateTimeseriesRequest
fn clone(&self) -> EvaluateTimeseriesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluateTimeseriesRequest
impl Debug for EvaluateTimeseriesRequest
source§impl Default for EvaluateTimeseriesRequest
impl Default for EvaluateTimeseriesRequest
source§impl Message for EvaluateTimeseriesRequest
impl Message for EvaluateTimeseriesRequest
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 EvaluateTimeseriesRequest
impl PartialEq for EvaluateTimeseriesRequest
source§fn eq(&self, other: &EvaluateTimeseriesRequest) -> bool
fn eq(&self, other: &EvaluateTimeseriesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluateTimeseriesRequest
Auto Trait Implementations§
impl Freeze for EvaluateTimeseriesRequest
impl RefUnwindSafe for EvaluateTimeseriesRequest
impl Send for EvaluateTimeseriesRequest
impl Sync for EvaluateTimeseriesRequest
impl Unpin for EvaluateTimeseriesRequest
impl UnwindSafe for EvaluateTimeseriesRequest
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