Struct google_deploymentmanager2::LogConfigCounterOptions[][src]

pub struct LogConfigCounterOptions {
    pub field: Option<String>,
    pub metric: Option<String>,
}

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

The field value to attribute.

The metric to update.

Trait Implementations

impl Default for LogConfigCounterOptions
[src]

Returns the "default value" for a type. Read more

impl Clone for LogConfigCounterOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LogConfigCounterOptions
[src]

Formats the value using the given formatter. Read more

impl Part for LogConfigCounterOptions
[src]

Auto Trait Implementations