Chore: Update SDK to v0.145.0 with TimeSeriesMulti Constant (#59729)

This commit is contained in:
Kyle Brandt
2022-12-05 12:48:10 -05:00
committed by GitHub
parent eeb57cd520
commit 4e0f95dc31
51 changed files with 342 additions and 291 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ func TestAdjustFrame(t *testing.T) {
field2.Labels = data.Labels{"app": "Application", "tag2": "tag2"}
frame := data.NewFrame("test", field1, field2)
frame.SetMeta(&data.FrameMeta{Type: data.FrameTypeTimeSeriesMany})
frame.SetMeta(&data.FrameMeta{Type: data.FrameTypeTimeSeriesMulti})
query := &lokiQuery{
Expr: "up(ALERTS)",
@@ -123,7 +123,7 @@ func TestAdjustFrame(t *testing.T) {
field2 := data.NewField("", nil, make([]float64, 0))
frame := data.NewFrame("test", field1, field2)
frame.SetMeta(&data.FrameMeta{Type: data.FrameTypeTimeSeriesMany})
frame.SetMeta(&data.FrameMeta{Type: data.FrameTypeTimeSeriesMulti})
err := adjustFrame(frame, query)
require.NoError(t, err)
+2 -2
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
// }
// Name: {}
@@ -28,7 +28,7 @@
"schema": {
"name": "{}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
},
"fields": [
+2 -2
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
// }
// Name: {level="info", location="moon", protocol="http"}
@@ -30,7 +30,7 @@
"schema": {
"name": "{level=\"info\", location=\"moon\", protocol=\"http\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
},
"fields": [
+2 -2
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
// }
// Name: {__name__="moon", level="error"}
@@ -23,7 +23,7 @@
"schema": {
"name": "{__name__=\"moon\", level=\"error\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
},
"fields": [
+2 -2
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
// }
// Name: {}
@@ -25,7 +25,7 @@
"schema": {
"name": "{}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
},
"fields": [
+4 -4
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
// }
// Name: {level="error", location="moon"}
@@ -20,7 +20,7 @@
//
//
// Frame[1] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
// }
// Name: {level="info", location="mars"}
@@ -46,7 +46,7 @@
"schema": {
"name": "{level=\"error\", location=\"moon\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
},
"fields": [
@@ -97,7 +97,7 @@
"schema": {
"name": "{level=\"info\", location=\"mars\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
},
"fields": [
+2 -2
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
// }
// Name: {level="error"}
@@ -26,7 +26,7 @@
"schema": {
"name": "{level=\"error\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
},
"fields": [
+4 -4
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "stats": [
// {
// "displayName": "Summary: bytes processed per second",
@@ -126,7 +126,7 @@
//
//
// Frame[1] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
// }
// Name: {level="info", location="mars"}
@@ -149,7 +149,7 @@
"schema": {
"name": "{level=\"error\", location=\"moon\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"stats": [
{
"displayName": "Summary: bytes processed per second",
@@ -304,7 +304,7 @@
"schema": {
"name": "{level=\"info\", location=\"mars\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
},
"fields": [
+4 -4
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: query1"
// }
// Name: {level="error", location="moon"}
@@ -17,7 +17,7 @@
//
//
// Frame[1] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: query1"
// }
// Name: {level="info", location="moon"}
@@ -39,7 +39,7 @@
"schema": {
"name": "{level=\"error\", location=\"moon\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: query1"
},
"fields": [
@@ -81,7 +81,7 @@
"schema": {
"name": "{level=\"info\", location=\"moon\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: query1"
},
"fields": [
+6 -6
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: query1"
// }
// Name: {level="error", location="moon"}
@@ -17,7 +17,7 @@
//
//
// Frame[1] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: query1"
// }
// Name: {level="info", location="moon"}
@@ -33,7 +33,7 @@
//
//
// Frame[2] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "executedQueryString": "Expr: query1"
// }
// Name: {level="debug", location="moon"}
@@ -55,7 +55,7 @@
"schema": {
"name": "{level=\"error\", location=\"moon\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: query1"
},
"fields": [
@@ -105,7 +105,7 @@
"schema": {
"name": "{level=\"info\", location=\"moon\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: query1"
},
"fields": [
@@ -155,7 +155,7 @@
"schema": {
"name": "{level=\"debug\", location=\"moon\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"executedQueryString": "Expr: query1"
},
"fields": [
@@ -688,7 +688,7 @@ func deviation(values []float64) float64 {
func newDataFrame(name string, typ string, fields ...*data.Field) *data.Frame {
frame := data.NewFrame(name, fields...)
frame.Meta = &data.FrameMeta{
Type: data.FrameTypeTimeSeriesMany,
Type: data.FrameTypeTimeSeriesMulti,
Custom: map[string]string{
"resultType": typ, // Note: SSE depends on this property and map type
},
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "custom": {
// "resultType": "matrix"
// },
@@ -35,7 +35,7 @@
"schema": {
"name": "histogram_quantile(0.95, sum(rate(tns_request_duration_seconds_bucket[1m0s])) by (le))",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"custom": {
"resultType": "matrix"
},
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "custom": {
// "resultType": "matrix"
// },
@@ -28,7 +28,7 @@
"schema": {
"name": "1 / 0",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"custom": {
"resultType": "matrix"
},
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "custom": {
// "resultType": "matrix"
// },
@@ -28,7 +28,7 @@
"schema": {
"name": "go_goroutines{job=\"prometheus\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"custom": {
"resultType": "matrix"
},
+2 -2
View File
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "custom": {
// "resultType": "matrix"
// },
@@ -28,7 +28,7 @@
"schema": {
"name": "{handler=\"/api/v1/query_range\", job=\"prometheus\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"custom": {
"resultType": "matrix"
},
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "custom": {
// "resultType": "matrix"
// },
@@ -22,7 +22,7 @@
//
//
// Frame[1] {
// "type": "timeseries-many",
// "type": "timeseries-multi",
// "custom": {
// "resultType": "matrix"
// },
@@ -48,7 +48,7 @@
"schema": {
"name": "prometheus_http_requests_total{code=\"200\", handler=\"/api/v1/query_range\", job=\"prometheus\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"custom": {
"resultType": "matrix"
},
@@ -102,7 +102,7 @@
"schema": {
"name": "prometheus_http_requests_total{code=\"400\", handler=\"/api/v1/query_range\", job=\"prometheus\"}",
"meta": {
"type": "timeseries-many",
"type": "timeseries-multi",
"custom": {
"resultType": "matrix"
},