Created
October 17, 2016 17:10
-
-
Save arkan/c69f3f1689b953bc00e553834ea423ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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