deploymentmanager
v2
|
#include <log_config_counter_options.h>
Public Member Functions | |
LogConfigCounterOptions (const Json::Value &storage) | |
LogConfigCounterOptions (Json::Value *storage) | |
virtual | ~LogConfigCounterOptions () |
const StringPiece | GetTypeName () const |
bool | has_field () const |
void | clear_field () |
const StringPiece | get_field () const |
void | set_field (const StringPiece &value) |
bool | has_metric () const |
void | clear_metric () |
const StringPiece | get_metric () const |
void | set_metric (const StringPiece &value) |
Static Public Member Functions | |
static LogConfigCounterOptions * | New () |
token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
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).
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'field
' attribute.
|
inline |
Clears the 'metric
' attribute.
|
inline |
Get the value of the 'field
' attribute.
|
inline |
Get the value of the 'metric
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'field
' attribute was set.
field
' attribute was set.
|
inline |
Determine if the 'metric
' attribute was set.
metric
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'field
' attribute.
The field value to attribute.
[in] | value | The new value. |
|
inline |
Change the 'metric
' attribute.
The metric to update.
[in] | value | The new value. |