Skip to content

Commit

Permalink
add units and range to signal desc (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJoiner authored Nov 1, 2024
1 parent a6962c4 commit 31d0fec
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
37 changes: 37 additions & 0 deletions internal/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions schema/signals.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ extend type SignalAggregations {
{{- range .Signals }}
"""
{{ .Desc }}
{{- if or .Unit .Min .Max }}
{{ if .Unit }}Unit: '{{ .Unit }}'{{ end }}{{ if .Min }} Min: '{{ .Min }}'{{ end }}{{ if .Max }} Max: '{{ .Max }}'{{ end }}
{{- end }}
Required Privileges: {{ .Privileges }}
"""
{{ .JSONName }}(
Expand Down
Loading

0 comments on commit 31d0fec

Please sign in to comment.