#[non_exhaustive]pub struct FetchResourceStatisticsParams {
pub resources: ResourceStatisticsQuery,
pub start_time: String,
pub end_time: Option<String>,
pub dimension: String,
pub size: Option<u32>,
pub scan_id: Option<String>,
}Expand description
Parameters for fetch.resource.statistics.
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.resources: ResourceStatisticsQueryResource selection.
start_time: StringStart time (timestamp millis as string).
end_time: Option<String>Optional end time (timestamp millis as string). Default is now.
dimension: StringAggregation dimension (e.g. "30m", "1h", "1d").
size: Option<u32>Optional pull size (default 100, min 10, max 300).
scan_id: Option<String>Optional scan id for pagination.
Implementations§
Source§impl FetchResourceStatisticsParams
impl FetchResourceStatisticsParams
Sourcepub fn new(
resources: ResourceStatisticsQuery,
start_time: impl Into<String>,
dimension: impl Into<String>,
) -> Self
pub fn new( resources: ResourceStatisticsQuery, start_time: impl Into<String>, dimension: impl Into<String>, ) -> Self
Create params with required fields.
Sourcepub fn with_end_time(self, end_time: impl Into<String>) -> Self
pub fn with_end_time(self, end_time: impl Into<String>) -> Self
Set end time (timestamp millis as string).
Sourcepub fn with_scan_id(self, scan_id: impl Into<String>) -> Self
pub fn with_scan_id(self, scan_id: impl Into<String>) -> Self
Set scan id for pagination.
Trait Implementations§
Source§impl Clone for FetchResourceStatisticsParams
impl Clone for FetchResourceStatisticsParams
Source§fn clone(&self) -> FetchResourceStatisticsParams
fn clone(&self) -> FetchResourceStatisticsParams
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 moreAuto Trait Implementations§
impl Freeze for FetchResourceStatisticsParams
impl RefUnwindSafe for FetchResourceStatisticsParams
impl Send for FetchResourceStatisticsParams
impl Sync for FetchResourceStatisticsParams
impl Unpin for FetchResourceStatisticsParams
impl UnwindSafe for FetchResourceStatisticsParams
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