Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
go
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cncz
go
Commits
f343aaaf
Commit
f343aaaf
authored
2 years ago
by
Miek Gieben
Browse files
Options
Downloads
Patches
Plain Diff
better docs
Signed-off-by:
Miek Gieben
<
miek@miek.nl
>
parent
f51136dc
No related branches found
No related tags found
No related merge requests found
Pipeline
#65101
passed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/graaf/stat.go
+3
-1
3 additions, 1 deletion
cmd/graaf/stat.go
cmd/graaf/timeseries.go
+1
-0
1 addition, 0 deletions
cmd/graaf/timeseries.go
with
4 additions
and
1 deletion
cmd/graaf/stat.go
+
3
−
1
View file @
f343aaaf
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
cmd/graaf/timeseries.go
+
1
−
0
View file @
f343aaaf
...
...
@@ -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"`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment