pub struct DatadogWorkflow<'a> { /* private fields */ }
Implementations§
Source§impl<'a> DatadogWorkflow<'a>
impl<'a> DatadogWorkflow<'a>
pub fn new( api_key: &'a str, application_key: &'a str, database_url: &str, api_url: &'a str, subdomain: &'a str, ) -> Result<Self, Error>
pub fn refresh_cache(&mut self) -> Result<(), Error>
pub fn query_timeboards<'items>( &mut self, title: &str, ) -> Result<Vec<Item<'items>>, Error>
pub fn query_screenboards<'items>( &mut self, title: &str, ) -> Result<Vec<Item<'items>>, Error>
pub fn query_dashboards<'items>( &self, title: &str, ) -> Result<Vec<Item<'items>>, Error>
pub fn query_monitors<'items>( &mut self, name: &str, tag: Option<&str>, ) -> Result<Vec<Item<'items>>, Error>
Auto Trait Implementations§
impl<'a> !Freeze for DatadogWorkflow<'a>
impl<'a> !RefUnwindSafe for DatadogWorkflow<'a>
impl<'a> Send for DatadogWorkflow<'a>
impl<'a> !Sync for DatadogWorkflow<'a>
impl<'a> Unpin for DatadogWorkflow<'a>
impl<'a> UnwindSafe for DatadogWorkflow<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more