@google-cloud/monitoring
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"repository": "googlecloudplatform/google-cloud-node", | ||
"name": "@google-cloud/monitoring", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": "Google Inc.", | ||
@@ -6,0 +6,0 @@ "description": "Stackdriver Monitoring Client Library for Node.js", |
@@ -1,3 +0,3 @@ | ||
# @google-cloud/monitoring | ||
> Stackdriver Monitoring Client Library for Node.js | ||
# @google-cloud/monitoring ([Alpha][versioning]) | ||
> Google Stackdriver Monitoring Client Library for Node.js | ||
@@ -30,14 +30,9 @@ *Looking for more Google APIs than just Monitoring? You might want to check out [`google-cloud`][google-cloud].* | ||
### On Google Compute Engine | ||
### On Google Cloud Platform | ||
If you are running this client on Google Compute Engine, we handle authentication for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access. | ||
If you are running this client on Google Cloud Platform, we handle authentication for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access. | ||
``` js | ||
// Authenticating on a global basis. | ||
var projectId = process.env.GCLOUD_PROJECT; // E.g. 'grape-spaceship-123' | ||
var monitoring = require('@google-cloud/monitoring').v3({ | ||
projectId: projectId | ||
}); | ||
var monitoring = require('@google-cloud/monitoring').v3(); | ||
// ...you're good to go! | ||
@@ -48,3 +43,3 @@ ``` | ||
If you are not running this client on Google Compute Engine, you need a Google Developers service account. To create a service account: | ||
If you are not running this client on Google Cloud Platform, you need a Google Developers service account. To create a service account: | ||
@@ -58,7 +53,3 @@ 1. Visit the [Google Developers Console][dev-console]. | ||
``` js | ||
var projectId = process.env.GCLOUD_PROJECT; // E.g. 'grape-spaceship-123' | ||
var monitoring = require('@google-cloud/monitoring')({ | ||
projectId: projectId, | ||
var monitoring = require('@google-cloud/monitoring').v3({ | ||
// The path to your key file: | ||
@@ -74,2 +65,4 @@ keyFilename: '/path/to/keyfile.json' | ||
[versioning]: https://github.com/GoogleCloudPlatform/google-cloud-node#versioning | ||
[google-cloud]: https://github.com/GoogleCloudPlatform/google-cloud-node/ | ||
@@ -76,0 +69,0 @@ [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using |
@@ -24,8 +24,2 @@ /*! | ||
/** | ||
* <p class="notice"> | ||
* **This is a Beta release of Stackdriver Monitoring.** This API is not | ||
* covered by any SLA or deprecation policy and may be subject to | ||
* backward-incompatible changes. | ||
* </p> | ||
* | ||
* [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs) collects | ||
@@ -32,0 +26,0 @@ * metrics, events, and metadata from Google Cloud Platform, Amazon Web Services |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
94221
1873
69