Google Cloud Capacity Planner V1beta Client - Class TimeSeriesView (0.1.0)

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class TimeSeriesView.

TimeSeriesView contains capacity_value which has the timeseries for a given type. Each type as a single timeseries associated with it.

Generated from protobuf message google.cloud.capacityplanner.v1beta.TimeSeriesView

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Required. The capacity type associated with the time series view.

↳ capacity_value DemandValue

Required. The capacity value associated with the time series view.

getType

Required. The capacity type associated with the time series view.

Returns
Type Description
int Enum of type CapacityType.

setType

Required. The capacity type associated with the time series view.

Parameter
Name Description
var int

Enum of type CapacityType.

Returns
Type Description
$this

getCapacityValue

Required. The capacity value associated with the time series view.

Returns
Type Description
DemandValue|null

hasCapacityValue

clearCapacityValue

setCapacityValue

Required. The capacity value associated with the time series view.

Parameter
Name Description
var DemandValue
Returns
Type Description
$this