#[non_exhaustive]pub struct CIAppPipelineEventsRequest {
pub filter: Option<CIAppPipelinesQueryFilter>,
pub options: Option<CIAppQueryOptions>,
pub page: Option<CIAppQueryPageOptions>,
pub sort: Option<CIAppSort>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The request for a pipelines search.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.filter: Option<CIAppPipelinesQueryFilter>
The search and filter query settings.
options: Option<CIAppQueryOptions>
Global query options that are used during the query. Only supply timezone or time offset, not both. Otherwise, the query fails.
page: Option<CIAppQueryPageOptions>
Paging attributes for listing events.
sort: Option<CIAppSort>
Sort parameters when querying events.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl CIAppPipelineEventsRequest
impl CIAppPipelineEventsRequest
Sourcepub fn new() -> CIAppPipelineEventsRequest
pub fn new() -> CIAppPipelineEventsRequest
Examples found in repository?
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents.rs (line 13)
12async fn main() {
13 let body = CIAppPipelineEventsRequest::new()
14 .filter(
15 CIAppPipelinesQueryFilter::new()
16 .from("now-15m".to_string())
17 .query("@ci.provider.name:github AND @ci.status:error".to_string())
18 .to("now".to_string()),
19 )
20 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
21 .page(CIAppQueryPageOptions::new().limit(5))
22 .sort(CIAppSort::TIMESTAMP_ASCENDING);
23 let configuration = datadog::Configuration::new();
24 let api = CIVisibilityPipelinesAPI::with_config(configuration);
25 let resp = api
26 .search_ci_app_pipeline_events(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 )
29 .await;
30 if let Ok(value) = resp {
31 println!("{:#?}", value);
32 } else {
33 println!("{:#?}", resp.unwrap_err());
34 }
35}
More examples
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents_3246135003.rs (line 15)
14async fn main() {
15 let body = CIAppPipelineEventsRequest::new()
16 .filter(
17 CIAppPipelinesQueryFilter::new()
18 .from("now-30s".to_string())
19 .to("now".to_string()),
20 )
21 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
22 .page(CIAppQueryPageOptions::new().limit(2))
23 .sort(CIAppSort::TIMESTAMP_ASCENDING);
24 let configuration = datadog::Configuration::new();
25 let api = CIVisibilityPipelinesAPI::with_config(configuration);
26 let response = api.search_ci_app_pipeline_events_with_pagination(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 );
29 pin_mut!(response);
30 while let Some(resp) = response.next().await {
31 if let Ok(value) = resp {
32 println!("{:#?}", value);
33 } else {
34 println!("{:#?}", resp.unwrap_err());
35 }
36 }
37}
Sourcepub fn filter(self, value: CIAppPipelinesQueryFilter) -> Self
pub fn filter(self, value: CIAppPipelinesQueryFilter) -> Self
Examples found in repository?
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents.rs (lines 14-19)
12async fn main() {
13 let body = CIAppPipelineEventsRequest::new()
14 .filter(
15 CIAppPipelinesQueryFilter::new()
16 .from("now-15m".to_string())
17 .query("@ci.provider.name:github AND @ci.status:error".to_string())
18 .to("now".to_string()),
19 )
20 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
21 .page(CIAppQueryPageOptions::new().limit(5))
22 .sort(CIAppSort::TIMESTAMP_ASCENDING);
23 let configuration = datadog::Configuration::new();
24 let api = CIVisibilityPipelinesAPI::with_config(configuration);
25 let resp = api
26 .search_ci_app_pipeline_events(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 )
29 .await;
30 if let Ok(value) = resp {
31 println!("{:#?}", value);
32 } else {
33 println!("{:#?}", resp.unwrap_err());
34 }
35}
More examples
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents_3246135003.rs (lines 16-20)
14async fn main() {
15 let body = CIAppPipelineEventsRequest::new()
16 .filter(
17 CIAppPipelinesQueryFilter::new()
18 .from("now-30s".to_string())
19 .to("now".to_string()),
20 )
21 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
22 .page(CIAppQueryPageOptions::new().limit(2))
23 .sort(CIAppSort::TIMESTAMP_ASCENDING);
24 let configuration = datadog::Configuration::new();
25 let api = CIVisibilityPipelinesAPI::with_config(configuration);
26 let response = api.search_ci_app_pipeline_events_with_pagination(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 );
29 pin_mut!(response);
30 while let Some(resp) = response.next().await {
31 if let Ok(value) = resp {
32 println!("{:#?}", value);
33 } else {
34 println!("{:#?}", resp.unwrap_err());
35 }
36 }
37}
Sourcepub fn options(self, value: CIAppQueryOptions) -> Self
pub fn options(self, value: CIAppQueryOptions) -> Self
Examples found in repository?
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents.rs (line 20)
12async fn main() {
13 let body = CIAppPipelineEventsRequest::new()
14 .filter(
15 CIAppPipelinesQueryFilter::new()
16 .from("now-15m".to_string())
17 .query("@ci.provider.name:github AND @ci.status:error".to_string())
18 .to("now".to_string()),
19 )
20 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
21 .page(CIAppQueryPageOptions::new().limit(5))
22 .sort(CIAppSort::TIMESTAMP_ASCENDING);
23 let configuration = datadog::Configuration::new();
24 let api = CIVisibilityPipelinesAPI::with_config(configuration);
25 let resp = api
26 .search_ci_app_pipeline_events(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 )
29 .await;
30 if let Ok(value) = resp {
31 println!("{:#?}", value);
32 } else {
33 println!("{:#?}", resp.unwrap_err());
34 }
35}
More examples
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents_3246135003.rs (line 21)
14async fn main() {
15 let body = CIAppPipelineEventsRequest::new()
16 .filter(
17 CIAppPipelinesQueryFilter::new()
18 .from("now-30s".to_string())
19 .to("now".to_string()),
20 )
21 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
22 .page(CIAppQueryPageOptions::new().limit(2))
23 .sort(CIAppSort::TIMESTAMP_ASCENDING);
24 let configuration = datadog::Configuration::new();
25 let api = CIVisibilityPipelinesAPI::with_config(configuration);
26 let response = api.search_ci_app_pipeline_events_with_pagination(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 );
29 pin_mut!(response);
30 while let Some(resp) = response.next().await {
31 if let Ok(value) = resp {
32 println!("{:#?}", value);
33 } else {
34 println!("{:#?}", resp.unwrap_err());
35 }
36 }
37}
Sourcepub fn page(self, value: CIAppQueryPageOptions) -> Self
pub fn page(self, value: CIAppQueryPageOptions) -> Self
Examples found in repository?
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents.rs (line 21)
12async fn main() {
13 let body = CIAppPipelineEventsRequest::new()
14 .filter(
15 CIAppPipelinesQueryFilter::new()
16 .from("now-15m".to_string())
17 .query("@ci.provider.name:github AND @ci.status:error".to_string())
18 .to("now".to_string()),
19 )
20 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
21 .page(CIAppQueryPageOptions::new().limit(5))
22 .sort(CIAppSort::TIMESTAMP_ASCENDING);
23 let configuration = datadog::Configuration::new();
24 let api = CIVisibilityPipelinesAPI::with_config(configuration);
25 let resp = api
26 .search_ci_app_pipeline_events(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 )
29 .await;
30 if let Ok(value) = resp {
31 println!("{:#?}", value);
32 } else {
33 println!("{:#?}", resp.unwrap_err());
34 }
35}
More examples
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents_3246135003.rs (line 22)
14async fn main() {
15 let body = CIAppPipelineEventsRequest::new()
16 .filter(
17 CIAppPipelinesQueryFilter::new()
18 .from("now-30s".to_string())
19 .to("now".to_string()),
20 )
21 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
22 .page(CIAppQueryPageOptions::new().limit(2))
23 .sort(CIAppSort::TIMESTAMP_ASCENDING);
24 let configuration = datadog::Configuration::new();
25 let api = CIVisibilityPipelinesAPI::with_config(configuration);
26 let response = api.search_ci_app_pipeline_events_with_pagination(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 );
29 pin_mut!(response);
30 while let Some(resp) = response.next().await {
31 if let Ok(value) = resp {
32 println!("{:#?}", value);
33 } else {
34 println!("{:#?}", resp.unwrap_err());
35 }
36 }
37}
Sourcepub fn sort(self, value: CIAppSort) -> Self
pub fn sort(self, value: CIAppSort) -> Self
Examples found in repository?
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents.rs (line 22)
12async fn main() {
13 let body = CIAppPipelineEventsRequest::new()
14 .filter(
15 CIAppPipelinesQueryFilter::new()
16 .from("now-15m".to_string())
17 .query("@ci.provider.name:github AND @ci.status:error".to_string())
18 .to("now".to_string()),
19 )
20 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
21 .page(CIAppQueryPageOptions::new().limit(5))
22 .sort(CIAppSort::TIMESTAMP_ASCENDING);
23 let configuration = datadog::Configuration::new();
24 let api = CIVisibilityPipelinesAPI::with_config(configuration);
25 let resp = api
26 .search_ci_app_pipeline_events(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 )
29 .await;
30 if let Ok(value) = resp {
31 println!("{:#?}", value);
32 } else {
33 println!("{:#?}", resp.unwrap_err());
34 }
35}
More examples
examples/v2_ci-visibility-pipelines_SearchCIAppPipelineEvents_3246135003.rs (line 23)
14async fn main() {
15 let body = CIAppPipelineEventsRequest::new()
16 .filter(
17 CIAppPipelinesQueryFilter::new()
18 .from("now-30s".to_string())
19 .to("now".to_string()),
20 )
21 .options(CIAppQueryOptions::new().timezone("GMT".to_string()))
22 .page(CIAppQueryPageOptions::new().limit(2))
23 .sort(CIAppSort::TIMESTAMP_ASCENDING);
24 let configuration = datadog::Configuration::new();
25 let api = CIVisibilityPipelinesAPI::with_config(configuration);
26 let response = api.search_ci_app_pipeline_events_with_pagination(
27 SearchCIAppPipelineEventsOptionalParams::default().body(body),
28 );
29 pin_mut!(response);
30 while let Some(resp) = response.next().await {
31 if let Ok(value) = resp {
32 println!("{:#?}", value);
33 } else {
34 println!("{:#?}", resp.unwrap_err());
35 }
36 }
37}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for CIAppPipelineEventsRequest
impl Clone for CIAppPipelineEventsRequest
Source§fn clone(&self) -> CIAppPipelineEventsRequest
fn clone(&self) -> CIAppPipelineEventsRequest
Returns a duplicate 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 CIAppPipelineEventsRequest
impl Debug for CIAppPipelineEventsRequest
Source§impl Default for CIAppPipelineEventsRequest
impl Default for CIAppPipelineEventsRequest
Source§impl<'de> Deserialize<'de> for CIAppPipelineEventsRequest
impl<'de> Deserialize<'de> for CIAppPipelineEventsRequest
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CIAppPipelineEventsRequest
Auto Trait Implementations§
impl Freeze for CIAppPipelineEventsRequest
impl RefUnwindSafe for CIAppPipelineEventsRequest
impl Send for CIAppPipelineEventsRequest
impl Sync for CIAppPipelineEventsRequest
impl Unpin for CIAppPipelineEventsRequest
impl UnwindSafe for CIAppPipelineEventsRequest
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