Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const AlertEventStateAlert + const AlertEventStatePause + const AlertEventStateRecover + const AlertEventStateStop + const ComponentNameEventHistoryTable + const ComponentNameEventOverviewInfo + const ComponentNameEventStatusInfo + const ComponentNameMonitorDataChart + const ComponentNameMoreOperations + const ComponentNamePauseFormModal + const DefaultPageSize + const GlobalStateKeyConfigurableFilterOptionsKey + const GlobalStateKeyPaging + const GlobalStateKeySort + const ScenarioKey + const StateKeyAlertEvent + const StateKeyPageTitle + const TimeFormatLayout + func FormatTimeMs(timestamp int64) string + func GetAlertEventFromGlobalState(gs cptype.GlobalStateData) *pb.AlertEventItem + func GetInterval(startTimeMs, endTimeMs int64, minInterval time.Duration, preferredPoints int64) string + func GetMonitorAlertServiceFromContext(ctx context.Context) monitorpb.AlertServiceServer + func GetMonitorMetricServiceFromContext(ctx context.Context) metricpb.MetricServiceServer + func GetPagingFromGlobalState(globalState cptype.GlobalStateData) (pageNo int64, pageSize int64) + func SetAlertEventToGlobalState(gs cptype.GlobalStateData, alertEvent *pb.AlertEventItem) + func SetPagingToGlobalState(globalState cptype.GlobalStateData, opData table.OpTableChangePageClientData) + func SetSortsToGlobalState(globalState cptype.GlobalStateData, opData table.OpTableChangeSortClientData) + type AlertExpression struct + Filters []*AlertExpressionFilter + Functions []*AlertExpressionFunction + Group []string + Metric string + Metrics []string + Outputs []string + Select map[string]string + Window *int64 + type AlertExpressionFilter struct + DataType string + Operator string + Tag string + Value interface{} + type AlertExpressionFunction struct + Aggregator string + Alias *string + Condition string + Field string + FieldScript *string + Operator *string + Trigger string + Value interface{} + type InParams struct + AlertEventId string + EndTime int64 + Scope string + ScopeId string + StartTime int64 + func ParseFromCpSdk(sdk *cptype.SDK) (*InParams, error) + type Sort struct + Ascending bool + FieldKey string + func GetSortsFromGlobalState(globalState cptype.GlobalStateData) []*Sort