Struct google_deploymentmanager2::LogConfigCounterOptions [−][src]
Increment a streamz counter with the specified metric and field names.
Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
Field names correspond to IAM request parameters and field values are their respective values.
At present the only supported field names are - "iam_principal", corresponding to IAMContext.principal; - "" (empty string), resulting in one aggretated counter with no field.
Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
At this time we do not support: * multiple field names (though this may be supported in the future) * decrementing the counter * incrementing it by anything other than 1
This type is not used in any activity, and only used as part of another schema.
Fields
field: Option<String>
The field value to attribute.
metric: Option<String>
The metric to update.
Trait Implementations
impl Default for LogConfigCounterOptions
[src]
impl Default for LogConfigCounterOptions
fn default() -> LogConfigCounterOptions
[src]
fn default() -> LogConfigCounterOptions
Returns the "default value" for a type. Read more
impl Clone for LogConfigCounterOptions
[src]
impl Clone for LogConfigCounterOptions
fn clone(&self) -> LogConfigCounterOptions
[src]
fn clone(&self) -> LogConfigCounterOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for LogConfigCounterOptions
[src]
impl Debug for LogConfigCounterOptions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for LogConfigCounterOptions
[src]
impl Part for LogConfigCounterOptions
Auto Trait Implementations
impl Send for LogConfigCounterOptions
impl Send for LogConfigCounterOptions
impl Sync for LogConfigCounterOptions
impl Sync for LogConfigCounterOptions