Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/monitoring

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/monitoring - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc