pub struct PagerDutyIntegrationAPI { /* private fields */ }
Expand description
Configure your Datadog-PagerDuty integration directly through the Datadog API.
Implementations§
Source§impl PagerDutyIntegrationAPI
impl PagerDutyIntegrationAPI
pub fn new() -> Self
Sourcepub fn with_config(config: Configuration) -> Self
pub fn with_config(config: Configuration) -> Self
Examples found in repository?
examples/v1_pagerduty-integration_GetPagerDutyIntegrationService.rs (line 8)
6async fn main() {
7 let configuration = datadog::Configuration::new();
8 let api = PagerDutyIntegrationAPI::with_config(configuration);
9 let resp = api
10 .get_pager_duty_integration_service("service_name".to_string())
11 .await;
12 if let Ok(value) = resp {
13 println!("{:#?}", value);
14 } else {
15 println!("{:#?}", resp.unwrap_err());
16 }
17}
More examples
examples/v1_pagerduty-integration_DeletePagerDutyIntegrationService.rs (line 8)
6async fn main() {
7 let configuration = datadog::Configuration::new();
8 let api = PagerDutyIntegrationAPI::with_config(configuration);
9 let resp = api
10 .delete_pager_duty_integration_service("service_name".to_string())
11 .await;
12 if let Ok(value) = resp {
13 println!("{:#?}", value);
14 } else {
15 println!("{:#?}", resp.unwrap_err());
16 }
17}
examples/v1_pagerduty-integration_UpdatePagerDutyIntegrationService.rs (line 10)
7async fn main() {
8 let body = PagerDutyServiceKey::new("".to_string());
9 let configuration = datadog::Configuration::new();
10 let api = PagerDutyIntegrationAPI::with_config(configuration);
11 let resp = api
12 .update_pager_duty_integration_service("service_name".to_string(), body)
13 .await;
14 if let Ok(value) = resp {
15 println!("{:#?}", value);
16 } else {
17 println!("{:#?}", resp.unwrap_err());
18 }
19}
pub fn with_client_and_config( config: Configuration, client: ClientWithMiddleware, ) -> Self
Sourcepub async fn create_pager_duty_integration_service(
&self,
body: PagerDutyService,
) -> Result<PagerDutyServiceName, Error<CreatePagerDutyIntegrationServiceError>>
pub async fn create_pager_duty_integration_service( &self, body: PagerDutyService, ) -> Result<PagerDutyServiceName, Error<CreatePagerDutyIntegrationServiceError>>
Create a new service object in the PagerDuty integration.
Sourcepub async fn create_pager_duty_integration_service_with_http_info(
&self,
body: PagerDutyService,
) -> Result<ResponseContent<PagerDutyServiceName>, Error<CreatePagerDutyIntegrationServiceError>>
pub async fn create_pager_duty_integration_service_with_http_info( &self, body: PagerDutyService, ) -> Result<ResponseContent<PagerDutyServiceName>, Error<CreatePagerDutyIntegrationServiceError>>
Create a new service object in the PagerDuty integration.
Sourcepub async fn delete_pager_duty_integration_service(
&self,
service_name: String,
) -> Result<(), Error<DeletePagerDutyIntegrationServiceError>>
pub async fn delete_pager_duty_integration_service( &self, service_name: String, ) -> Result<(), Error<DeletePagerDutyIntegrationServiceError>>
Delete a single service object in the Datadog-PagerDuty integration.
Examples found in repository?
examples/v1_pagerduty-integration_DeletePagerDutyIntegrationService.rs (line 10)
6async fn main() {
7 let configuration = datadog::Configuration::new();
8 let api = PagerDutyIntegrationAPI::with_config(configuration);
9 let resp = api
10 .delete_pager_duty_integration_service("service_name".to_string())
11 .await;
12 if let Ok(value) = resp {
13 println!("{:#?}", value);
14 } else {
15 println!("{:#?}", resp.unwrap_err());
16 }
17}
Sourcepub async fn delete_pager_duty_integration_service_with_http_info(
&self,
service_name: String,
) -> Result<ResponseContent<()>, Error<DeletePagerDutyIntegrationServiceError>>
pub async fn delete_pager_duty_integration_service_with_http_info( &self, service_name: String, ) -> Result<ResponseContent<()>, Error<DeletePagerDutyIntegrationServiceError>>
Delete a single service object in the Datadog-PagerDuty integration.
Sourcepub async fn get_pager_duty_integration_service(
&self,
service_name: String,
) -> Result<PagerDutyServiceName, Error<GetPagerDutyIntegrationServiceError>>
pub async fn get_pager_duty_integration_service( &self, service_name: String, ) -> Result<PagerDutyServiceName, Error<GetPagerDutyIntegrationServiceError>>
Get service name in the Datadog-PagerDuty integration.
Examples found in repository?
examples/v1_pagerduty-integration_GetPagerDutyIntegrationService.rs (line 10)
6async fn main() {
7 let configuration = datadog::Configuration::new();
8 let api = PagerDutyIntegrationAPI::with_config(configuration);
9 let resp = api
10 .get_pager_duty_integration_service("service_name".to_string())
11 .await;
12 if let Ok(value) = resp {
13 println!("{:#?}", value);
14 } else {
15 println!("{:#?}", resp.unwrap_err());
16 }
17}
Sourcepub async fn get_pager_duty_integration_service_with_http_info(
&self,
service_name: String,
) -> Result<ResponseContent<PagerDutyServiceName>, Error<GetPagerDutyIntegrationServiceError>>
pub async fn get_pager_duty_integration_service_with_http_info( &self, service_name: String, ) -> Result<ResponseContent<PagerDutyServiceName>, Error<GetPagerDutyIntegrationServiceError>>
Get service name in the Datadog-PagerDuty integration.
Sourcepub async fn update_pager_duty_integration_service(
&self,
service_name: String,
body: PagerDutyServiceKey,
) -> Result<(), Error<UpdatePagerDutyIntegrationServiceError>>
pub async fn update_pager_duty_integration_service( &self, service_name: String, body: PagerDutyServiceKey, ) -> Result<(), Error<UpdatePagerDutyIntegrationServiceError>>
Update a single service object in the Datadog-PagerDuty integration.
Examples found in repository?
examples/v1_pagerduty-integration_UpdatePagerDutyIntegrationService.rs (line 12)
7async fn main() {
8 let body = PagerDutyServiceKey::new("".to_string());
9 let configuration = datadog::Configuration::new();
10 let api = PagerDutyIntegrationAPI::with_config(configuration);
11 let resp = api
12 .update_pager_duty_integration_service("service_name".to_string(), body)
13 .await;
14 if let Ok(value) = resp {
15 println!("{:#?}", value);
16 } else {
17 println!("{:#?}", resp.unwrap_err());
18 }
19}
Sourcepub async fn update_pager_duty_integration_service_with_http_info(
&self,
service_name: String,
body: PagerDutyServiceKey,
) -> Result<ResponseContent<()>, Error<UpdatePagerDutyIntegrationServiceError>>
pub async fn update_pager_duty_integration_service_with_http_info( &self, service_name: String, body: PagerDutyServiceKey, ) -> Result<ResponseContent<()>, Error<UpdatePagerDutyIntegrationServiceError>>
Update a single service object in the Datadog-PagerDuty integration.
Trait Implementations§
Source§impl Clone for PagerDutyIntegrationAPI
impl Clone for PagerDutyIntegrationAPI
Source§fn clone(&self) -> PagerDutyIntegrationAPI
fn clone(&self) -> PagerDutyIntegrationAPI
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 PagerDutyIntegrationAPI
impl Debug for PagerDutyIntegrationAPI
Auto Trait Implementations§
impl Freeze for PagerDutyIntegrationAPI
impl !RefUnwindSafe for PagerDutyIntegrationAPI
impl Send for PagerDutyIntegrationAPI
impl Sync for PagerDutyIntegrationAPI
impl Unpin for PagerDutyIntegrationAPI
impl !UnwindSafe for PagerDutyIntegrationAPI
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