common

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentNameUnRecoverAlertChart               = "unRecoverAlertChart"
	ComponentNameKvCard                            = "kvCard"
	ComponentNameAlertEventGroupByLevelCountLine   = "alertEventGroupByLevelCountLine"
	ComponentNameAlertEventGroupByTypeCountLine    = "alertEventGroupByTypeCountLine"
	ComponentNameAlertNotifyGroupByStatusCountLine = "alertNotifyGroupByStatusCountLine"
	ComponentNameAlertNotifyGroupByTypeCountLine   = "alertNotifyGroupByTypeCountLine"
	ComponentNameAlertDurationDistributionBubble   = "alertDurationDistributionBubble"
)
View Source
const ScenarioKey = "msp-alert-overview"

Variables

This section is empty.

Functions

func GetInterval

func GetInterval(startTimeMs, endTimeMs int64, minInterval stdtime.Duration, preferredPoints int64) string

func GetMonitorAlertServiceFromContext

func GetMonitorAlertServiceFromContext(ctx context.Context) monitorpb.AlertServiceServer

func GetMonitorMetricServiceFromContext

func GetMonitorMetricServiceFromContext(ctx context.Context) metricpb.MetricServiceServer

func StringToInterface

func StringToInterface(value []string) []interface{}

func ToInterface

func ToInterface(value []int64) []interface{}

Types

type InParams

type InParams struct {
	StartTime int64  `json:"startTime"`
	EndTime   int64  `json:"endTime"`
	Scope     string `json:"scope"`
	ScopeId   string `json:"scopeId"`
}

func ParseFromCpSdk

func ParseFromCpSdk(sdk *cptype.SDK) (*InParams, error)

Jump to

Keyboard shortcuts

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