Skip to content
Snippets Groups Projects
Commit f343aaaf authored by Miek Gieben's avatar Miek Gieben
Browse files

better docs


Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
parent f51136dc
No related branches found
No related tags found
No related merge requests found
Pipeline #65101 passed
......@@ -6,6 +6,7 @@ import (
"go.science.ru.nl/cmd/graaf/sdk"
)
// Stat is our representation of a StatPanel.
type Stat struct {
Common `yaml:",inline"`
Y Y `yaml:"y"`
......@@ -13,7 +14,7 @@ type Stat struct {
Links []Link `yaml:"links"`
}
// ToPanel converts a stat to StatPanel.
// ToPanel converts a stat to a StatPanel.
func (s *Stat) ToPanel() (*sdk.Panel, error) {
if s.Title == "" {
return nil, fmt.Errorf("panel '%s' should have a title", "stat")
......@@ -44,6 +45,7 @@ func (s *Stat) ToPanel() (*sdk.Panel, error) {
return nil, err
}
}
// t.Common.Color handling.
return p, nil
}
......@@ -6,6 +6,7 @@ import (
"go.science.ru.nl/cmd/graaf/sdk"
)
// Timeseries is our representation of a TimeseriesPanel.
type Timeseries struct {
Common `yaml:",inline"`
Y Y `yaml:"y"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment