Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Dashboards []Dashboard `yaml:"dashboards"` Patch GlobalDashboardPatch `yaml:"patch"` }
func ParseConfig ¶
type Dashboard ¶
type Dashboard struct { Name string `yaml:"name"` Format string `yaml:"format"` Source DashboardSource `yaml:"source"` Destination DashboardDestination `yaml:"destination"` Patch DashboardPatch `yaml:"patch"` Editable bool `yaml:"editable"` }
type DashboardDatasource ¶
type DashboardDestination ¶
type DashboardDestination struct { Format OutputFormat `yaml:"format"` Directory string `yaml:"directory"` }
type DashboardPatch ¶
type DashboardSource ¶
type DashboardSource struct { Kind SourceKind `yaml:"kind"` Value string `yaml:"value"` }
type DashboardVariable ¶
type GlobalDashboardPatch ¶
type GlobalDashboardPatch struct { Variables []DashboardVariable `yaml:"variables"` Datasource *DashboardDatasource `yaml:"datasource"` }
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatJson OutputFormat = "JSON" OutputFormatKubernetes OutputFormat = "Kubernetes" )
type SourceKind ¶
type SourceKind string
const ( SourceKindGrafanaLabs SourceKind = "GrafanaLabs" SourceKindURL SourceKind = "URL" SourceKindPath SourceKind = "Path" )
Click to show internal directories.
Click to hide internal directories.