Struct datadog_api_client::datadogV2::model::model_hourly_usage_attributes::HourlyUsageAttributes
source · #[non_exhaustive]pub struct HourlyUsageAttributes {
pub measurements: Option<Vec<HourlyUsageMeasurement>>,
pub org_name: Option<String>,
pub product_family: Option<String>,
pub public_id: Option<String>,
pub region: Option<String>,
pub timestamp: Option<DateTime<Utc>>,
/* private fields */
}
Expand description
Attributes of hourly usage for a product family for an org for a time period.
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.measurements: Option<Vec<HourlyUsageMeasurement>>
List of the measured usage values for the product family for the org for the time period.
org_name: Option<String>
The organization name.
product_family: Option<String>
The product for which usage is being reported.
public_id: Option<String>
The organization public ID.
region: Option<String>
The region of the Datadog instance that the organization belongs to.
timestamp: Option<DateTime<Utc>>
Datetime in ISO-8601 format, UTC. The hour for the usage.
Implementations§
source§impl HourlyUsageAttributes
impl HourlyUsageAttributes
pub fn new() -> HourlyUsageAttributes
pub fn measurements(self, value: Vec<HourlyUsageMeasurement>) -> Self
pub fn org_name(self, value: String) -> Self
pub fn product_family(self, value: String) -> Self
pub fn public_id(self, value: String) -> Self
pub fn region(self, value: String) -> Self
pub fn timestamp(self, value: DateTime<Utc>) -> Self
Trait Implementations§
source§impl Clone for HourlyUsageAttributes
impl Clone for HourlyUsageAttributes
source§fn clone(&self) -> HourlyUsageAttributes
fn clone(&self) -> HourlyUsageAttributes
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 HourlyUsageAttributes
impl Debug for HourlyUsageAttributes
source§impl Default for HourlyUsageAttributes
impl Default for HourlyUsageAttributes
source§impl<'de> Deserialize<'de> for HourlyUsageAttributes
impl<'de> Deserialize<'de> for HourlyUsageAttributes
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
source§impl PartialEq for HourlyUsageAttributes
impl PartialEq for HourlyUsageAttributes
source§fn eq(&self, other: &HourlyUsageAttributes) -> bool
fn eq(&self, other: &HourlyUsageAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HourlyUsageAttributes
impl Serialize for HourlyUsageAttributes
impl StructuralPartialEq for HourlyUsageAttributes
Auto Trait Implementations§
impl Freeze for HourlyUsageAttributes
impl RefUnwindSafe for HourlyUsageAttributes
impl Send for HourlyUsageAttributes
impl Sync for HourlyUsageAttributes
impl Unpin for HourlyUsageAttributes
impl UnwindSafe for HourlyUsageAttributes
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)