File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
internal/cortex/querier/queryrange Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -595,10 +595,11 @@ func (s *StringSample) UnmarshalJSON(b []byte) error {
595595// UnmarshalJSON implements json.Unmarshaler.
596596func (s * PrometheusInstantQueryData ) UnmarshalJSON (data []byte ) error {
597597 var queryData struct {
598- ResultType string `json:"resultType"`
599- Result jsoniter.RawMessage `json:"result"`
600- Stats * PrometheusResponseStats `json:"stats,omitempty"`
601- Analysis * Analysis `json:"analysis,omitempty"`
598+ ResultType string `json:"resultType"`
599+ Result jsoniter.RawMessage `json:"result"`
600+ Stats * PrometheusResponseStats `json:"stats,omitempty"`
601+ Analysis * Analysis `json:"analysis,omitempty"`
602+ SeriesStatsCounter * SeriesStatsCounter `json:"seriesStatsCounter,omitempty"`
602603 }
603604
604605 if err := json .Unmarshal (data , & queryData ); err != nil {
@@ -608,6 +609,7 @@ func (s *PrometheusInstantQueryData) UnmarshalJSON(data []byte) error {
608609 s .ResultType = queryData .ResultType
609610 s .Stats = queryData .Stats
610611 s .Analysis = queryData .Analysis
612+ s .SeriesStatsCounter = queryData .SeriesStatsCounter
611613 switch s .ResultType {
612614 case model .ValVector .String ():
613615 var result struct {
You can’t perform that action at this time.
0 commit comments