8000 GitHub - AMeng/stackdriver: A client library for accessing the Stackdriver API.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000 forked from bellycard/stackdriver

A client library for accessing the Stackdriver API.

License

Notifications You must be signed in to change notification settings

AMeng/stackdriver

 
 

Repository files navigation

Stackdriver API Library

A client library for accessing the Stackdriver API.

Currently implemented:

  • Custom Metrics
  • Code Deploy Events
  • Annotation Events

Usage

import (
    "github.com/bellycard/stackdriver"
    "time"
)

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

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

now := time.Now().Unix()

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

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

About

A client library for accessing the Stackdriver API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0