container  v1
Public Member Functions | Static Public Member Functions | List of all members
google_container_api::Metric Class Reference

#include <metric.h>

Inheritance diagram for google_container_api::Metric:

Public Member Functions

 Metric (const Json::Value &storage)
 
 Metric (Json::Value *storage)
 
virtual ~Metric ()
 
const StringPiece GetTypeName () const
 
bool has_double_value () const
 
void clear_double_value ()
 
double get_double_value () const
 
void set_double_value (double value)
 
bool has_int_value () const
 
void clear_int_value ()
 
int64 get_int_value () const
 
void set_int_value (int64 value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_string_value () const
 
void clear_string_value ()
 
const StringPiece get_string_value () const
 
void set_string_value (const StringPiece &value)
 

Static Public Member Functions

static MetricNew ()
 

Detailed Description

Progress metric is (string, int|float|string) pair.

Constructor & Destructor Documentation

◆ Metric() [1/2]

google_container_api::Metric::Metric ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ Metric() [2/2]

google_container_api::Metric::Metric ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~Metric()

google_container_api::Metric::~Metric ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_double_value()

void google_container_api::Metric::clear_double_value ( )
inline

Clears the 'doubleValue' attribute.

◆ clear_int_value()

void google_container_api::Metric::clear_int_value ( )
inline

Clears the 'intValue' attribute.

◆ clear_name()

void google_container_api::Metric::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_string_value()

void google_container_api::Metric::clear_string_value ( )
inline

Clears the 'stringValue' attribute.

◆ get_double_value()

double google_container_api::Metric::get_double_value ( ) const
inline

Get the value of the 'doubleValue' attribute.

◆ get_int_value()

int64 google_container_api::Metric::get_int_value ( ) const
inline

Get the value of the 'intValue' attribute.

◆ get_name()

const StringPiece google_container_api::Metric::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_string_value()

const StringPiece google_container_api::Metric::get_string_value ( ) const
inline

Get the value of the 'stringValue' attribute.

◆ GetTypeName()

const StringPiece google_container_api::Metric::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_container_api::Metric

◆ has_double_value()

bool google_container_api::Metric::has_double_value ( ) const
inline

Determine if the 'doubleValue' attribute was set.

Returns
true if the 'doubleValue' attribute was set.

◆ has_int_value()

bool google_container_api::Metric::has_int_value ( ) const
inline

Determine if the 'intValue' attribute was set.

Returns
true if the 'intValue' attribute was set.

◆ has_name()

bool google_container_api::Metric::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_string_value()

bool google_container_api::Metric::has_string_value ( ) const
inline

Determine if the 'stringValue' attribute was set.

Returns
true if the 'stringValue' attribute was set.

◆ New()

Metric * google_container_api::Metric::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_double_value()

void google_container_api::Metric::set_double_value ( double  value)
inline

Change the 'doubleValue' attribute.

For metrics with floating point value.

Parameters
[in]valueThe new value.

◆ set_int_value()

void google_container_api::Metric::set_int_value ( int64  value)
inline

Change the 'intValue' attribute.

For metrics with integer value.

Parameters
[in]valueThe new value.

◆ set_name()

void google_container_api::Metric::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

Required. Metric name, e.g., "nodes total", "percent done".

Parameters
[in]valueThe new value.

◆ set_string_value()

void google_container_api::Metric::set_string_value ( const StringPiece &  value)
inline

Change the 'stringValue' attribute.

For metrics with custom values (ratios, visual progress, etc.).

Parameters
[in]valueThe new value.

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