pub struct ProcessesAPI { /* private fields */ }
Expand description
The processes API allows you to query processes data for your organization. See the Live Processes page for more information.
Implementations§
Source§impl ProcessesAPI
impl ProcessesAPI
pub fn new() -> Self
Sourcepub fn with_config(config: Configuration) -> Self
pub fn with_config(config: Configuration) -> Self
Examples found in repository?
examples/v2_processes_ListProcesses_797840471.rs (line 11)
9async fn main() {
10 let configuration = datadog::Configuration::new();
11 let api = ProcessesAPI::with_config(configuration);
12 let response =
13 api.list_processes_with_pagination(ListProcessesOptionalParams::default().page_limit(2));
14 pin_mut!(response);
15 while let Some(resp) = response.next().await {
16 if let Ok(value) = resp {
17 println!("{:#?}", value);
18 } else {
19 println!("{:#?}", resp.unwrap_err());
20 }
21 }
22}
More examples
examples/v2_processes_ListProcesses.rs (line 9)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = ProcessesAPI::with_config(configuration);
10 let resp = api
11 .list_processes(
12 ListProcessesOptionalParams::default()
13 .search("process-agent".to_string())
14 .tags("testing:true".to_string())
15 .page_limit(2),
16 )
17 .await;
18 if let Ok(value) = resp {
19 println!("{:#?}", value);
20 } else {
21 println!("{:#?}", resp.unwrap_err());
22 }
23}
pub fn with_client_and_config( config: Configuration, client: ClientWithMiddleware, ) -> Self
Sourcepub async fn list_processes(
&self,
params: ListProcessesOptionalParams,
) -> Result<ProcessSummariesResponse, Error<ListProcessesError>>
pub async fn list_processes( &self, params: ListProcessesOptionalParams, ) -> Result<ProcessSummariesResponse, Error<ListProcessesError>>
Get all processes for your organization.
Examples found in repository?
examples/v2_processes_ListProcesses.rs (lines 11-16)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = ProcessesAPI::with_config(configuration);
10 let resp = api
11 .list_processes(
12 ListProcessesOptionalParams::default()
13 .search("process-agent".to_string())
14 .tags("testing:true".to_string())
15 .page_limit(2),
16 )
17 .await;
18 if let Ok(value) = resp {
19 println!("{:#?}", value);
20 } else {
21 println!("{:#?}", resp.unwrap_err());
22 }
23}
Sourcepub fn list_processes_with_pagination(
&self,
params: ListProcessesOptionalParams,
) -> impl Stream<Item = Result<ProcessSummary, Error<ListProcessesError>>> + '_
pub fn list_processes_with_pagination( &self, params: ListProcessesOptionalParams, ) -> impl Stream<Item = Result<ProcessSummary, Error<ListProcessesError>>> + '_
Examples found in repository?
examples/v2_processes_ListProcesses_797840471.rs (line 13)
9async fn main() {
10 let configuration = datadog::Configuration::new();
11 let api = ProcessesAPI::with_config(configuration);
12 let response =
13 api.list_processes_with_pagination(ListProcessesOptionalParams::default().page_limit(2));
14 pin_mut!(response);
15 while let Some(resp) = response.next().await {
16 if let Ok(value) = resp {
17 println!("{:#?}", value);
18 } else {
19 println!("{:#?}", resp.unwrap_err());
20 }
21 }
22}
Sourcepub async fn list_processes_with_http_info(
&self,
params: ListProcessesOptionalParams,
) -> Result<ResponseContent<ProcessSummariesResponse>, Error<ListProcessesError>>
pub async fn list_processes_with_http_info( &self, params: ListProcessesOptionalParams, ) -> Result<ResponseContent<ProcessSummariesResponse>, Error<ListProcessesError>>
Get all processes for your organization.
Trait Implementations§
Source§impl Clone for ProcessesAPI
impl Clone for ProcessesAPI
Source§fn clone(&self) -> ProcessesAPI
fn clone(&self) -> ProcessesAPI
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProcessesAPI
impl Debug for ProcessesAPI
Auto Trait Implementations§
impl Freeze for ProcessesAPI
impl !RefUnwindSafe for ProcessesAPI
impl Send for ProcessesAPI
impl Sync for ProcessesAPI
impl Unpin for ProcessesAPI
impl !UnwindSafe for ProcessesAPI
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