class ProjectsTimeSeries extends Resource (View source)

The "timeSeries" collection of methods.

Typical usage is:

 $monitoringService = new Google\Service\Monitoring(...);
 $timeSeries = $monitoringService->projects_timeSeries;

Methods

create(string $name, CreateTimeSeriesRequest $postBody, array $optParams = [])

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.

createService(string $name, CreateTimeSeriesRequest $postBody, array $optParams = [])

Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics.

listProjectsTimeSeries(string $name, array $optParams = [])

Lists time series that match a filter. (timeSeries.listProjectsTimeSeries)

query(string $name, QueryTimeSeriesRequest $postBody, array $optParams = [])

Queries time series using Monitoring Query Language. (timeSeries.query)

Details

MonitoringEmpty create(string $name, CreateTimeSeriesRequest $postBody, array $optParams = [])

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.

This method does not support resource locations constraint of an organization policy (https://cloud.google.com/resource-manager/docs/organization- policy/defining-locations#setting_the_organization_policy). (timeSeries.create)

Parameters

string $name

Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]

CreateTimeSeriesRequest $postBody
array $optParams

Optional parameters.

Return Value

MonitoringEmpty

Exceptions

Exception

MonitoringEmpty createService(string $name, CreateTimeSeriesRequest $postBody, array $optParams = [])

Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics.

This method is only for use by Google Cloud services. Use projects.timeSeries.create instead. (timeSeries.createService)

Parameters

string $name

Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]

CreateTimeSeriesRequest $postBody
array $optParams

Optional parameters.

Return Value

MonitoringEmpty

Exceptions

Exception

ListTimeSeriesResponse listProjectsTimeSeries(string $name, array $optParams = [])

Lists time series that match a filter. (timeSeries.listProjectsTimeSeries)

Parameters

string $name

Required. The project (https://cloud.google.com/monitoring/api/v3#project_name), organization or folder on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID]

array $optParams

Optional parameters.

Return Value

ListTimeSeriesResponse

Exceptions

Exception

QueryTimeSeriesResponse query(string $name, QueryTimeSeriesRequest $postBody, array $optParams = [])

Queries time series using Monitoring Query Language. (timeSeries.query)

Parameters

string $name

Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]

QueryTimeSeriesRequest $postBody
array $optParams

Optional parameters.

Return Value

QueryTimeSeriesResponse

Exceptions

Exception