<commit_before># 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)
}
```

# Gotcha
Since the autogenerated go lib from google sets `omitempty` on all [fields](https://godoc.org/google.golang.org/api/cloudmonitoring/v2beta2#Point), it is not possible to set the value `0` :(<commit_msg>yey, we can now send 0<commit_after># 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)
}
```
{'fraction_non_alphanumeric': 0.1684867394695788, 'fraction_numerical': 0.0078003120124804995, 'mean_word_length': 5.351485148514851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7670669', 'n_tokens_mistral': 487, 'n_tokens_neox': 463, 'n_words': 93}