Google Cloud Maintenance Api V1beta Client - Class Stats (0.2.0)

Reference documentation and code samples for the Google Cloud Maintenance Api V1beta Client class Stats.

Stats indicates the type of aggregate and the corresponding aggregates.

Generated from protobuf message google.cloud.maintenance.api.v1beta.MaintenanceSummary.Stats

Namespace

Google \ Cloud \ Maintenance \ Api \ V1beta \ MaintenanceSummary

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ group_by string

groupBy specifies the type of aggregate. For example a group_by might be "state"

↳ aggregates array<Aggregate>

Aggregates is a list <group, count> pairs. For example, if the group_by is "state" a possible tuple in the aggregates list could be "SCHEDULED" : 11,

getGroupBy

groupBy specifies the type of aggregate.

For example a group_by might be "state"

Returns
Type Description
string

setGroupBy

groupBy specifies the type of aggregate.

For example a group_by might be "state"

Parameter
Name Description
var string
Returns
Type Description
$this

getAggregates

Aggregates is a list <group, count> pairs. For example, if the group_by is "state" a possible tuple in the aggregates list could be "SCHEDULED" : 11,

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAggregates

Aggregates is a list <group, count> pairs. For example, if the group_by is "state" a possible tuple in the aggregates list could be "SCHEDULED" : 11,

Parameter
Name Description
var array<Aggregate>
Returns
Type Description
$this