Skip to content

Commit

Permalink
Merge pull request #1 from Kuper-Tech/forkedmaster
Browse files Browse the repository at this point in the history
merge master from aermovaev/sdk
  • Loading branch information
teatou authored Nov 21, 2024
2 parents 6562121 + 4693c86 commit 3d23828
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 23 deletions.
2 changes: 2 additions & 0 deletions board.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ type (
}
Annotation struct {
Name string `json:"name"`
BuiltIn uint8 `json:"builtIn"`
Datasource interface{} `json:"datasource"`
ShowLine bool `json:"showLine"`
IconColor string `json:"iconColor"`
LineColor string `json:"lineColor"`
IconSize uint `json:"iconSize"`
Enable bool `json:"enable"`
Hidden bool `json:"hide"`
Query string `json:"query"`
Expr string `json:"expr"`
Step string `json:"step"`
Expand Down
60 changes: 37 additions & 23 deletions panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ type (
FieldConfig *FieldConfig `json:"fieldConfig,omitempty"`
}
FieldConfig struct {
Defaults FieldConfigDefaults `json:"defaults"`
Defaults FieldConfigDefaults `json:"defaults"`
Overrides FieldConfigOverrides `json:"overrides"`
}
Options struct {
Orientation string `json:"orientation"`
Expand Down Expand Up @@ -255,28 +256,29 @@ type (
ValueName string `json:"valueName"`
}
StatPanel struct {
Colors []string `json:"colors"`
ColorValue bool `json:"colorValue"`
ColorBackground bool `json:"colorBackground"`
Decimals int `json:"decimals"`
Format string `json:"format"`
Gauge Gauge `json:"gauge,omitempty"`
MappingType *uint `json:"mappingType,omitempty"`
MappingTypes []*MapType `json:"mappingTypes,omitempty"`
MaxDataPoints *IntString `json:"maxDataPoints,omitempty"`
NullPointMode string `json:"nullPointMode"`
Postfix *string `json:"postfix,omitempty"`
PostfixFontSize *string `json:"postfixFontSize,omitempty"`
Prefix *string `json:"prefix,omitempty"`
PrefixFontSize *string `json:"prefixFontSize,omitempty"`
RangeMaps []*RangeMap `json:"rangeMaps,omitempty"`
SparkLine SparkLine `json:"sparkline,omitempty"`
Targets []Target `json:"targets,omitempty"`
Thresholds string `json:"thresholds"`
ValueFontSize string `json:"valueFontSize"`
ValueMaps []ValueMap `json:"valueMaps"`
ValueName string `json:"valueName"`
Options Options `json:"options"`
Colors []string `json:"colors"`
ColorValue bool `json:"colorValue"`
ColorBackground bool `json:"colorBackground"`
Decimals int `json:"decimals"`
Format string `json:"format"`
Gauge Gauge `json:"gauge,omitempty"`
MappingType *uint `json:"mappingType,omitempty"`
MappingTypes []*MapType `json:"mappingTypes,omitempty"`
MaxDataPoints *IntString `json:"maxDataPoints,omitempty"`
NullPointMode string `json:"nullPointMode"`
Postfix *string `json:"postfix,omitempty"`
PostfixFontSize *string `json:"postfixFontSize,omitempty"`
Prefix *string `json:"prefix,omitempty"`
PrefixFontSize *string `json:"prefixFontSize,omitempty"`
RangeMaps []*RangeMap `json:"rangeMaps,omitempty"`
SparkLine SparkLine `json:"sparkline,omitempty"`
Targets []Target `json:"targets,omitempty"`
Thresholds string `json:"thresholds"`
ValueFontSize string `json:"valueFontSize"`
ValueMaps []ValueMap `json:"valueMaps"`
ValueName string `json:"valueName"`
Options Options `json:"options"`
FieldConfig *FieldConfig `json:"fieldConfig,omitempty"`
}
DashlistPanel struct {
Mode string `json:"mode"`
Expand Down Expand Up @@ -382,6 +384,18 @@ type (
Custom FieldConfigCustom `json:"custom"`
Links []Link `json:"links,omitempty"`
}
FieldConfigOverrides []struct {
Matcher FieldConfigOverridesMatcher `json:"matcher"`
Properties []FieldConfigOverridesProperties `json:"properties"`
}
FieldConfigOverridesMatcher struct {
ID string `json:"id"`
Options string `json:"options"`
}
FieldConfigOverridesProperties struct {
ID string `json:"id"`
Value string `json:"value"`
}
FieldConfigCustom struct {
AxisLabel string `json:"axisLabel,omitempty"`
AxisPlacement string `json:"axisPlacement"`
Expand Down

0 comments on commit 3d23828

Please sign in to comment.