Class v3.MetricServiceClient (5.2.0)

Manages metric descriptors, monitored resource descriptors, and time series data. v3

Package

@google-cloud/monitoring

Constructors

(constructor)(opts, gaxInstance)

constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);

Construct an instance of MetricServiceClient.

Parameters
Name Description
opts ClientOptions
gaxInstance typeof gax | typeof fallback

: loaded instance of google-gax. Useful if you need to avoid loading the default gRPC version and want to use the fallback HTTP implementation. Load only fallback version and pass it to the constructor: ``` const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC const client = new MetricServiceClient({fallback: true}, gax); ```

Properties

apiEndpoint

get apiEndpoint(): string;

The DNS address for this API service.

apiEndpoint

static get apiEndpoint(): string;

The DNS address for this API service - same as servicePath.

auth

auth: gax.GoogleAuth;

descriptors

descriptors: Descriptors;

innerApiCalls

innerApiCalls: {
        [name: string]: Function;
    };

metricServiceStub

metricServiceStub?: Promise<{
        [name: string]: Function;
    }>;

pathTemplates

pathTemplates: {
        [name: string]: gax.PathTemplate;
    };

port

static get port(): number;

The port for this API service.

scopes

static get scopes(): string[];

The scopes needed to make gRPC calls for every method defined in this service.

servicePath

static get servicePath(): string;

The DNS address for this API service.

universeDomain

get universeDomain(): string;

warn

warn: (code: string, message: string, warnType?: string) => void;

Methods

close()

close(): Promise<void>;

Terminate the gRPC channel and close the client.

The client will no longer be usable and all future behavior is undefined.

Returns
Type Description
Promise<void>

{Promise} A promise that resolves when the client is closed.

createMetricDescriptor(request, options)

createMetricDescriptor(request?: protos.google.monitoring.v3.ICreateMetricDescriptorRequest, options?: CallOptions): Promise<[
        protos.google.api.IMetricDescriptor,
        protos.google.monitoring.v3.ICreateMetricDescriptorRequest | undefined,
        {} | undefined
    ]>;

Creates a new metric descriptor. The creation is executed asynchronously. User-created metric descriptors define [custom metrics](https://cloud.google.com/monitoring/custom-metrics). The metric descriptor is updated if it already exists, except that metric labels are never removed.

Parameters
Name Description
request ICreateMetricDescriptorRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.ICreateMetricDescriptorRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The
   *  project (https://cloud.google.com/monitoring/api/v3#project_name) on which
   *  to execute the request. The format is:
   *  4
   *      projects/[PROJECT_ID_OR_NUMBER]
   */
  // const name = 'abc123'
  /**
   *  Required. The new custom
   *  metric (https://cloud.google.com/monitoring/custom-metrics) descriptor.
   */
  // const metricDescriptor = {}

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callCreateMetricDescriptor() {
    // Construct request
    const request = {
      name,
      metricDescriptor,
    };

    // Run request
    const response = await monitoringClient.createMetricDescriptor(request);
    console.log(response);
  }

  callCreateMetricDescriptor();

createMetricDescriptor(request, options, callback)

createMetricDescriptor(request: protos.google.monitoring.v3.ICreateMetricDescriptorRequest, options: CallOptions, callback: Callback<protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.ICreateMetricDescriptorRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateMetricDescriptorRequest
options CallOptions
callback Callback<protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.ICreateMetricDescriptorRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

createMetricDescriptor(request, callback)

createMetricDescriptor(request: protos.google.monitoring.v3.ICreateMetricDescriptorRequest, callback: Callback<protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.ICreateMetricDescriptorRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateMetricDescriptorRequest
callback Callback<protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.ICreateMetricDescriptorRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

createServiceTimeSeries(request, options)

createServiceTimeSeries(request?: protos.google.monitoring.v3.ICreateTimeSeriesRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.monitoring.v3.ICreateTimeSeriesRequest | undefined,
        {} | undefined
    ]>;

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 instead.

Parameters
Name Description
request ICreateTimeSeriesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Empty. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  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]
   */
  // const name = 'abc123'
  /**
   *  Required. The new data to be added to a list of time series.
   *  Adds at most one data point to each of several time series.  The new data
   *  point must be more recent than any other point in its time series.  Each
   *  `TimeSeries` value must fully specify a unique time series by supplying
   *  all label values for the metric and the monitored resource.
   *  The maximum number of `TimeSeries` objects per `Create` request is 200.
   */
  // const timeSeries = [1,2,3,4]

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callCreateServiceTimeSeries() {
    // Construct request
    const request = {
      name,
      timeSeries,
    };

    // Run request
    const response = await monitoringClient.createServiceTimeSeries(request);
    console.log(response);
  }

  callCreateServiceTimeSeries();

createServiceTimeSeries(request, options, callback)

createServiceTimeSeries(request: protos.google.monitoring.v3.ICreateTimeSeriesRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateTimeSeriesRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

createServiceTimeSeries(request, callback)

createServiceTimeSeries(request: protos.google.monitoring.v3.ICreateTimeSeriesRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateTimeSeriesRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

createTimeSeries(request, options)

createTimeSeries(request?: protos.google.monitoring.v3.ICreateTimeSeriesRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.monitoring.v3.ICreateTimeSeriesRequest | undefined,
        {} | undefined
    ]>;

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).

Parameters
Name Description
request ICreateTimeSeriesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Empty. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  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]
   */
  // const name = 'abc123'
  /**
   *  Required. The new data to be added to a list of time series.
   *  Adds at most one data point to each of several time series.  The new data
   *  point must be more recent than any other point in its time series.  Each
   *  `TimeSeries` value must fully specify a unique time series by supplying
   *  all label values for the metric and the monitored resource.
   *  The maximum number of `TimeSeries` objects per `Create` request is 200.
   */
  // const timeSeries = [1,2,3,4]

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callCreateTimeSeries() {
    // Construct request
    const request = {
      name,
      timeSeries,
    };

    // Run request
    const response = await monitoringClient.createTimeSeries(request);
    console.log(response);
  }

  callCreateTimeSeries();

createTimeSeries(request, options, callback)

createTimeSeries(request: protos.google.monitoring.v3.ICreateTimeSeriesRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateTimeSeriesRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

createTimeSeries(request, callback)

createTimeSeries(request: protos.google.monitoring.v3.ICreateTimeSeriesRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateTimeSeriesRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.ICreateTimeSeriesRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteMetricDescriptor(request, options)

deleteMetricDescriptor(request?: protos.google.monitoring.v3.IDeleteMetricDescriptorRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.monitoring.v3.IDeleteMetricDescriptorRequest | undefined,
        {} | undefined
    ]>;

Deletes a metric descriptor. Only user-created [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be deleted.

Parameters
Name Description
request IDeleteMetricDescriptorRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.protobuf.IEmpty, protos.google.monitoring.v3.IDeleteMetricDescriptorRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Empty. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The metric descriptor on which to execute the request. The format
   *  is:
   *      projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
   *  An example of `[METRIC_ID]` is:
   *  `"custom.googleapis.com/my_test_metric"`.
   */
  // const name = 'abc123'

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callDeleteMetricDescriptor() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await monitoringClient.deleteMetricDescriptor(request);
    console.log(response);
  }

  callDeleteMetricDescriptor();

deleteMetricDescriptor(request, options, callback)

deleteMetricDescriptor(request: protos.google.monitoring.v3.IDeleteMetricDescriptorRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.IDeleteMetricDescriptorRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteMetricDescriptorRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.IDeleteMetricDescriptorRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteMetricDescriptor(request, callback)

deleteMetricDescriptor(request: protos.google.monitoring.v3.IDeleteMetricDescriptorRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.IDeleteMetricDescriptorRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteMetricDescriptorRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.monitoring.v3.IDeleteMetricDescriptorRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

folderAlertPolicyConditionPath(folder, alertPolicy, condition)

folderAlertPolicyConditionPath(folder: string, alertPolicy: string, condition: string): string;

Return a fully-qualified folderAlertPolicyCondition resource name string.

Parameters
Name Description
folder string
alertPolicy string
condition string
Returns
Type Description
string

{string} Resource name string.

folderAlertPolicyPath(folder, alertPolicy)

folderAlertPolicyPath(folder: string, alertPolicy: string): string;

Return a fully-qualified folderAlertPolicy resource name string.

Parameters
Name Description
folder string
alertPolicy string
Returns
Type Description
string

{string} Resource name string.

folderChannelDescriptorPath(folder, channelDescriptor)

folderChannelDescriptorPath(folder: string, channelDescriptor: string): string;

Return a fully-qualified folderChannelDescriptor resource name string.

Parameters
Name Description
folder string
channelDescriptor string
Returns
Type Description
string

{string} Resource name string.

folderGroupPath(folder, group)

folderGroupPath(folder: string, group: string): string;

Return a fully-qualified folderGroup resource name string.

Parameters
Name Description
folder string
group string
Returns
Type Description
string

{string} Resource name string.

folderMetricDescriptorPath(folder, metricDescriptor)

folderMetricDescriptorPath(folder: string, metricDescriptor: string): string;

Return a fully-qualified folderMetricDescriptor resource name string.

Parameters
Name Description
folder string
metricDescriptor string
Returns
Type Description
string

{string} Resource name string.

folderMonitoredResourceDescriptorPath(folder, monitoredResourceDescriptor)

folderMonitoredResourceDescriptorPath(folder: string, monitoredResourceDescriptor: string): string;

Return a fully-qualified folderMonitoredResourceDescriptor resource name string.

Parameters
Name Description
folder string
monitoredResourceDescriptor string
Returns
Type Description
string

{string} Resource name string.

folderNotificationChannelPath(folder, notificationChannel)

folderNotificationChannelPath(folder: string, notificationChannel: string): string;

Return a fully-qualified folderNotificationChannel resource name string.

Parameters
Name Description
folder string
notificationChannel string
Returns
Type Description
string

{string} Resource name string.

folderServicePath(folder, service)

folderServicePath(folder: string, service: string): string;

Return a fully-qualified folderService resource name string.

Parameters
Name Description
folder string
service string
Returns
Type Description
string

{string} Resource name string.

folderServiceServiceLevelObjectivePath(folder, service, serviceLevelObjective)

folderServiceServiceLevelObjectivePath(folder: string, service: string, serviceLevelObjective: string): string;

Return a fully-qualified folderServiceServiceLevelObjective resource name string.

Parameters
Name Description
folder string
service string
serviceLevelObjective string
Returns
Type Description
string

{string} Resource name string.

folderUptimeCheckConfigPath(folder, uptimeCheckConfig)

folderUptimeCheckConfigPath(folder: string, uptimeCheckConfig: string): string;

Return a fully-qualified folderUptimeCheckConfig resource name string.

Parameters
Name Description
folder string
uptimeCheckConfig string
Returns
Type Description
string

{string} Resource name string.

getMetricDescriptor(request, options)

getMetricDescriptor(request?: protos.google.monitoring.v3.IGetMetricDescriptorRequest, options?: CallOptions): Promise<[
        protos.google.api.IMetricDescriptor,
        protos.google.monitoring.v3.IGetMetricDescriptorRequest | undefined,
        {} | undefined
    ]>;

Gets a single metric descriptor.

Parameters
Name Description
request IGetMetricDescriptorRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.IGetMetricDescriptorRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The metric descriptor on which to execute the request. The format
   *  is:
   *      projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
   *  An example value of `[METRIC_ID]` is
   *  `"compute.googleapis.com/instance/disk/read_bytes_count"`.
   */
  // const name = 'abc123'

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callGetMetricDescriptor() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await monitoringClient.getMetricDescriptor(request);
    console.log(response);
  }

  callGetMetricDescriptor();

getMetricDescriptor(request, options, callback)

getMetricDescriptor(request: protos.google.monitoring.v3.IGetMetricDescriptorRequest, options: CallOptions, callback: Callback<protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.IGetMetricDescriptorRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetMetricDescriptorRequest
options CallOptions
callback Callback<protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.IGetMetricDescriptorRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getMetricDescriptor(request, callback)

getMetricDescriptor(request: protos.google.monitoring.v3.IGetMetricDescriptorRequest, callback: Callback<protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.IGetMetricDescriptorRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetMetricDescriptorRequest
callback Callback<protos.google.api.IMetricDescriptor, protos.google.monitoring.v3.IGetMetricDescriptorRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getMonitoredResourceDescriptor(request, options)

getMonitoredResourceDescriptor(request?: protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest, options?: CallOptions): Promise<[
        protos.google.api.IMonitoredResourceDescriptor,
        (protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest | undefined),
        {} | undefined
    ]>;

Gets a single monitored resource descriptor.

Parameters
Name Description
request IGetMonitoredResourceDescriptorRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.api.IMonitoredResourceDescriptor, (protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing MonitoredResourceDescriptor. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The monitored resource descriptor to get.  The format is:
   *      projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
   *  The `[RESOURCE_TYPE]` is a predefined type, such as
   *  `cloudsql_database`.
   */
  // const name = 'abc123'

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callGetMonitoredResourceDescriptor() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await monitoringClient.getMonitoredResourceDescriptor(request);
    console.log(response);
  }

  callGetMonitoredResourceDescriptor();

getMonitoredResourceDescriptor(request, options, callback)

getMonitoredResourceDescriptor(request: protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest, options: CallOptions, callback: Callback<protos.google.api.IMonitoredResourceDescriptor, protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetMonitoredResourceDescriptorRequest
options CallOptions
callback Callback<protos.google.api.IMonitoredResourceDescriptor, protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getMonitoredResourceDescriptor(request, callback)

getMonitoredResourceDescriptor(request: protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest, callback: Callback<protos.google.api.IMonitoredResourceDescriptor, protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetMonitoredResourceDescriptorRequest
callback Callback<protos.google.api.IMonitoredResourceDescriptor, protos.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getProjectId()

getProjectId(): Promise<string>;
Returns
Type Description
Promise<string>

getProjectId(callback)

getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
Name Description
callback Callback<string, undefined, undefined>
Returns
Type Description
void

initialize()

initialize(): Promise<{
        [name: string]: Function;
    }>;

Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.

You can await on this method if you want to make sure the client is initialized.

Returns
Type Description
Promise<{ [name: string]: Function; }>

{Promise} A promise that resolves to an authenticated service stub.

listMetricDescriptors(request, options)

listMetricDescriptors(request?: protos.google.monitoring.v3.IListMetricDescriptorsRequest, options?: CallOptions): Promise<[
        protos.google.api.IMetricDescriptor[],
        protos.google.monitoring.v3.IListMetricDescriptorsRequest | null,
        protos.google.monitoring.v3.IListMetricDescriptorsResponse
    ]>;

Lists metric descriptors that match a filter.

Parameters
Name Description
request IListMetricDescriptorsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.api.IMetricDescriptor[], protos.google.monitoring.v3.IListMetricDescriptorsRequest | null, protos.google.monitoring.v3.IListMetricDescriptorsResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listMetricDescriptorsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listMetricDescriptors(request, options, callback)

listMetricDescriptors(request: protos.google.monitoring.v3.IListMetricDescriptorsRequest, options: CallOptions, callback: PaginationCallback<protos.google.monitoring.v3.IListMetricDescriptorsRequest, protos.google.monitoring.v3.IListMetricDescriptorsResponse | null | undefined, protos.google.api.IMetricDescriptor>): void;
Parameters
Name Description
request IListMetricDescriptorsRequest
options CallOptions
callback PaginationCallback<protos.google.monitoring.v3.IListMetricDescriptorsRequest, protos.google.monitoring.v3.IListMetricDescriptorsResponse | null | undefined, protos.google.api.IMetricDescriptor>
Returns
Type Description
void

listMetricDescriptors(request, callback)

listMetricDescriptors(request: protos.google.monitoring.v3.IListMetricDescriptorsRequest, callback: PaginationCallback<protos.google.monitoring.v3.IListMetricDescriptorsRequest, protos.google.monitoring.v3.IListMetricDescriptorsResponse | null | undefined, protos.google.api.IMetricDescriptor>): void;
Parameters
Name Description
request IListMetricDescriptorsRequest
callback PaginationCallback<protos.google.monitoring.v3.IListMetricDescriptorsRequest, protos.google.monitoring.v3.IListMetricDescriptorsResponse | null | undefined, protos.google.api.IMetricDescriptor>
Returns
Type Description
void

listMetricDescriptorsAsync(request, options)

listMetricDescriptorsAsync(request?: protos.google.monitoring.v3.IListMetricDescriptorsRequest, options?: CallOptions): AsyncIterable<protos.google.api.IMetricDescriptor>;

Equivalent to listMetricDescriptors, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
Name Description
request IListMetricDescriptorsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.api.IMetricDescriptor>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  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]
   */
  // const name = 'abc123'
  /**
   *  Optional. If this field is empty, all custom and
   *  system-defined metric descriptors are returned.
   *  Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters)
   *  specifies which metric descriptors are to be
   *  returned. For example, the following filter matches all
   *  custom metrics (https://cloud.google.com/monitoring/custom-metrics):
   *      metric.type = starts_with("custom.googleapis.com/")
   */
  // const filter = 'abc123'
  /**
   *  Optional. A positive number that is the maximum number of results to
   *  return. The default and maximum value is 10,000. If a page_size <= 0="" or="">
   *  10,000 is submitted, will instead return a maximum of 10,000 results.
   */
  // const pageSize = 1234
  /**
   *  Optional. If this field is not empty then it must contain the
   *  `nextPageToken` value returned by a previous call to this method.  Using
   *  this field causes the method to return additional results from the previous
   *  method call.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. If true, only metrics and monitored resource types that have
   *  recent data (within roughly 25 hours) will be included in the response.
   *   - If a metric descriptor enumerates monitored resource types, only the
   *     monitored resource types for which the metric type has recent data will
   *     be included in the returned metric descriptor, and if none of them have
   *     recent data, the metric descriptor will not be returned.
   *   - If a metric descriptor does not enumerate the compatible monitored
   *     resource types, it will be returned only if the metric type has recent
   *     data for some monitored resource type. The returned descriptor will not
   *     enumerate any monitored resource types.
   */
  // const activeOnly = true

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callListMetricDescriptors() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const iterable = monitoringClient.listMetricDescriptorsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListMetricDescriptors();

listMetricDescriptorsStream(request, options)

listMetricDescriptorsStream(request?: protos.google.monitoring.v3.IListMetricDescriptorsRequest, options?: CallOptions): Transform;

Equivalent to listMetricDescriptors, but returns a NodeJS Stream object.

Parameters
Name Description
request IListMetricDescriptorsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Transform

{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listMetricDescriptorsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listMonitoredResourceDescriptors(request, options)

listMonitoredResourceDescriptors(request?: protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, options?: CallOptions): Promise<[
        protos.google.api.IMonitoredResourceDescriptor[],
        protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest | null,
        protos.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse
    ]>;

Lists monitored resource descriptors that match a filter.

Parameters
Name Description
request IListMonitoredResourceDescriptorsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.api.IMonitoredResourceDescriptor[], protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest | null, protos.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of MonitoredResourceDescriptor. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listMonitoredResourceDescriptorsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listMonitoredResourceDescriptors(request, options, callback)

listMonitoredResourceDescriptors(request: protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, options: CallOptions, callback: PaginationCallback<protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, protos.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse | null | undefined, protos.google.api.IMonitoredResourceDescriptor>): void;
Parameters
Name Description
request IListMonitoredResourceDescriptorsRequest
options CallOptions
callback PaginationCallback<protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, protos.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse | null | undefined, protos.google.api.IMonitoredResourceDescriptor>
Returns
Type Description
void

listMonitoredResourceDescriptors(request, callback)

listMonitoredResourceDescriptors(request: protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, callback: PaginationCallback<protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, protos.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse | null | undefined, protos.google.api.IMonitoredResourceDescriptor>): void;
Parameters
Name Description
request IListMonitoredResourceDescriptorsRequest
callback PaginationCallback<protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, protos.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse | null | undefined, protos.google.api.IMonitoredResourceDescriptor>
Returns
Type Description
void

listMonitoredResourceDescriptorsAsync(request, options)

listMonitoredResourceDescriptorsAsync(request?: protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, options?: CallOptions): AsyncIterable<protos.google.api.IMonitoredResourceDescriptor>;

Equivalent to listMonitoredResourceDescriptors, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
Name Description
request IListMonitoredResourceDescriptorsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.api.IMonitoredResourceDescriptor>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing MonitoredResourceDescriptor. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  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]
   */
  // const name = 'abc123'
  /**
   *  An optional filter (https://cloud.google.com/monitoring/api/v3/filters)
   *  describing the descriptors to be returned.  The filter can reference the
   *  descriptor's type and labels. For example, the following filter returns
   *  only Google Compute Engine descriptors that have an `id` label:
   *      resource.type = starts_with("gce_") AND resource.label:id
   */
  // const filter = 'abc123'
  /**
   *  A positive number that is the maximum number of results to return.
   */
  // const pageSize = 1234
  /**
   *  If this field is not empty then it must contain the `nextPageToken` value
   *  returned by a previous call to this method.  Using this field causes the
   *  method to return additional results from the previous method call.
   */
  // const pageToken = 'abc123'

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callListMonitoredResourceDescriptors() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const iterable = monitoringClient.listMonitoredResourceDescriptorsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListMonitoredResourceDescriptors();

listMonitoredResourceDescriptorsStream(request, options)

listMonitoredResourceDescriptorsStream(request?: protos.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, options?: CallOptions): Transform;

Equivalent to listMonitoredResourceDescriptors, but returns a NodeJS Stream object.

Parameters
Name Description
request IListMonitoredResourceDescriptorsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Transform

{Stream} An object stream which emits an object representing MonitoredResourceDescriptor on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listMonitoredResourceDescriptorsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listTimeSeries(request, options)

listTimeSeries(request?: protos.google.monitoring.v3.IListTimeSeriesRequest, options?: CallOptions): Promise<[
        protos.google.monitoring.v3.ITimeSeries[],
        protos.google.monitoring.v3.IListTimeSeriesRequest | null,
        protos.google.monitoring.v3.IListTimeSeriesResponse
    ]>;

Lists time series that match a filter.

Parameters
Name Description
request IListTimeSeriesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.monitoring.v3.ITimeSeries[], protos.google.monitoring.v3.IListTimeSeriesRequest | null, protos.google.monitoring.v3.IListTimeSeriesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of TimeSeries. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listTimeSeriesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listTimeSeries(request, options, callback)

listTimeSeries(request: protos.google.monitoring.v3.IListTimeSeriesRequest, options: CallOptions, callback: PaginationCallback<protos.google.monitoring.v3.IListTimeSeriesRequest, protos.google.monitoring.v3.IListTimeSeriesResponse | null | undefined, protos.google.monitoring.v3.ITimeSeries>): void;
Parameters
Name Description
request IListTimeSeriesRequest
options CallOptions
callback PaginationCallback<protos.google.monitoring.v3.IListTimeSeriesRequest, protos.google.monitoring.v3.IListTimeSeriesResponse | null | undefined, protos.google.monitoring.v3.ITimeSeries>
Returns
Type Description
void

listTimeSeries(request, callback)

listTimeSeries(request: protos.google.monitoring.v3.IListTimeSeriesRequest, callback: PaginationCallback<protos.google.monitoring.v3.IListTimeSeriesRequest, protos.google.monitoring.v3.IListTimeSeriesResponse | null | undefined, protos.google.monitoring.v3.ITimeSeries>): void;
Parameters
Name Description
request IListTimeSeriesRequest
callback PaginationCallback<protos.google.monitoring.v3.IListTimeSeriesRequest, protos.google.monitoring.v3.IListTimeSeriesResponse | null | undefined, protos.google.monitoring.v3.ITimeSeries>
Returns
Type Description
void

listTimeSeriesAsync(request, options)

listTimeSeriesAsync(request?: protos.google.monitoring.v3.IListTimeSeriesRequest, options?: CallOptions): AsyncIterable<protos.google.monitoring.v3.ITimeSeries>;

Equivalent to listTimeSeries, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
Name Description
request IListTimeSeriesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.monitoring.v3.ITimeSeries>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing TimeSeries. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  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]
   */
  // const name = 'abc123'
  /**
   *  Required. A monitoring
   *  filter (https://cloud.google.com/monitoring/api/v3/filters) that specifies
   *  which time series should be returned.  The filter must specify a single
   *  metric type, and can additionally specify metric labels and other
   *  information. For example:
   *      metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
   *          metric.labels.instance_name = "my-instance-name"
   */
  // const filter = 'abc123'
  /**
   *  Required. The time interval for which results should be returned. Only time
   *  series that contain data points in the specified interval are included in
   *  the response.
   */
  // const interval = {}
  /**
   *  Specifies the alignment of data points in individual time series as
   *  well as how to combine the retrieved time series across specified labels.
   *  By default (if no `aggregation` is explicitly specified), the raw time
   *  series data is returned.
   */
  // const aggregation = {}
  /**
   *  Apply a second aggregation after `aggregation` is applied. May only be
   *  specified if `aggregation` is specified.
   */
  // const secondaryAggregation = {}
  /**
   *  Unsupported: must be left blank. The points in each time series are
   *  currently returned in reverse time order (most recent to oldest).
   */
  // const orderBy = 'abc123'
  /**
   *  Required. Specifies which information is returned about the time series.
   */
  // const view = {}
  /**
   *  A positive number that is the maximum number of results to return. If
   *  `page_size` is empty or more than 100,000 results, the effective
   *  `page_size` is 100,000 results. If `view` is set to `FULL`, this is the
   *  maximum number of `Points` returned. If `view` is set to `HEADERS`, this is
   *  the maximum number of `TimeSeries` returned.
   */
  // const pageSize = 1234
  /**
   *  If this field is not empty then it must contain the `nextPageToken` value
   *  returned by a previous call to this method.  Using this field causes the
   *  method to return additional results from the previous method call.
   */
  // const pageToken = 'abc123'

  // Imports the Monitoring library
  const {MetricServiceClient} = require('@google-cloud/monitoring').v3;

  // Instantiates a client
  const monitoringClient = new MetricServiceClient();

  async function callListTimeSeries() {
    // Construct request
    const request = {
      name,
      filter,
      interval,
      view,
    };

    // Run request
    const iterable = monitoringClient.listTimeSeriesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListTimeSeries();

listTimeSeriesStream(request, options)

listTimeSeriesStream(request?: protos.google.monitoring.v3.IListTimeSeriesRequest, options?: CallOptions): Transform;

Equivalent to listTimeSeries, but returns a NodeJS Stream object.

Parameters
Name Description
request IListTimeSeriesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Transform

{Stream} An object stream which emits an object representing TimeSeries on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listTimeSeriesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

matchAlertPolicyFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)

matchAlertPolicyFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName: string): string | number;

Parse the alert_policy from FolderAlertPolicyCondition resource.

Parameter
Name Description
folderAlertPolicyConditionName string

A fully-qualified path representing folder_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the alert_policy.

matchAlertPolicyFromFolderAlertPolicyName(folderAlertPolicyName)

matchAlertPolicyFromFolderAlertPolicyName(folderAlertPolicyName: string): string | number;

Parse the alert_policy from FolderAlertPolicy resource.

Parameter
Name Description
folderAlertPolicyName string

A fully-qualified path representing folder_alert_policy resource.

Returns
Type Description
string | number

{string} A string representing the alert_policy.

matchAlertPolicyFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)

matchAlertPolicyFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName: string): string | number;

Parse the alert_policy from OrganizationAlertPolicyCondition resource.

Parameter
Name Description
organizationAlertPolicyConditionName string

A fully-qualified path representing organization_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the alert_policy.

matchAlertPolicyFromOrganizationAlertPolicyName(organizationAlertPolicyName)

matchAlertPolicyFromOrganizationAlertPolicyName(organizationAlertPolicyName: string): string | number;

Parse the alert_policy from OrganizationAlertPolicy resource.

Parameter
Name Description
organizationAlertPolicyName string

A fully-qualified path representing organization_alert_policy resource.

Returns
Type Description
string | number

{string} A string representing the alert_policy.

matchAlertPolicyFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)

matchAlertPolicyFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName: string): string | number;

Parse the alert_policy from ProjectAlertPolicyCondition resource.

Parameter
Name Description
projectAlertPolicyConditionName string

A fully-qualified path representing project_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the alert_policy.

matchAlertPolicyFromProjectAlertPolicyName(projectAlertPolicyName)

matchAlertPolicyFromProjectAlertPolicyName(projectAlertPolicyName: string): string | number;

Parse the alert_policy from ProjectAlertPolicy resource.

Parameter
Name Description
projectAlertPolicyName string

A fully-qualified path representing project_alert_policy resource.

Returns
Type Description
string | number

{string} A string representing the alert_policy.

matchChannelDescriptorFromFolderChannelDescriptorName(folderChannelDescriptorName)

matchChannelDescriptorFromFolderChannelDescriptorName(folderChannelDescriptorName: string): string | number;

Parse the channel_descriptor from FolderChannelDescriptor resource.

Parameter
Name Description
folderChannelDescriptorName string

A fully-qualified path representing folder_channel_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the channel_descriptor.

matchChannelDescriptorFromOrganizationChannelDescriptorName(organizationChannelDescriptorName)

matchChannelDescriptorFromOrganizationChannelDescriptorName(organizationChannelDescriptorName: string): string | number;

Parse the channel_descriptor from OrganizationChannelDescriptor resource.

Parameter
Name Description
organizationChannelDescriptorName string

A fully-qualified path representing organization_channel_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the channel_descriptor.

matchChannelDescriptorFromProjectChannelDescriptorName(projectChannelDescriptorName)

matchChannelDescriptorFromProjectChannelDescriptorName(projectChannelDescriptorName: string): string | number;

Parse the channel_descriptor from ProjectChannelDescriptor resource.

Parameter
Name Description
projectChannelDescriptorName string

A fully-qualified path representing project_channel_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the channel_descriptor.

matchConditionFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)

matchConditionFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName: string): string | number;

Parse the condition from FolderAlertPolicyCondition resource.

Parameter
Name Description
folderAlertPolicyConditionName string

A fully-qualified path representing folder_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the condition.

matchConditionFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)

matchConditionFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName: string): string | number;

Parse the condition from OrganizationAlertPolicyCondition resource.

Parameter
Name Description
organizationAlertPolicyConditionName string

A fully-qualified path representing organization_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the condition.

matchConditionFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)

matchConditionFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName: string): string | number;

Parse the condition from ProjectAlertPolicyCondition resource.

Parameter
Name Description
projectAlertPolicyConditionName string

A fully-qualified path representing project_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the condition.

matchFolderFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)

matchFolderFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName: string): string | number;

Parse the folder from FolderAlertPolicyCondition resource.

Parameter
Name Description
folderAlertPolicyConditionName string

A fully-qualified path representing folder_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderAlertPolicyName(folderAlertPolicyName)

matchFolderFromFolderAlertPolicyName(folderAlertPolicyName: string): string | number;

Parse the folder from FolderAlertPolicy resource.

Parameter
Name Description
folderAlertPolicyName string

A fully-qualified path representing folder_alert_policy resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderChannelDescriptorName(folderChannelDescriptorName)

matchFolderFromFolderChannelDescriptorName(folderChannelDescriptorName: string): string | number;

Parse the folder from FolderChannelDescriptor resource.

Parameter
Name Description
folderChannelDescriptorName string

A fully-qualified path representing folder_channel_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderGroupName(folderGroupName)

matchFolderFromFolderGroupName(folderGroupName: string): string | number;

Parse the folder from FolderGroup resource.

Parameter
Name Description
folderGroupName string

A fully-qualified path representing folder_group resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderMetricDescriptorName(folderMetricDescriptorName)

matchFolderFromFolderMetricDescriptorName(folderMetricDescriptorName: string): string | number;

Parse the folder from FolderMetricDescriptor resource.

Parameter
Name Description
folderMetricDescriptorName string

A fully-qualified path representing folder_metric_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderMonitoredResourceDescriptorName(folderMonitoredResourceDescriptorName)

matchFolderFromFolderMonitoredResourceDescriptorName(folderMonitoredResourceDescriptorName: string): string | number;

Parse the folder from FolderMonitoredResourceDescriptor resource.

Parameter
Name Description
folderMonitoredResourceDescriptorName string

A fully-qualified path representing folder_monitored_resource_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderNotificationChannelName(folderNotificationChannelName)

matchFolderFromFolderNotificationChannelName(folderNotificationChannelName: string): string | number;

Parse the folder from FolderNotificationChannel resource.

Parameter
Name Description
folderNotificationChannelName string

A fully-qualified path representing folder_notification_channel resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderServiceName(folderServiceName)

matchFolderFromFolderServiceName(folderServiceName: string): string | number;

Parse the folder from FolderService resource.

Parameter
Name Description
folderServiceName string

A fully-qualified path representing folder_service resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)

matchFolderFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName: string): string | number;

Parse the folder from FolderServiceServiceLevelObjective resource.

Parameter
Name Description
folderServiceServiceLevelObjectiveName string

A fully-qualified path representing folder_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchFolderFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName)

matchFolderFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName: string): string | number;

Parse the folder from FolderUptimeCheckConfig resource.

Parameter
Name Description
folderUptimeCheckConfigName string

A fully-qualified path representing folder_uptime_check_config resource.

Returns
Type Description
string | number

{string} A string representing the folder.

matchGroupFromFolderGroupName(folderGroupName)

matchGroupFromFolderGroupName(folderGroupName: string): string | number;

Parse the group from FolderGroup resource.

Parameter
Name Description
folderGroupName string

A fully-qualified path representing folder_group resource.

Returns
Type Description
string | number

{string} A string representing the group.

matchGroupFromOrganizationGroupName(organizationGroupName)

matchGroupFromOrganizationGroupName(organizationGroupName: string): string | number;

Parse the group from OrganizationGroup resource.

Parameter
Name Description
organizationGroupName string

A fully-qualified path representing organization_group resource.

Returns
Type Description
string | number

{string} A string representing the group.

matchGroupFromProjectGroupName(projectGroupName)

matchGroupFromProjectGroupName(projectGroupName: string): string | number;

Parse the group from ProjectGroup resource.

Parameter
Name Description
projectGroupName string

A fully-qualified path representing project_group resource.

Returns
Type Description
string | number

{string} A string representing the group.

matchMetricDescriptorFromFolderMetricDescriptorName(folderMetricDescriptorName)

matchMetricDescriptorFromFolderMetricDescriptorName(folderMetricDescriptorName: string): string | number;

Parse the metric_descriptor from FolderMetricDescriptor resource.

Parameter
Name Description
folderMetricDescriptorName string

A fully-qualified path representing folder_metric_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the metric_descriptor.

matchMetricDescriptorFromOrganizationMetricDescriptorName(organizationMetricDescriptorName)

matchMetricDescriptorFromOrganizationMetricDescriptorName(organizationMetricDescriptorName: string): string | number;

Parse the metric_descriptor from OrganizationMetricDescriptor resource.

Parameter
Name Description
organizationMetricDescriptorName string

A fully-qualified path representing organization_metric_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the metric_descriptor.

matchMetricDescriptorFromProjectMetricDescriptorName(projectMetricDescriptorName)

matchMetricDescriptorFromProjectMetricDescriptorName(projectMetricDescriptorName: string): string | number;

Parse the metric_descriptor from ProjectMetricDescriptor resource.

Parameter
Name Description
projectMetricDescriptorName string

A fully-qualified path representing project_metric_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the metric_descriptor.

matchMonitoredResourceDescriptorFromFolderMonitoredResourceDescriptorName(folderMonitoredResourceDescriptorName)

matchMonitoredResourceDescriptorFromFolderMonitoredResourceDescriptorName(folderMonitoredResourceDescriptorName: string): string | number;

Parse the monitored_resource_descriptor from FolderMonitoredResourceDescriptor resource.

Parameter
Name Description
folderMonitoredResourceDescriptorName string

A fully-qualified path representing folder_monitored_resource_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the monitored_resource_descriptor.

matchMonitoredResourceDescriptorFromOrganizationMonitoredResourceDescriptorName(organizationMonitoredResourceDescriptorName)

matchMonitoredResourceDescriptorFromOrganizationMonitoredResourceDescriptorName(organizationMonitoredResourceDescriptorName: string): string | number;

Parse the monitored_resource_descriptor from OrganizationMonitoredResourceDescriptor resource.

Parameter
Name Description
organizationMonitoredResourceDescriptorName string

A fully-qualified path representing organization_monitored_resource_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the monitored_resource_descriptor.

matchMonitoredResourceDescriptorFromProjectMonitoredResourceDescriptorName(projectMonitoredResourceDescriptorName)

matchMonitoredResourceDescriptorFromProjectMonitoredResourceDescriptorName(projectMonitoredResourceDescriptorName: string): string | number;

Parse the monitored_resource_descriptor from ProjectMonitoredResourceDescriptor resource.

Parameter
Name Description
projectMonitoredResourceDescriptorName string

A fully-qualified path representing project_monitored_resource_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the monitored_resource_descriptor.

matchNotificationChannelFromFolderNotificationChannelName(folderNotificationChannelName)

matchNotificationChannelFromFolderNotificationChannelName(folderNotificationChannelName: string): string | number;

Parse the notification_channel from FolderNotificationChannel resource.

Parameter
Name Description
folderNotificationChannelName string

A fully-qualified path representing folder_notification_channel resource.

Returns
Type Description
string | number

{string} A string representing the notification_channel.

matchNotificationChannelFromOrganizationNotificationChannelName(organizationNotificationChannelName)

matchNotificationChannelFromOrganizationNotificationChannelName(organizationNotificationChannelName: string): string | number;

Parse the notification_channel from OrganizationNotificationChannel resource.

Parameter
Name Description
organizationNotificationChannelName string

A fully-qualified path representing organization_notification_channel resource.

Returns
Type Description
string | number

{string} A string representing the notification_channel.

matchNotificationChannelFromProjectNotificationChannelName(projectNotificationChannelName)

matchNotificationChannelFromProjectNotificationChannelName(projectNotificationChannelName: string): string | number;

Parse the notification_channel from ProjectNotificationChannel resource.

Parameter
Name Description
projectNotificationChannelName string

A fully-qualified path representing project_notification_channel resource.

Returns
Type Description
string | number

{string} A string representing the notification_channel.

matchOrganizationFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)

matchOrganizationFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName: string): string | number;

Parse the organization from OrganizationAlertPolicyCondition resource.

Parameter
Name Description
organizationAlertPolicyConditionName string

A fully-qualified path representing organization_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationAlertPolicyName(organizationAlertPolicyName)

matchOrganizationFromOrganizationAlertPolicyName(organizationAlertPolicyName: string): string | number;

Parse the organization from OrganizationAlertPolicy resource.

Parameter
Name Description
organizationAlertPolicyName string

A fully-qualified path representing organization_alert_policy resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationChannelDescriptorName(organizationChannelDescriptorName)

matchOrganizationFromOrganizationChannelDescriptorName(organizationChannelDescriptorName: string): string | number;

Parse the organization from OrganizationChannelDescriptor resource.

Parameter
Name Description
organizationChannelDescriptorName string

A fully-qualified path representing organization_channel_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationGroupName(organizationGroupName)

matchOrganizationFromOrganizationGroupName(organizationGroupName: string): string | number;

Parse the organization from OrganizationGroup resource.

Parameter
Name Description
organizationGroupName string

A fully-qualified path representing organization_group resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationMetricDescriptorName(organizationMetricDescriptorName)

matchOrganizationFromOrganizationMetricDescriptorName(organizationMetricDescriptorName: string): string | number;

Parse the organization from OrganizationMetricDescriptor resource.

Parameter
Name Description
organizationMetricDescriptorName string

A fully-qualified path representing organization_metric_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationMonitoredResourceDescriptorName(organizationMonitoredResourceDescriptorName)

matchOrganizationFromOrganizationMonitoredResourceDescriptorName(organizationMonitoredResourceDescriptorName: string): string | number;

Parse the organization from OrganizationMonitoredResourceDescriptor resource.

Parameter
Name Description
organizationMonitoredResourceDescriptorName string

A fully-qualified path representing organization_monitored_resource_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationNotificationChannelName(organizationNotificationChannelName)

matchOrganizationFromOrganizationNotificationChannelName(organizationNotificationChannelName: string): string | number;

Parse the organization from OrganizationNotificationChannel resource.

Parameter
Name Description
organizationNotificationChannelName string

A fully-qualified path representing organization_notification_channel resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationServiceName(organizationServiceName)

matchOrganizationFromOrganizationServiceName(organizationServiceName: string): string | number;

Parse the organization from OrganizationService resource.

Parameter
Name Description
organizationServiceName string

A fully-qualified path representing organization_service resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName)

matchOrganizationFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName: string): string | number;

Parse the organization from OrganizationServiceServiceLevelObjective resource.

Parameter
Name Description
organizationServiceServiceLevelObjectiveName string

A fully-qualified path representing organization_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationUptimeCheckConfigName(organizationUptimeCheckConfigName)

matchOrganizationFromOrganizationUptimeCheckConfigName(organizationUptimeCheckConfigName: string): string | number;

Parse the organization from OrganizationUptimeCheckConfig resource.

Parameter
Name Description
organizationUptimeCheckConfigName string

A fully-qualified path representing organization_uptime_check_config resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchProjectFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)

matchProjectFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName: string): string | number;

Parse the project from ProjectAlertPolicyCondition resource.

Parameter
Name Description
projectAlertPolicyConditionName string

A fully-qualified path representing project_alert_policy_condition resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectAlertPolicyName(projectAlertPolicyName)

matchProjectFromProjectAlertPolicyName(projectAlertPolicyName: string): string | number;

Parse the project from ProjectAlertPolicy resource.

Parameter
Name Description
projectAlertPolicyName string

A fully-qualified path representing project_alert_policy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectChannelDescriptorName(projectChannelDescriptorName)

matchProjectFromProjectChannelDescriptorName(projectChannelDescriptorName: string): string | number;

Parse the project from ProjectChannelDescriptor resource.

Parameter
Name Description
projectChannelDescriptorName string

A fully-qualified path representing project_channel_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectGroupName(projectGroupName)

matchProjectFromProjectGroupName(projectGroupName: string): string | number;

Parse the project from ProjectGroup resource.

Parameter
Name Description
projectGroupName string

A fully-qualified path representing project_group resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectMetricDescriptorName(projectMetricDescriptorName)

matchProjectFromProjectMetricDescriptorName(projectMetricDescriptorName: string): string | number;

Parse the project from ProjectMetricDescriptor resource.

Parameter
Name Description
projectMetricDescriptorName string

A fully-qualified path representing project_metric_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectMonitoredResourceDescriptorName(projectMonitoredResourceDescriptorName)

matchProjectFromProjectMonitoredResourceDescriptorName(projectMonitoredResourceDescriptorName: string): string | number;

Parse the project from ProjectMonitoredResourceDescriptor resource.

Parameter
Name Description
projectMonitoredResourceDescriptorName string

A fully-qualified path representing project_monitored_resource_descriptor resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectName(projectName)

matchProjectFromProjectName(projectName: string): string | number;

Parse the project from Project resource.

Parameter
Name Description
projectName string

A fully-qualified path representing Project resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectNotificationChannelName(projectNotificationChannelName)

matchProjectFromProjectNotificationChannelName(projectNotificationChannelName: string): string | number;

Parse the project from ProjectNotificationChannel resource.

Parameter
Name Description
projectNotificationChannelName string

A fully-qualified path representing project_notification_channel resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectServiceName(projectServiceName)

matchProjectFromProjectServiceName(projectServiceName: string): string | number;

Parse the project from ProjectService resource.

Parameter
Name Description
projectServiceName string

A fully-qualified path representing project_service resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName)

matchProjectFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName: string): string | number;

Parse the project from ProjectServiceServiceLevelObjective resource.

Parameter
Name Description
projectServiceServiceLevelObjectiveName string

A fully-qualified path representing project_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectTimeSeriesName(projectTimeSeriesName)

matchProjectFromProjectTimeSeriesName(projectTimeSeriesName: string): string | number;

Parse the project from ProjectTimeSeries resource.

Parameter
Name Description
projectTimeSeriesName string

A fully-qualified path representing project_time_series resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectUptimeCheckConfigName(projectUptimeCheckConfigName)

matchProjectFromProjectUptimeCheckConfigName(projectUptimeCheckConfigName: string): string | number;

Parse the project from ProjectUptimeCheckConfig resource.

Parameter
Name Description
projectUptimeCheckConfigName string

A fully-qualified path representing project_uptime_check_config resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromSnoozeName(snoozeName)

matchProjectFromSnoozeName(snoozeName: string): string | number;

Parse the project from Snooze resource.

Parameter
Name Description
snoozeName string

A fully-qualified path representing Snooze resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchServiceFromFolderServiceName(folderServiceName)

matchServiceFromFolderServiceName(folderServiceName: string): string | number;

Parse the service from FolderService resource.

Parameter
Name Description
folderServiceName string

A fully-qualified path representing folder_service resource.

Returns
Type Description
string | number

{string} A string representing the service.

matchServiceFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)

matchServiceFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName: string): string | number;

Parse the service from FolderServiceServiceLevelObjective resource.

Parameter
Name Description
folderServiceServiceLevelObjectiveName string

A fully-qualified path representing folder_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the service.

matchServiceFromOrganizationServiceName(organizationServiceName)

matchServiceFromOrganizationServiceName(organizationServiceName: string): string | number;

Parse the service from OrganizationService resource.

Parameter
Name Description
organizationServiceName string

A fully-qualified path representing organization_service resource.

Returns
Type Description
string | number

{string} A string representing the service.

matchServiceFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName)

matchServiceFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName: string): string | number;

Parse the service from OrganizationServiceServiceLevelObjective resource.

Parameter
Name Description
organizationServiceServiceLevelObjectiveName string

A fully-qualified path representing organization_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the service.

matchServiceFromProjectServiceName(projectServiceName)

matchServiceFromProjectServiceName(projectServiceName: string): string | number;

Parse the service from ProjectService resource.

Parameter
Name Description
projectServiceName string

A fully-qualified path representing project_service resource.

Returns
Type Description
string | number

{string} A string representing the service.

matchServiceFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName)

matchServiceFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName: string): string | number;

Parse the service from ProjectServiceServiceLevelObjective resource.

Parameter
Name Description
projectServiceServiceLevelObjectiveName string

A fully-qualified path representing project_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the service.

matchServiceLevelObjectiveFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)

matchServiceLevelObjectiveFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName: string): string | number;

Parse the service_level_objective from FolderServiceServiceLevelObjective resource.

Parameter
Name Description
folderServiceServiceLevelObjectiveName string

A fully-qualified path representing folder_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the service_level_objective.

matchServiceLevelObjectiveFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName)

matchServiceLevelObjectiveFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName: string): string | number;

Parse the service_level_objective from OrganizationServiceServiceLevelObjective resource.

Parameter
Name Description
organizationServiceServiceLevelObjectiveName string

A fully-qualified path representing organization_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the service_level_objective.

matchServiceLevelObjectiveFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName)

matchServiceLevelObjectiveFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName: string): string | number;

Parse the service_level_objective from ProjectServiceServiceLevelObjective resource.

Parameter
Name Description
projectServiceServiceLevelObjectiveName string

A fully-qualified path representing project_service_service_level_objective resource.

Returns
Type Description
string | number

{string} A string representing the service_level_objective.

matchSnoozeFromSnoozeName(snoozeName)

matchSnoozeFromSnoozeName(snoozeName: string): string | number;

Parse the snooze from Snooze resource.

Parameter
Name Description
snoozeName string

A fully-qualified path representing Snooze resource.

Returns
Type Description
string | number

{string} A string representing the snooze.

matchTimeSeriesFromProjectTimeSeriesName(projectTimeSeriesName)

matchTimeSeriesFromProjectTimeSeriesName(projectTimeSeriesName: string): string | number;

Parse the time_series from ProjectTimeSeries resource.

Parameter
Name Description
projectTimeSeriesName string

A fully-qualified path representing project_time_series resource.

Returns
Type Description
string | number

{string} A string representing the time_series.

matchUptimeCheckConfigFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName)

matchUptimeCheckConfigFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName: string): string | number;

Parse the uptime_check_config from FolderUptimeCheckConfig resource.

Parameter
Name Description
folderUptimeCheckConfigName string

A fully-qualified path representing folder_uptime_check_config resource.

Returns
Type Description
string | number

{string} A string representing the uptime_check_config.

matchUptimeCheckConfigFromOrganizationUptimeCheckConfigName(organizationUptimeCheckConfigName)

matchUptimeCheckConfigFromOrganizationUptimeCheckConfigName(organizationUptimeCheckConfigName: string): string | number;

Parse the uptime_check_config from OrganizationUptimeCheckConfig resource.

Parameter
Name Description
organizationUptimeCheckConfigName string

A fully-qualified path representing organization_uptime_check_config resource.

Returns
Type Description
string | number

{string} A string representing the uptime_check_config.

matchUptimeCheckConfigFromProjectUptimeCheckConfigName(projectUptimeCheckConfigName)

matchUptimeCheckConfigFromProjectUptimeCheckConfigName(projectUptimeCheckConfigName: string): string | number;

Parse the uptime_check_config from ProjectUptimeCheckConfig resource.

Parameter
Name Description
projectUptimeCheckConfigName string

A fully-qualified path representing project_uptime_check_config resource.

Returns
Type Description
string | number

{string} A string representing the uptime_check_config.

organizationAlertPolicyConditionPath(organization, alertPolicy, condition)

organizationAlertPolicyConditionPath(organization: string, alertPolicy: string, condition: string): string;

Return a fully-qualified organizationAlertPolicyCondition resource name string.

Parameters
Name Description
organization string
alertPolicy string
condition string
Returns
Type Description
string

{string} Resource name string.

organizationAlertPolicyPath(organization, alertPolicy)

organizationAlertPolicyPath(organization: string, alertPolicy: string): string;

Return a fully-qualified organizationAlertPolicy resource name string.

Parameters
Name Description
organization string
alertPolicy string
Returns
Type Description
string

{string} Resource name string.

organizationChannelDescriptorPath(organization, channelDescriptor)

organizationChannelDescriptorPath(organization: string, channelDescriptor: string): string;

Return a fully-qualified organizationChannelDescriptor resource name string.

Parameters
Name Description
organization string
channelDescriptor string
Returns
Type Description
string

{string} Resource name string.

organizationGroupPath(organization, group)

organizationGroupPath(organization: string, group: string): string;

Return a fully-qualified organizationGroup resource name string.

Parameters
Name Description
organization string
group string
Returns
Type Description
string

{string} Resource name string.

organizationMetricDescriptorPath(organization, metricDescriptor)

organizationMetricDescriptorPath(organization: string, metricDescriptor: string): string;

Return a fully-qualified organizationMetricDescriptor resource name string.

Parameters
Name Description
organization string
metricDescriptor string
Returns
Type Description
string

{string} Resource name string.

organizationMonitoredResourceDescriptorPath(organization, monitoredResourceDescriptor)

organizationMonitoredResourceDescriptorPath(organization: string, monitoredResourceDescriptor: string): string;

Return a fully-qualified organizationMonitoredResourceDescriptor resource name string.

Parameters
Name Description
organization string
monitoredResourceDescriptor string
Returns
Type Description
string

{string} Resource name string.

organizationNotificationChannelPath(organization, notificationChannel)

organizationNotificationChannelPath(organization: string, notificationChannel: string): string;

Return a fully-qualified organizationNotificationChannel resource name string.

Parameters
Name Description
organization string
notificationChannel string
Returns
Type Description
string

{string} Resource name string.

organizationServicePath(organization, service)

organizationServicePath(organization: string, service: string): string;

Return a fully-qualified organizationService resource name string.

Parameters
Name Description
organization string
service string
Returns
Type Description
string

{string} Resource name string.

organizationServiceServiceLevelObjectivePath(organization, service, serviceLevelObjective)

organizationServiceServiceLevelObjectivePath(organization: string, service: string, serviceLevelObjective: string): string;

Return a fully-qualified organizationServiceServiceLevelObjective resource name string.

Parameters
Name Description
organization string
service string
serviceLevelObjective string
Returns
Type Description
string

{string} Resource name string.

organizationUptimeCheckConfigPath(organization, uptimeCheckConfig)

organizationUptimeCheckConfigPath(organization: string, uptimeCheckConfig: string): string;

Return a fully-qualified organizationUptimeCheckConfig resource name string.

Parameters
Name Description
organization string
uptimeCheckConfig string
Returns
Type Description
string

{string} Resource name string.

projectAlertPolicyConditionPath(project, alertPolicy, condition)

projectAlertPolicyConditionPath(project: string, alertPolicy: string, condition: string): string;

Return a fully-qualified projectAlertPolicyCondition resource name string.

Parameters
Name Description
project string
alertPolicy string
condition string
Returns
Type Description
string

{string} Resource name string.

projectAlertPolicyPath(project, alertPolicy)

projectAlertPolicyPath(project: string, alertPolicy: string): string;

Return a fully-qualified projectAlertPolicy resource name string.

Parameters
Name Description
project string
alertPolicy string
Returns
Type Description
string

{string} Resource name string.

projectChannelDescriptorPath(project, channelDescriptor)

projectChannelDescriptorPath(project: string, channelDescriptor: string): string;

Return a fully-qualified projectChannelDescriptor resource name string.

Parameters
Name Description
project string
channelDescriptor string
Returns
Type Description
string

{string} Resource name string.

projectGroupPath(project, group)

projectGroupPath(project: string, group: string): string;

Return a fully-qualified projectGroup resource name string.

Parameters
Name Description
project string
group string
Returns
Type Description
string

{string} Resource name string.

projectMetricDescriptorPath(project, metricDescriptor)

projectMetricDescriptorPath(project: string, metricDescriptor: string): string;

Return a fully-qualified projectMetricDescriptor resource name string.

Parameters
Name Description
project string
metricDescriptor string
Returns
Type Description
string

{string} Resource name string.

projectMonitoredResourceDescriptorPath(project, monitoredResourceDescriptor)

projectMonitoredResourceDescriptorPath(project: string, monitoredResourceDescriptor: string): string;

Return a fully-qualified projectMonitoredResourceDescriptor resource name string.

Parameters
Name Description
project string
monitoredResourceDescriptor string
Returns
Type Description
string

{string} Resource name string.

projectNotificationChannelPath(project, notificationChannel)

projectNotificationChannelPath(project: string, notificationChannel: string): string;

Return a fully-qualified projectNotificationChannel resource name string.

Parameters
Name Description
project string
notificationChannel string
Returns
Type Description
string

{string} Resource name string.

projectPath(project)

projectPath(project: string): string;

Return a fully-qualified project resource name string.

Parameter
Name Description
project string
Returns
Type Description
string

{string} Resource name string.

projectServicePath(project, service)

projectServicePath(project: string, service: string): string;

Return a fully-qualified projectService resource name string.

Parameters
Name Description
project string
service string
Returns
Type Description
string

{string} Resource name string.

projectServiceServiceLevelObjectivePath(project, service, serviceLevelObjective)

projectServiceServiceLevelObjectivePath(project: string, service: string, serviceLevelObjective: string): string;

Return a fully-qualified projectServiceServiceLevelObjective resource name string.

Parameters
Name Description
project string
service string
serviceLevelObjective string
Returns
Type Description
string

{string} Resource name string.

projectTimeSeriesPath(project, timeSeries)

projectTimeSeriesPath(project: string, timeSeries: string): string;

Return a fully-qualified projectTimeSeries resource name string.

Parameters
Name Description
project string
timeSeries string
Returns
Type Description
string

{string} Resource name string.

projectUptimeCheckConfigPath(project, uptimeCheckConfig)

projectUptimeCheckConfigPath(project: string, uptimeCheckConfig: string): string;

Return a fully-qualified projectUptimeCheckConfig resource name string.

Parameters
Name Description
project string
uptimeCheckConfig string
Returns
Type Description
string

{string} Resource name string.

snoozePath(project, snooze)

snoozePath(project: string, snooze: string): string;

Return a fully-qualified snooze resource name string.

Parameters
Name Description
project string
snooze string
Returns
Type Description
string

{string} Resource name string.