Documentation
¶
Index ¶
- type Alias
- type BackgroundStyle
- type Bar
- type Chart
- type ChartGroup
- type ChartPos
- type ColorItem
- type ColorTag
- type Column
- type Compare
- type CompareColor
- type ConcretQuery
- type Dashboard
- type Extend
- type FixedOptions
- type FixedOptionsExtend
- type FixedOptionsOptions
- type FixedOptionsQueryList
- type FixedOptionsSettings
- type IconSet
- type InColumn
- type Level
- type LevelItem
- type Link
- type Main
- type Mapping
- type Mark
- type Query
- type QueryAction
- type QueryExtend
- type QueryFilter
- type QueryItem
- type QuerySettings
- type Settings
- type SingleQuery
- type SingleQueryArg
- type SingleQueryField
- type SingleQueryFilter
- type SingleQueryFilterTag
- type SingleQueryFunc
- type Table
- type TagInfo
- type Unit
- type ValColorMapping
- type ValMapping
- type Var
- type VarDefaultVal
- type VarDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundStyle ¶
type BackgroundStyle struct {
BackgroundSize string `json:"background-size"`
}
type ChartGroup ¶
type ChartGroup struct {
Name *string `json:"name"`
}
type CompareColor ¶
type ConcretQuery ¶
type ConcretQuery struct {
Alias string `json:"alias"`
Children []ConcretQuery `json:"children,omitempty"`
Code string `json:"code"`
DataSource string `json:"dataSource,omitempty"`
Expression string `json:"expression,omitempty"`
Field string `json:"field,omitempty"`
FieldFunc string `json:"fieldFunc,omitempty"`
FieldType string `json:"fieldType,omitempty"`
Fill *string `json:"fill"`
FillNum any `json:"fillNum,omitempty"`
Filters []QueryFilter `json:"filters"`
FuncList []string `json:"funcList"`
GroupBy []string `json:"groupBy,omitempty"`
GroupByTime string `json:"groupByTime"`
Namespace string `json:"namespace,omitempty"`
Q string `json:"q"`
QueryFuncs []any `json:"queryFuncs"`
Type string `json:"type"`
WithLabels []any `json:"withLabels"`
}
type Dashboard ¶
type Dashboard struct {
DashboardBindSet []any `json:"dashboardBindSet"`
DashboardExtend any `json:"dashboardExtend"`
DashboardMapping []any `json:"dashboardMapping"`
DashboardOwnerType string `json:"dashboardOwnerType,omitempty"`
DashboardType string `json:"dashboardType"`
IconSet *IconSet `json:"iconSet,omitempty"`
Main Main `json:"main"`
Summary string `json:"summary"`
TagInfo []TagInfo `json:"tagInfo"`
Tags []any `json:"tags"`
Thumbnail string `json:"thumbnail"`
Title string `json:"title"`
}
type FixedOptions ¶
type FixedOptions struct {
GroupKey string `json:"groupKey"`
Options FixedOptionsOptions `json:"options"`
}
type FixedOptionsExtend ¶
type FixedOptionsExtend struct {
FixedTime any `json:"fixedTime"`
Settings FixedOptionsSettings `json:"settings"`
}
type FixedOptionsOptions ¶
type FixedOptionsOptions struct {
Extend FixedOptionsExtend `json:"extend"`
Name string `json:"name"`
QueryList []FixedOptionsQueryList `json:"queryList"`
Type string `json:"type"`
}
type FixedOptionsQueryList ¶
type FixedOptionsSettings ¶
type FixedOptionsSettings struct {
ColorLevel int `json:"colorLevel"`
Colors []any `json:"colors"`
CurrentChartType string `json:"currentChartType,omitempty"`
FixedTime string `json:"fixedTime"`
IsTimeInterval bool `json:"isTimeInterval"`
IsVariable bool `json:"isVariable"`
LevelArr []Level `json:"levelArr"`
Levels []any `json:"levels"`
MainMeasurementQueryCode string `json:"mainMeasurementQueryCode"`
ProvinceKey string `json:"provinceKey"`
RangeColorKey string `json:"rangeColorKey"`
ShowFieldMapping bool `json:"showFieldMapping"`
ShowTitle bool `json:"showTitle"`
TimeInterval string `json:"timeInterval"`
TitleDesc string `json:"titleDesc"`
Units []Unit `json:"units"`
VariableCode string `json:"variableCode"`
}
type Query ¶
type Query struct {
Actions []QueryAction `json:"actions,omitempty"`
ChartGroupUuid string `json:"chartGroupUUID,omitempty"`
Checked bool `json:"checked,omitempty"`
Color string `json:"color"`
CreateAt int `json:"createAt,omitempty"`
Creator string `json:"creator,omitempty"`
DashboardUuid string `json:"dashboardUUID,omitempty"`
Datasource string `json:"datasource,omitempty"`
DeleteAt int `json:"deleteAt,omitempty"`
Disabled bool `json:"disabled"`
Extend *QueryExtend `json:"extend,omitempty"`
FixedOptions *FixedOptions `json:"fixedOptions,omitempty"`
HeaderOptions any `json:"headerOptions,omitempty"`
ID int `json:"id,omitempty"`
IsInnerHeader bool `json:"isInnerHeader"`
IsShowFixed bool `json:"isShowFixed,omitempty"`
Name string `json:"name"`
NoTimeRange bool `json:"noTimeRange"`
Pos *ChartPos `json:"pos,omitempty"`
Qtype string `json:"qtype,omitempty"`
Queries []QueryItem `json:"queries,omitempty"`
Query *SingleQuery `json:"query,omitempty"`
Status int `json:"status,omitempty"`
Type string `json:"type,omitempty"`
Unit string `json:"unit"`
UpdateAt int `json:"updateAt,omitempty"`
Updator string `json:"updator,omitempty"`
Uuid string `json:"uuid,omitempty"`
WorkspaceUuid string `json:"workspaceUUID,omitempty"`
}
type QueryAction ¶
type QueryExtend ¶
type QueryFilter ¶
type QueryItem ¶
type QueryItem struct {
Checked bool `json:"checked,omitempty"`
Color string `json:"color"`
Datasource string `json:"datasource"`
Name string `json:"name"`
Qtype string `json:"qtype"`
Query ConcretQuery `json:"query"`
Type string `json:"type"`
Unit string `json:"unit"`
Uuid string `json:"uuid,omitempty"`
}
type QuerySettings ¶
type QuerySettings struct {
Alias []any `json:"alias"`
ColorLevel int `json:"colorLevel,omitempty"`
Colors []any `json:"colors"`
CurrentChartType string `json:"currentChartType"`
FixedTime string `json:"fixedTime"`
IsTimeInterval bool `json:"isTimeInterval"`
IsVariable bool `json:"isVariable"`
LevelArr []Level `json:"levelArr,omitempty"`
Levels []any `json:"levels"`
MainMeasurementQueryCode string `json:"mainMeasurementQueryCode,omitempty"`
PageSize int `json:"pageSize,omitempty"`
ProvinceKey string `json:"provinceKey,omitempty"`
QueryMode string `json:"queryMode,omitempty"`
RangeColorKey string `json:"rangeColorKey,omitempty"`
ShowFieldMapping bool `json:"showFieldMapping"`
ShowTitle bool `json:"showTitle"`
ShowTopList bool `json:"showTopList"`
TimeInterval string `json:"timeInterval"`
TitleDesc string `json:"titleDesc"`
Units []Unit `json:"units"`
ValColorMappings []ValColorMapping `json:"valColorMappings"`
ValMappings []any `json:"valMappings"`
VariableCode string `json:"variableCode"`
}
type Settings ¶
type Settings struct {
AddColumns []Column `json:"addColumns,omitempty"`
Alias []Alias `json:"alias"`
BackgroundStyle *BackgroundStyle `json:"backgroundStyle,omitempty"`
Bar *Bar `json:"bar,omitempty"`
BgColor string `json:"bgColor"`
ChartCombineDefaultColor string `json:"chartCombineDefaultColor,omitempty"`
ChartType string `json:"chartType,omitempty"`
Color string `json:"color"`
ColorLevel int `json:"colorLevel,omitempty"`
Colors []ColorItem `json:"colors"`
CompareChartType string `json:"compareChartType"`
CompareColors *CompareColor `json:"compareColors,omitempty"`
CompareColorsDark *CompareColor `json:"compareColorsDark,omitempty"`
CompareColorsLight *CompareColor `json:"compareColorsLight,omitempty"`
CompareTitle string `json:"compareTitle"`
CompareType any `json:"compareType,omitempty"`
Compares []Compare `json:"compares"`
CurrentChartType string `json:"currentChartType,omitempty"`
Density string `json:"density,omitempty"`
Direction string `json:"direction,omitempty"`
Downsample string `json:"downsample,omitempty"`
FixedTime string `json:"fixedTime"`
FontColor string `json:"fontColor"`
InColumns []InColumn `json:"inColumns,omitempty"`
Index string `json:"index,omitempty"`
IsPercent bool `json:"isPercent"`
IsTimeInterval bool `json:"isTimeInterval"`
IsVariable bool `json:"isVariable"`
LegendPostion string `json:"legendPostion,omitempty"`
LegendValues any `json:"legendValues,omitempty"`
LevelArr []Level `json:"levelArr"`
Levels []LevelItem `json:"levels"`
LineColor string `json:"lineColor,omitempty"`
LockTime string `json:"lockTime"`
MainMeasurement string `json:"mainMeasurement"`
MainMeasurementLimit int `json:"mainMeasurementLimit,omitempty"`
MainMeasurementQueryCode string `json:"mainMeasurementQueryCode,omitempty"`
MainMeasurementSort string `json:"mainMeasurementSort,omitempty"`
Mappings []Mapping `json:"mappings"`
Mark *Mark `json:"mark,omitempty"`
Max int `json:"max,omitempty"`
Min int `json:"min,omitempty"`
OnlyShowGroupName bool `json:"onlyShowGroupName"`
OpenCompare bool `json:"openCompare"`
OpenStack bool `json:"openStack"`
OtherColor string `json:"otherColor,omitempty"`
PageSize int `json:"pageSize,omitempty"`
Precision string `json:"precision,omitempty"`
ProvinceKey string `json:"provinceKey"`
QueryMode string `json:"queryMode,omitempty"`
RangeColor string `json:"rangeColor"`
RangeColorKey string `json:"rangeColorKey"`
ShowFieldMapping bool `json:"showFieldMapping"`
ShowLegend bool `json:"showLegend"`
ShowLine bool `json:"showLine"`
ShowLineAxis bool `json:"showLineAxis"`
ShowTableHead bool `json:"showTableHead,omitempty"`
ShowTitle bool `json:"showTitle"`
ShowTopList bool `json:"showTopList,omitempty"`
ShowTopSize any `json:"showTopSize,omitempty"`
ShowTopWithMetric string `json:"showTopWithMetric"`
Slimit int `json:"slimit,omitempty"`
StackContent string `json:"stackContent,omitempty"`
StackType string `json:"stackType,omitempty"`
Table *Table `json:"table,omitempty"`
TableSortMetricName string `json:"tableSortMetricName"`
TableSortType string `json:"tableSortType,omitempty"`
TimeInterval any `json:"timeInterval,omitempty"`
TitleDesc string `json:"titleDesc"`
TopSize int `json:"topSize,omitempty"`
Type string `json:"type,omitempty"`
Units []Unit `json:"units"`
URL string `json:"url,omitempty"`
ValColorMappings []ValColorMapping `json:"valColorMappings"`
ValMappings []ValMapping `json:"valMappings"`
VariableCode string `json:"variableCode"`
XAxisShowType string `json:"xAxisShowType,omitempty"`
YAxixMaxVal any `json:"yAxixMaxVal,omitempty"`
YAxixMinVal any `json:"yAxixMinVal,omitempty"`
}
type SingleQuery ¶
type SingleQuery struct {
Alias string `json:"alias"`
Children []SingleQuery `json:"children"`
Code string `json:"code,omitempty"`
Content string `json:"content,omitempty"`
DataSource string `json:"dataSource"`
DataSourceFunc string `json:"dataSourceFunc,omitempty"`
Density string `json:"density,omitempty"`
DisableMultipleField bool `json:"disableMultipleField"`
Expression string `json:"expression"`
Field *string `json:"field"`
FieldFunc string `json:"fieldFunc"`
FieldType string `json:"fieldType"`
Fields []SingleQueryField `json:"fields,omitempty"`
Fill *string `json:"fill"`
FillNum *int `json:"fillNum"`
Filter *SingleQueryFilter `json:"filter,omitempty"`
Filters []QueryFilter `json:"filters"`
FuncList []*string `json:"funcList"`
GroupBy []string `json:"groupBy"`
GroupByTime string `json:"groupByTime"`
IndexFilter string `json:"indexFilter"`
LabelOp string `json:"labelOp"`
Measurements []string `json:"measurements,omitempty"`
Namespace string `json:"namespace"`
Q string `json:"q"`
QueryFuncs []SingleQueryFunc `json:"queryFuncs"`
Search string `json:"search"`
TransformFuncs []any `json:"transformFuncs"`
Type string `json:"type,omitempty"`
WithLabels []any `json:"withLabels"`
}
type SingleQueryArg ¶
type SingleQueryArg struct {
Name string `json:"name"`
}
type SingleQueryField ¶
type SingleQueryField struct {
Alias string `json:"alias,omitempty"`
Args []SingleQueryArg `json:"args,omitempty"`
Field string `json:"field,omitempty"`
FuncName string `json:"funcName,omitempty"`
Fx string `json:"fx,omitempty"`
Hide bool `json:"hide,omitempty"`
IsEditAlias bool `json:"isEditAlias"`
}
type SingleQueryFilter ¶
type SingleQueryFilter struct {
Tags []SingleQueryFilterTag `json:"tags"`
}
type SingleQueryFilterTag ¶
type SingleQueryFunc ¶
type ValColorMapping ¶
type ValMapping ¶
type Var ¶
type Var struct {
Code string `json:"code"`
Datasource string `json:"datasource"`
Definition VarDefinition `json:"definition"`
Hide int `json:"hide"`
IsHiddenAsterisk int `json:"isHiddenAsterisk,omitempty"`
Name string `json:"name"`
Seq int `json:"seq"`
Type string `json:"type"`
ValueSort string `json:"valueSort"`
}
type VarDefaultVal ¶
type VarDefinition ¶
Click to show internal directories.
Click to hide internal directories.