pub struct TimeseriesInsightsController { /* private fields */ }Expand description
Implements a client for the Timeseries Insights API.
§Example
let client = TimeseriesInsightsController::builder().build().await?;
// use `client` to make requests to the Timeseries Insights API.§Service Description
§Configuration
To configure TimeseriesInsightsController use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://timeseriesinsights.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
TimeseriesInsightsController holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap TimeseriesInsightsController in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl TimeseriesInsightsController
impl TimeseriesInsightsController
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for TimeseriesInsightsController.
let client = TimeseriesInsightsController::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: TimeseriesInsightsController + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: TimeseriesInsightsController + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_data_sets(&self) -> ListDataSets
pub fn list_data_sets(&self) -> ListDataSets
Sourcepub fn create_data_set(&self) -> CreateDataSet
pub fn create_data_set(&self) -> CreateDataSet
Sourcepub fn delete_data_set(&self) -> DeleteDataSet
pub fn delete_data_set(&self) -> DeleteDataSet
Sourcepub fn append_events(&self) -> AppendEvents
pub fn append_events(&self) -> AppendEvents
Append events to a LOADED DataSet.
Sourcepub fn query_data_set(&self) -> QueryDataSet
pub fn query_data_set(&self) -> QueryDataSet
Execute a Timeseries Insights query over a loaded DataSet.
Sourcepub fn evaluate_slice(&self) -> EvaluateSlice
pub fn evaluate_slice(&self) -> EvaluateSlice
Evaluate an explicit slice from a loaded DataSet.
Sourcepub fn evaluate_timeseries(&self) -> EvaluateTimeseries
pub fn evaluate_timeseries(&self) -> EvaluateTimeseries
Evaluate an explicit timeseries.
Trait Implementations§
Source§impl Clone for TimeseriesInsightsController
impl Clone for TimeseriesInsightsController
Source§fn clone(&self) -> TimeseriesInsightsController
fn clone(&self) -> TimeseriesInsightsController
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more