deploymentmanager  v2
Public Member Functions | Static Public Member Functions | List of all members
google_deploymentmanager_api::LogConfigCounterOptions Class Reference

#include <log_config_counter_options.h>

Inheritance diagram for google_deploymentmanager_api::LogConfigCounterOptions:

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 LogConfigCounterOptionsNew ()
 

Detailed Description

lowercase
only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
names:
"authority", which is "[token]" if IAMContext.

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).

Constructor & Destructor Documentation

◆ LogConfigCounterOptions() [1/2]

google_deploymentmanager_api::LogConfigCounterOptions::LogConfigCounterOptions ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ LogConfigCounterOptions() [2/2]

google_deploymentmanager_api::LogConfigCounterOptions::LogConfigCounterOptions ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~LogConfigCounterOptions()

google_deploymentmanager_api::LogConfigCounterOptions::~LogConfigCounterOptions ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_field()

void google_deploymentmanager_api::LogConfigCounterOptions::clear_field ( )
inline

Clears the 'field' attribute.

◆ clear_metric()

void google_deploymentmanager_api::LogConfigCounterOptions::clear_metric ( )
inline

Clears the 'metric' attribute.

◆ get_field()

const StringPiece google_deploymentmanager_api::LogConfigCounterOptions::get_field ( ) const
inline

Get the value of the 'field' attribute.

◆ get_metric()

const StringPiece google_deploymentmanager_api::LogConfigCounterOptions::get_metric ( ) const
inline

Get the value of the 'metric' attribute.

◆ GetTypeName()

const StringPiece google_deploymentmanager_api::LogConfigCounterOptions::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_deploymentmanager_api::LogConfigCounterOptions

◆ has_field()

bool google_deploymentmanager_api::LogConfigCounterOptions::has_field ( ) const
inline

Determine if the 'field' attribute was set.

Returns
true if the 'field' attribute was set.

◆ has_metric()

bool google_deploymentmanager_api::LogConfigCounterOptions::has_metric ( ) const
inline

Determine if the 'metric' attribute was set.

Returns
true if the 'metric' attribute was set.

◆ New()

LogConfigCounterOptions * google_deploymentmanager_api::LogConfigCounterOptions::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_field()

void google_deploymentmanager_api::LogConfigCounterOptions::set_field ( const StringPiece &  value)
inline

Change the 'field' attribute.

The field value to attribute.

Parameters
[in]valueThe new value.

◆ set_metric()

void google_deploymentmanager_api::LogConfigCounterOptions::set_metric ( const StringPiece &  value)
inline

Change the 'metric' attribute.

The metric to update.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: