@google-cloud/monitoring

The @google-cloud/monitoring package has the following named exports:

Source:
Examples

Install the client library with npm:

npm install --save @google-cloud/monitoring

Import the client library:

const monitoring = require('@google-cloud/monitoring');

Create a client that uses Application Default Credentials (ADC):

const client = new monitoring.AlertPolicyServiceClient();

Create a client with explicit credentials:

const client = new monitoring.AlertPolicyServiceClient({
  projectId: 'your-project-id',
  keyFilename: '/path/to/keyfile.json',
});

Members

(static) v3 :object

Properties:
Name Type Description
AlertPolicyServiceClient constructor

Reference to v3.AlertPolicyServiceClient

GroupServiceClient constructor

Reference to v3.GroupServiceClient

MetricServiceClient constructor

Reference to v3.MetricServiceClient

NotificationChannelServiceClient constructor

Reference to v3.NotificationChannelServiceClient

UptimeCheckServiceClient constructor

Reference to v3.UptimeCheckServiceClient

Source: