Skip to content

bellycard/stackdriver

Repository files navigation

Stackdriver API Library

DEPRECATED: This repo is no longer in use and is not being maintained. The authoritative version of this code base can be found at https://github.com/AMeng/stackdriver.

A client library for accessing the Stackdriver API.

Currently implemented:

  • Custom Metrics
  • Code Deploy Events
  • Annotation Events

Usage

import "github.com/bellycard/stackdriver"

// Create new Stackdriver API client.
client := stackdriver.NewStackdriverClient("apikey")

// Create new Stackdriver API gateway message.
apiMessages := stackdriver.NewGatewayMessage()

// Populate gateway message with metrics.
apiMessages.CustomMetric("my-metric1","i-axd939f",1395080486,50)
apiMessages.CustomMetric("my-metric2","i-afdsf9f",1395080487,6.5)
apiMessages.CustomMetric("my-metric3","i-a3d923f",1395080484,25)

// Send gateway message to Stackdriver API.
client.Send(apiMessages)

Author(s) & Credit

Christian Vozar

Copyright and License

Copyright 2014 Belly, Inc. under the Apache 2.0 license.

About

A client library for accessing the Stackdriver API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages