diff --git a/internal/cortex/querier/queryrange/queryrange.pb.go b/internal/cortex/querier/queryrange/queryrange.pb.go index b918da0ecee..aacce2d0c7d 100644 --- a/internal/cortex/querier/queryrange/queryrange.pb.go +++ b/internal/cortex/querier/queryrange/queryrange.pb.go @@ -538,6 +538,7 @@ func (m *PrometheusInstantQueryData) GetStats() *PrometheusResponseStats { type PrometheusInstantQueryResult struct { // Types that are valid to be assigned to Result: + // // *PrometheusInstantQueryResult_Scalar // *PrometheusInstantQueryResult_StringSample // *PrometheusInstantQueryResult_Vector diff --git a/pkg/info/infopb/rpc.proto b/pkg/info/infopb/rpc.proto index 31f6de337cd..031024a8247 100644 --- a/pkg/info/infopb/rpc.proto +++ b/pkg/info/infopb/rpc.proto @@ -22,47 +22,47 @@ option (gogoproto.goproto_sizecache_all) = false; // Info represents the API that is responsible for gathering metadata about the all APIs supported by the component. service Info { - // Info returns the metadata (Eg. LabelSets, Min/Max time) about all the APIs the component supports. - rpc Info(InfoRequest) returns (InfoResponse); + // Info returns the metadata (Eg. LabelSets, Min/Max time) about all the APIs the component supports. + rpc Info(InfoRequest) returns (InfoResponse); } message InfoRequest {} message InfoResponse { - repeated ZLabelSet label_sets = 1 [(gogoproto.nullable) = false]; - string ComponentType = 2; + repeated ZLabelSet label_sets = 1 [(gogoproto.nullable) = false]; + string ComponentType = 2; - // StoreInfo holds the metadata related to Store API if exposed by the component otherwise it will be null. - StoreInfo store = 3; + // StoreInfo holds the metadata related to Store API if exposed by the component otherwise it will be null. + StoreInfo store = 3; - // RulesInfo holds the metadata related to Rules API if exposed by the component otherwise it will be null. - RulesInfo rules = 4; + // RulesInfo holds the metadata related to Rules API if exposed by the component otherwise it will be null. + RulesInfo rules = 4; - // MetricMetadataInfo holds the metadata related to Metadata API if exposed by the component otherwise it will be null. - MetricMetadataInfo metric_metadata = 5; + // MetricMetadataInfo holds the metadata related to Metadata API if exposed by the component otherwise it will be null. + MetricMetadataInfo metric_metadata = 5; - // TargetsInfo holds the metadata related to Targets API if exposed by the component otherwise it will be null. - TargetsInfo targets = 6; + // TargetsInfo holds the metadata related to Targets API if exposed by the component otherwise it will be null. + TargetsInfo targets = 6; - // ExemplarsInfo holds the metadata related to Exemplars API if exposed by the component otherwise it will be null. - ExemplarsInfo exemplars = 7; + // ExemplarsInfo holds the metadata related to Exemplars API if exposed by the component otherwise it will be null. + ExemplarsInfo exemplars = 7; - // QueryAPIInfo holds the metadata related to Query API if exposed by the component, otherwise it will be null. - QueryAPIInfo query = 8; + // QueryAPIInfo holds the metadata related to Query API if exposed by the component, otherwise it will be null. + QueryAPIInfo query = 8; } // StoreInfo holds the metadata related to Store API exposed by the component. message StoreInfo { - int64 min_time = 1; - int64 max_time = 2; - bool supports_sharding = 3; - - // TODO(fpetkovski): Remove in v1.0 - bool sends_sorted_series = 4; - // TODO(fpetkovski): Remove in v1.0 - bool sends_sorted_series_without_labels = 5; + int64 min_time = 1; + int64 max_time = 2; + bool supports_sharding = 3; + // TODO(fpetkovski): Remove in v1.0 + bool sends_sorted_series = 4; + // TODO(fpetkovski): Remove in v1.0 + bool sends_sorted_series_without_labels = 5; } + // RulesInfo holds the metadata related to Rules API exposed by the component. message RulesInfo { } @@ -77,8 +77,8 @@ message TargetsInfo { // ExemplarsInfo holds the metadata related to Exemplars API exposed by the component. message ExemplarsInfo { - int64 min_time = 1; - int64 max_time = 2; + int64 min_time = 1; + int64 max_time = 2; } // QueryInfo holds the metadata related to Query API exposed by the component. diff --git a/pkg/rules/rulespb/rpc.pb.go b/pkg/rules/rulespb/rpc.pb.go index 2cbaff2c524..2089c9b3937 100644 --- a/pkg/rules/rulespb/rpc.pb.go +++ b/pkg/rules/rulespb/rpc.pb.go @@ -36,16 +36,16 @@ var _ = time.Kitchen // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -/// AlertState represents state of the alert. Has to match 1:1 Prometheus AlertState: +// / AlertState represents state of the alert. Has to match 1:1 Prometheus AlertState: // // StateInactive is the state of an alert that is neither firing nor pending. -//StateInactive AlertState = iota +// StateInactive AlertState = iota // StatePending is the state of an alert that has been active for less than // the configured threshold duration. -//StatePending +// StatePending // StateFiring is the state of an alert that has been active for longer than // the configured threshold duration. -//StateFiring +// StateFiring type AlertState int32 const ( @@ -229,12 +229,12 @@ func (*RulesResponse) XXX_OneofWrappers() []interface{} { } } -/// RuleGroups is set of rule groups. -/// This and below APIs are meant to be used for unmarshaling and marshsaling rules from/to Prometheus API. -/// That's why json tag has to be customized and matching https://github.com/prometheus/prometheus/blob/c530b4b456cc5f9ec249f771dff187eb7715dc9b/web/api/v1/api.go#L955 -/// NOTE: See rules_custom_test.go for compatibility tests. -/// -/// For rule parsing from YAML configuration other struct is used: https://github.com/prometheus/prometheus/blob/20b1f596f6fb16107ef0c244d240b0ad6da36829/pkg/rulefmt/rulefmt.go#L105 +// / RuleGroups is set of rule groups. +// / This and below APIs are meant to be used for unmarshaling and marshsaling rules from/to Prometheus API. +// / That's why json tag has to be customized and matching https://github.com/prometheus/prometheus/blob/c530b4b456cc5f9ec249f771dff187eb7715dc9b/web/api/v1/api.go#L955 +// / NOTE: See rules_custom_test.go for compatibility tests. +// / +// / For rule parsing from YAML configuration other struct is used: https://github.com/prometheus/prometheus/blob/20b1f596f6fb16107ef0c244d240b0ad6da36829/pkg/rulefmt/rulefmt.go#L105 type RuleGroups struct { Groups []*RuleGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups"` } @@ -272,7 +272,7 @@ func (m *RuleGroups) XXX_DiscardUnknown() { var xxx_messageInfo_RuleGroups proto.InternalMessageInfo -/// RuleGroup has info for rules which are part of a group. +// / RuleGroup has info for rules which are part of a group. type RuleGroup struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file"`