unrecover_alert_chart

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	XAxis  []string     `json:"xAxis"`
	Series []SeriesData `json:"series"`
}

type Data

type Data struct {
	Main         string `json:"main"`
	Sub          string `json:"sub"`
	CompareText  string `json:"compareText"`
	CompareValue string `json:"compareValue"`
	Chart        Chart  `json:"chart"`
}

type SeriesData

type SeriesData struct {
	Name string `json:"name"`
	Data []int  `json:"data"`
}

type SimpleChart

type SimpleChart struct {
	Type                string                       `json:"type"`
	Data                Data                         `json:"data"`
	Metric              metricpb.MetricServiceServer `autowired:"erda.core.monitor.metric.MetricService" json:"-"`
	MonitorAlertService monitorpb.AlertServiceServer `autowired:"erda.core.monitor.alert.AlertService" json:"-"`
	// contains filtered or unexported fields
}

func (*SimpleChart) InitFromProtocol

func (s *SimpleChart) InitFromProtocol(ctx context.Context, c *cptype.Component) error

func (*SimpleChart) Render

func (*SimpleChart) SetToProtocolComponent

func (s *SimpleChart) SetToProtocolComponent(c *cptype.Component) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL