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
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)
Christian Vozar
Copyright 2014 Belly, Inc. under the Apache 2.0 license.