@google-cloud/monitoring
Source: index.
The @google-cloud/monitoring package has the following named exports:
AlertPolicyServiceClient- Reference to v3.AlertPolicyServiceClientGroupServiceClient- Reference to v3.GroupServiceClientMetricServiceClient- Reference to v3.MetricServiceClientNotificationChannelServiceClient- Reference to v3.NotificationChannelServiceClientUptimeCheckServiceClient- Reference to v3.UptimeCheckServiceClientv3- This is used for selecting or pinning a particular backend service version. It exports:AlertPolicyServiceClient- Reference to v3.AlertPolicyServiceClientGroupServiceClient- Reference to v3.GroupServiceClientMetricServiceClient- Reference to v3.MetricServiceClientNotificationChannelServiceClient- Reference to v3.NotificationChannelServiceClientUptimeCheckServiceClient- Reference to v3.UptimeCheckServiceClient
Examples
Install the client library with <a href="https://www.npmjs.com/">npm</a>:
npm install --save @google-cloud/monitoring
Import the client library:
const monitoring = require('@google-cloud/monitoring');
Create a client that uses <a href="https://goo.gl/64dyYX">Application Default Credentials (ADC)</a>:
const client = new monitoring.AlertPolicyServiceClient();
Create a client with <a href="https://goo.gl/RXp6VL">explicit credentials</a>:
const client = new monitoring.AlertPolicyServiceClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Property
Exports
require("@google-cloud/monitoring") unknown
Properties
| Name | Type | Optional | Description |
|---|---|---|---|
|
AlertPolicyServiceClient |
|
|
Reference to v3.AlertPolicyServiceClient |
|
GroupServiceClient |
|
|
Reference to v3.GroupServiceClient |
|
MetricServiceClient |
|
|
Reference to v3.MetricServiceClient |
|
NotificationChannelServiceClient |
|
|
Reference to v3.NotificationChannelServiceClient |
|
UptimeCheckServiceClient |
|
|
Reference to v3.UptimeCheckServiceClient |
Property
v3 object
Properties
| Name | Type | Optional | 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 |