pub struct Metrics {
pub client: Client,
}
Fields§
§client: Client
Implementations§
Source§impl Metrics
impl Metrics
Sourcepub async fn timeseries_schema_get(
&self,
limit: u32,
page_token: &str,
) -> Result<Vec<TimeseriesSchema>>
pub async fn timeseries_schema_get( &self, limit: u32, page_token: &str, ) -> Result<Vec<TimeseriesSchema>>
List timeseries schema.
This function performs a GET
to the /timeseries/schema
endpoint.
Parameters:
limit: u32
– Maximum number of items returned by a single call.page_token: &str
– Token returned by previous call to retrieve the subsequent page.
Sourcepub async fn timeseries_schema_get_all(&self) -> Result<Vec<TimeseriesSchema>>
pub async fn timeseries_schema_get_all(&self) -> Result<Vec<TimeseriesSchema>>
List timeseries schema.
This function performs a GET
to the /timeseries/schema
endpoint.
As opposed to timeseries_schema_get
, this function returns all the pages of the request at once.
Auto Trait Implementations§
impl Freeze for Metrics
impl !RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl !UnwindSafe for Metrics
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
Mutably borrows from an owned value. Read more