Versions in this module Expand all Collapse all v1 v1.9.2 May 30, 2023 v1.9.1 May 17, 2023 v1.9.1-beta.1 Mar 28, 2023 v1.9.0 Mar 30, 2022 v1.9.0-industry.6 Apr 24, 2023 v1.9.0-industry.5 Apr 4, 2023 v1.9.0-industry.4 Mar 1, 2023 v1.9.0-industry.3 Feb 1, 2023 v1.9.0-industry.2 Dec 1, 2022 v1.9.0-industry.1 Nov 16, 2022 v1.8.1 Dec 9, 2021 v1.8.0 Sep 28, 2021 v1.7.1 Sep 17, 2021 v1.7.0 Jun 1, 2021 v1.6.0 Mar 25, 2021 v1.4.0 Sep 28, 2020 v1.3.1 Aug 18, 2020 v1.2.5 May 20, 2020 v1.2.0 Mar 19, 2020 Changes in this version + const VersionKey + type AlarmMetric struct + ContinuePeriod int64 + Evaluator *Evaluator + Measurement string + MetricDisplayName string + MetricName string + Unit string + func NewAlarmMetricFromRule(ruleGroup *v1.RuleGroup, rule v1.Rule) *AlarmMetric + func (r *AlarmMetric) GetAnnotations(alarmPolicy *AlarmPolicy) map[string]string + func (r *AlarmMetric) GetExpr(alarmPolicy *AlarmPolicy) string + func (r *AlarmMetric) GetFor(statisticsPeriod int64) string + func (r *AlarmMetric) GetLabels(alarmPolicyName string, version string) map[string]string + type AlarmPolicies []*AlarmPolicy + func (a AlarmPolicies) Len() int + func (a AlarmPolicies) Less(i, j int) bool + func (a AlarmPolicies) Swap(i, j int) + type AlarmPolicy struct + AlarmPolicySettings *AlarmPolicySettings + Namespace string + NotifySettings *NotifySettings + WorkloadType string + func NewAlarmPolicyFromRuleGroup(ruleGroup *v1.RuleGroup) *AlarmPolicy + func (p *AlarmPolicy) GetInterval() string + func (p *AlarmPolicy) Validate() error + type AlarmPolicyPagination struct + AlarmPolicies AlarmPolicies + Page int64 + PageSize int64 + Total int64 + type AlarmPolicySettings struct + AlarmMetrics []*AlarmMetric + AlarmObjects string + AlarmObjectsType string + AlarmPolicyName string + AlarmPolicyType string + StatisticsPeriod int64 + type Evaluator struct + Type string + Value string + func NewEvaluatorFromExpr(expr string, isBool bool) *Evaluator + type Label struct + Name string + Value string + type MergedResponse struct + Response *MergedResult + type MergedResult struct + Columns []string + Data []interface{} + type MeshRequest struct + AppID int + EndTime int64 + MeshID string + Namespaces []interface{} + StartTime int64 + TopoType string + type MetricFilter struct + Namespace string + WorkloadKind string + WorkloadName string + func NewMetricFilterFromExpr(expr string) *MetricFilter + func (f *MetricFilter) ToStr() string + type MetricResult struct + AvgValue *float64 + MaxValue *float64 + Series []models.Row + type MetricsRequest struct + Conditions [][]interface{} + EndTime *int64 + Fields []string + GroupBy []string + Limit int + Offset int + Order string + OrderBy string + StartTime *int64 + Table string + type MetricsResponse struct + Results []*MetricResult + type NotifySettings struct + NotifyWay []NotifyWay + ReceiverGroups []string + Receivers []string + func NewNotifySettingsFromRuleAnnotations(annotation map[string]string) *NotifySettings + type NotifyWay struct + ChannelName string + TemplateName string + type Request struct + Data string + func (r *Request) Decode(reader io.Reader) error + type Response struct + Data interface{} + Err string + Result bool + Rev int + func NewResult(result bool, errMsg string) *Response + func (r *Response) Decode(reader io.Reader) error + type ResponseForTest struct + Data json.RawMessage + Err string + Result bool + Rev int + func (r *ResponseForTest) Decode(reader io.Reader) error + type Sample struct + Timestamp int64 + Value float64 + type TimeSeries struct + Labels []Label + Samples []Sample + type WriteRequest struct + Timeseries []TimeSeries + func (*WriteRequest) ProtoMessage() + func (m *WriteRequest) Reset() + func (m *WriteRequest) String() string