Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soundtrackyourbrand/cloudmon
A small wrapper for parts of Google Cloud Monitoring API
https://github.com/soundtrackyourbrand/cloudmon
Last synced: about 1 month ago
JSON representation
A small wrapper for parts of Google Cloud Monitoring API
- Host: GitHub
- URL: https://github.com/soundtrackyourbrand/cloudmon
- Owner: soundtrackyourbrand
- License: mit
- Created: 2015-07-03T08:09:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-27T15:15:28.000Z (over 8 years ago)
- Last Synced: 2024-06-20T03:33:25.296Z (7 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 2
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudmon [![GoDoc](https://godoc.org/github.com/soundtrackyourbrand/cloudmon?status.svg)](https://godoc.org/github.com/soundtrackyourbrand/cloudmon)
A small wrapper for parts of Google Cloud Monitoring API# Example
```go
c := cloudmon.NewClient(
cloudmon.ProjectID("google-project-id"),
cloudmon.OAuthSettings(os.Getenv("OAUTH_EMAIL"), os.Getenv("OAUTH_PRIVATE_KEY")),
)g, err := c.NewGauge("name-of-gauge")
if err != nil {
log.Fatal(err)
}if err := g.Set(500); err != nil {
log.Fatal(err)
}
```