#[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
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.
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
impl ListFindingsOptionalParams
Sourcepub fn page_limit(self, value: i64) -> Self
pub fn page_limit(self, value: i64) -> Self
Limit the number of findings returned. Must be <= 1000.
Sourcepub fn snapshot_timestamp(self, value: i64) -> Self
pub fn snapshot_timestamp(self, value: i64) -> Self
Return findings for a given snapshot of time (Unix ms).
Sourcepub fn page_cursor(self, value: String) -> Self
pub fn page_cursor(self, value: String) -> Self
Return the next page of findings pointed to by the cursor.
Return findings that have these associated tags (repeatable).
Sourcepub fn filter_evaluation_changed_at(self, value: String) -> Self
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).
Sourcepub fn filter_muted(self, value: bool) -> Self
pub fn filter_muted(self, value: bool) -> Self
Set to true
to return findings that are muted. Set to false
to return unmuted findings.
Sourcepub fn filter_rule_id(self, value: String) -> Self
pub fn filter_rule_id(self, value: String) -> Self
Return findings for the specified rule ID.
Sourcepub fn filter_rule_name(self, value: String) -> Self
pub fn filter_rule_name(self, value: String) -> Self
Return findings for the specified rule.
Sourcepub fn filter_resource_type(self, value: String) -> Self
pub fn filter_resource_type(self, value: String) -> Self
Return only findings for the specified resource type.
Sourcepub fn filter_discovery_timestamp(self, value: String) -> Self
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).
Sourcepub fn filter_evaluation(self, value: FindingEvaluation) -> Self
pub fn filter_evaluation(self, value: FindingEvaluation) -> Self
Return only pass
or fail
findings.
Sourcepub fn filter_status(self, value: FindingStatus) -> Self
pub fn filter_status(self, value: FindingStatus) -> Self
Return only findings with the specified status.
Sourcepub fn filter_vulnerability_type(
self,
value: Vec<FindingVulnerabilityType>,
) -> Self
pub fn filter_vulnerability_type( self, value: Vec<FindingVulnerabilityType>, ) -> Self
Return findings that match the selected vulnerability types (repeatable).
Examples found in repository?
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}
Sourcepub fn detailed_findings(self, value: bool) -> Self
pub fn detailed_findings(self, value: bool) -> Self
Return additional fields for some findings.
Examples found in repository?
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
impl Clone for ListFindingsOptionalParams
Source§fn clone(&self) -> ListFindingsOptionalParams
fn clone(&self) -> ListFindingsOptionalParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more