Struct ListFindingsOptionalParams

Source
#[non_exhaustive]
pub struct ListFindingsOptionalParams {
Show 14 fields pub page_limit: Option<i64>, pub snapshot_timestamp: Option<i64>, pub page_cursor: Option<String>, pub filter_tags: Option<String>, pub filter_evaluation_changed_at: Option<String>, pub filter_muted: Option<bool>, pub filter_rule_id: Option<String>, pub filter_rule_name: Option<String>, pub filter_resource_type: Option<String>, pub filter_discovery_timestamp: Option<String>, pub filter_evaluation: Option<FindingEvaluation>, pub filter_status: Option<FindingStatus>, pub filter_vulnerability_type: Option<Vec<FindingVulnerabilityType>>, pub detailed_findings: Option<bool>,
}
Expand description

ListFindingsOptionalParams is a struct for passing parameters to the method SecurityMonitoringAPI::list_findings

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.
§page_limit: Option<i64>

Limit the number of findings returned. Must be <= 1000.

§snapshot_timestamp: Option<i64>

Return findings for a given snapshot of time (Unix ms).

§page_cursor: Option<String>

Return the next page of findings pointed to by the cursor.

§filter_tags: Option<String>

Return findings that have these associated tags (repeatable).

§filter_evaluation_changed_at: Option<String>

Return findings that have changed from pass to fail or vice versa on a specified date (Unix ms) or date range (using comparison operators).

§filter_muted: Option<bool>

Set to true to return findings that are muted. Set to false to return unmuted findings.

§filter_rule_id: Option<String>

Return findings for the specified rule ID.

§filter_rule_name: Option<String>

Return findings for the specified rule.

§filter_resource_type: Option<String>

Return only findings for the specified resource type.

§filter_discovery_timestamp: Option<String>

Return findings that were found on a specified date (Unix ms) or date range (using comparison operators).

§filter_evaluation: Option<FindingEvaluation>

Return only pass or fail findings.

§filter_status: Option<FindingStatus>

Return only findings with the specified status.

§filter_vulnerability_type: Option<Vec<FindingVulnerabilityType>>

Return findings that match the selected vulnerability types (repeatable).

§detailed_findings: Option<bool>

Return additional fields for some findings.

Implementations§

Source§

impl ListFindingsOptionalParams

Source

pub fn page_limit(self, value: i64) -> Self

Limit the number of findings returned. Must be <= 1000.

Source

pub fn snapshot_timestamp(self, value: i64) -> Self

Return findings for a given snapshot of time (Unix ms).

Source

pub fn page_cursor(self, value: String) -> Self

Return the next page of findings pointed to by the cursor.

Source

pub fn filter_tags(self, value: String) -> Self

Return findings that have these associated tags (repeatable).

Source

pub fn filter_evaluation_changed_at(self, value: String) -> Self

Return findings that have changed from pass to fail or vice versa on a specified date (Unix ms) or date range (using comparison operators).

Source

pub fn filter_muted(self, value: bool) -> Self

Set to true to return findings that are muted. Set to false to return unmuted findings.

Source

pub fn filter_rule_id(self, value: String) -> Self

Return findings for the specified rule ID.

Source

pub fn filter_rule_name(self, value: String) -> Self

Return findings for the specified rule.

Source

pub fn filter_resource_type(self, value: String) -> Self

Return only findings for the specified resource type.

Source

pub fn filter_discovery_timestamp(self, value: String) -> Self

Return findings that were found on a specified date (Unix ms) or date range (using comparison operators).

Source

pub fn filter_evaluation(self, value: FindingEvaluation) -> Self

Return only pass or fail findings.

Source

pub fn filter_status(self, value: FindingStatus) -> Self

Return only findings with the specified status.

Source

pub fn filter_vulnerability_type( self, value: Vec<FindingVulnerabilityType>, ) -> Self

Return findings that match the selected vulnerability types (repeatable).

Examples found in repository?
examples/v2_security-monitoring_ListFindings_1668290866.rs (lines 14-17)
8async fn main() {
9    let mut configuration = datadog::Configuration::new();
10    configuration.set_unstable_operation_enabled("v2.ListFindings", true);
11    let api = SecurityMonitoringAPI::with_config(configuration);
12    let resp = api
13        .list_findings(
14            ListFindingsOptionalParams::default().filter_vulnerability_type(vec![
15                FindingVulnerabilityType::MISCONFIGURATION,
16                FindingVulnerabilityType::ATTACK_PATH,
17            ]),
18        )
19        .await;
20    if let Ok(value) = resp {
21        println!("{:#?}", value);
22    } else {
23        println!("{:#?}", resp.unwrap_err());
24    }
25}
Source

pub fn detailed_findings(self, value: bool) -> Self

Return additional fields for some findings.

Examples found in repository?
examples/v2_security-monitoring_ListFindings_2932019633.rs (line 12)
7async fn main() {
8    let mut configuration = datadog::Configuration::new();
9    configuration.set_unstable_operation_enabled("v2.ListFindings", true);
10    let api = SecurityMonitoringAPI::with_config(configuration);
11    let resp = api
12        .list_findings(ListFindingsOptionalParams::default().detailed_findings(true))
13        .await;
14    if let Ok(value) = resp {
15        println!("{:#?}", value);
16    } else {
17        println!("{:#?}", resp.unwrap_err());
18    }
19}

Trait Implementations§

Source§

impl Clone for ListFindingsOptionalParams

Source§

fn clone(&self) -> ListFindingsOptionalParams

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ListFindingsOptionalParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListFindingsOptionalParams

Source§

fn default() -> ListFindingsOptionalParams

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,