Struct aws_sdk_deadline::types::Statistics
source · #[non_exhaustive]pub struct Statistics {Show 13 fields
pub queue_id: Option<String>,
pub fleet_id: Option<String>,
pub job_id: Option<String>,
pub job_name: Option<String>,
pub user_id: Option<String>,
pub usage_type: Option<UsageType>,
pub license_product: Option<String>,
pub instance_type: Option<String>,
pub count: i32,
pub cost_in_usd: Option<Stats>,
pub runtime_in_seconds: Option<Stats>,
pub aggregation_start_time: Option<DateTime>,
pub aggregation_end_time: Option<DateTime>,
}Expand description
A list of statistics for a session.
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.queue_id: Option<String>The queue ID.
fleet_id: Option<String>The fleet ID.
job_id: Option<String>The job ID.
job_name: Option<String>The job name.
user_id: Option<String>The user ID.
usage_type: Option<UsageType>The type of usage for the statistics.
license_product: Option<String>The licensed product.
instance_type: Option<String>The type of instance.
count: i32The number of instances in a list of statistics.
cost_in_usd: Option<Stats>How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
runtime_in_seconds: Option<Stats>The total aggregated runtime.
aggregation_start_time: Option<DateTime>The start time for the aggregation.
aggregation_end_time: Option<DateTime>The end time for the aggregation.
Implementations§
source§impl Statistics
impl Statistics
sourcepub fn usage_type(&self) -> Option<&UsageType>
pub fn usage_type(&self) -> Option<&UsageType>
The type of usage for the statistics.
sourcepub fn license_product(&self) -> Option<&str>
pub fn license_product(&self) -> Option<&str>
The licensed product.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The type of instance.
sourcepub fn cost_in_usd(&self) -> Option<&Stats>
pub fn cost_in_usd(&self) -> Option<&Stats>
How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
sourcepub fn runtime_in_seconds(&self) -> Option<&Stats>
pub fn runtime_in_seconds(&self) -> Option<&Stats>
The total aggregated runtime.
sourcepub fn aggregation_start_time(&self) -> Option<&DateTime>
pub fn aggregation_start_time(&self) -> Option<&DateTime>
The start time for the aggregation.
sourcepub fn aggregation_end_time(&self) -> Option<&DateTime>
pub fn aggregation_end_time(&self) -> Option<&DateTime>
The end time for the aggregation.
source§impl Statistics
impl Statistics
sourcepub fn builder() -> StatisticsBuilder
pub fn builder() -> StatisticsBuilder
Creates a new builder-style object to manufacture Statistics.
Trait Implementations§
source§impl Clone for Statistics
impl Clone for Statistics
source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
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 Statistics
impl Debug for Statistics
source§impl PartialEq for Statistics
impl PartialEq for Statistics
source§fn eq(&self, other: &Statistics) -> bool
fn eq(&self, other: &Statistics) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Statistics
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.