Skip to content

Instantly share code, notes, and snippets.

@arkan
Created October 17, 2016 17:10
Show Gist options
  • Save arkan/c69f3f1689b953bc00e553834ea423ce to your computer and use it in GitHub Desktop.
Save arkan/c69f3f1689b953bc00e553834ea423ce to your computer and use it in GitHub Desktop.
// Dashboard represents a Datadog Dashboard.
type Dashboard struct {
ID int64 `json:"id"`
ReadOnly bool `json:"read_only"`
Description string `json:"description"`
Title string `json:"title"`
Graphs []struct {
Definition struct {
Viz string `json:"viz"`
Requests []struct {
Q string `json:"q"`
Aggregator string `json:"aggregator,omitempty"`
ConditionalFormats []interface{} `json:"conditional_formats,omitempty"`
Type string `json:"type,omitempty"`
Style struct {
Palette string `json:"palette"`
Type string `json:"type,omitempty"`
} `json:"style,omitempty"`
} `json:"requests,omitempty"`
} `json:"definition"`
Title string `json:"title"`
} `json:"graphs,omitempty"`
TemplateVariables []struct {
Default string `json:"default"`
Prefix string `json:"prefix"`
Name string `json:"name"`
} `json:"template_variables,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment