Class ProjectsResource.TimeSeriesResource
The "timeSeries" collection of methods.
Inherited Members
Namespace: Google.Apis.Monitoring.v3
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class ProjectsResource.TimeSeriesResource
Constructors
TimeSeriesResource(IClientService)
Constructs a new resource.
Declaration
public TimeSeriesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(CreateTimeSeriesRequest, string)
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).
Declaration
public virtual ProjectsResource.TimeSeriesResource.CreateRequest Create(CreateTimeSeriesRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
CreateTimeSeriesRequest | body | The body of the request. |
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] |
Returns
Type | Description |
---|---|
ProjectsResource.TimeSeriesResource.CreateRequest |
CreateService(CreateTimeSeriesRequest, string)
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.
Declaration
public virtual ProjectsResource.TimeSeriesResource.CreateServiceRequest CreateService(CreateTimeSeriesRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
CreateTimeSeriesRequest | body | The body of the request. |
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] |
Returns
Type | Description |
---|---|
ProjectsResource.TimeSeriesResource.CreateServiceRequest |
List(string)
Lists time series that match a filter.
Declaration
public virtual ProjectsResource.TimeSeriesResource.ListRequest List(string name)
Parameters
Type | Name | Description |
---|---|---|
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] |
Returns
Type | Description |
---|---|
ProjectsResource.TimeSeriesResource.ListRequest |
Query(QueryTimeSeriesRequest, string)
Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/deprecations/mql).
Declaration
public virtual ProjectsResource.TimeSeriesResource.QueryRequest Query(QueryTimeSeriesRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
QueryTimeSeriesRequest | body | The body of the request. |
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] |
Returns
Type | Description |
---|---|
ProjectsResource.TimeSeriesResource.QueryRequest |