diff --git a/api/http/service.go b/api/http/service.go index 6316805d..7e2bc466 100644 --- a/api/http/service.go +++ b/api/http/service.go @@ -9,14 +9,14 @@ // // Service can be obtained from client using HTTPService() method. // It can be also created directly. To instantiate a Service use NewService(). Remember, the authorization param is in form "Token your-auth-token". e.g. "Token DXnd7annkGteV5Wqx9G3YjO9Ezkw87nHk8OabcyHCxF5451kdBV0Ag2cG7OmZZgCUTHroagUPdxbuoyen6TSPw==". -// srv := http.NewService("http://localhost:8086", "Token my-token", http.DefaultOptions()) +// +// srv := http.NewService("http://localhost:8086", "Token my-token", http.DefaultOptions()) package http import ( "context" "encoding/json" "io" - "io/ioutil" "mime" "net/http" "net/url" @@ -145,7 +145,7 @@ func (s *service) parseHTTPError(r *http.Response) *Error { } defer func() { // discard body so connection can be reused - _, _ = io.Copy(ioutil.Discard, r.Body) + _, _ = io.Copy(io.Discard, r.Body) _ = r.Body.Close() }() @@ -164,7 +164,7 @@ func (s *service) parseHTTPError(r *http.Response) *Error { if ctype == "application/json" { perror.Err = json.NewDecoder(r.Body).Decode(perror) } else { - body, err := ioutil.ReadAll(r.Body) + body, err := io.ReadAll(r.Body) if err != nil { perror.Err = err return perror diff --git a/api/query.go b/api/query.go index 9582d454..bce3e96d 100644 --- a/api/query.go +++ b/api/query.go @@ -14,7 +14,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "net/http" "net/url" "path" @@ -50,20 +49,19 @@ const ( // The name of a struct field or a map key (must be a string) will be a param name. // The name of the parameter represented by a struct field can be specified by JSON annotation: // -// type Condition struct { -// Start time.Time `json:"start"` -// Field string `json:"field"` -// Value float64 `json:"value"` -// } +// type Condition struct { +// Start time.Time `json:"start"` +// Field string `json:"field"` +// Value float64 `json:"value"` +// } // -// Parameters are then accessed via the Flux params object: -// -// query:= `from(bucket: "environment") -// |> range(start: time(v: params.start)) -// |> filter(fn: (r) => r._measurement == "air") -// |> filter(fn: (r) => r._field == params.field) -// |> filter(fn: (r) => r._value > params.value)` +// Parameters are then accessed via the Flux params object: // +// query:= `from(bucket: "environment") +// |> range(start: time(v: params.start)) +// |> filter(fn: (r) => r._measurement == "air") +// |> filter(fn: (r) => r._field == params.field) +// |> filter(fn: (r) => r._value > params.value)` type QueryAPI interface { // QueryRaw executes flux query on the InfluxDB server and returns complete query result as a string with table annotations according to dialect QueryRaw(ctx context.Context, query string, dialect *domain.Dialect) (string, error) @@ -113,7 +111,7 @@ type queryAPI struct { lock sync.Mutex } -// queryBody holds the body for an HTTP query request. +// queryBody holds the body for an HTTP query request. type queryBody struct { Dialect *domain.Dialect `json:"dialect,omitempty"` Query string `json:"query"` @@ -158,7 +156,7 @@ func (q *queryAPI) QueryRawWithParams(ctx context.Context, query string, dialect return err } } - respBody, err := ioutil.ReadAll(resp.Body) + respBody, err := io.ReadAll(resp.Body) if err != nil { return err } diff --git a/api/query_test.go b/api/query_test.go index 4dbabcf8..ba7428e7 100644 --- a/api/query_test.go +++ b/api/query_test.go @@ -7,7 +7,7 @@ package api import ( "context" "fmt" - "io/ioutil" + "io" "net/http" "net/http/httptest" "strings" @@ -83,7 +83,7 @@ func TestQueryCVSResultSingleTable(t *testing.T) { ) reader := strings.NewReader(csvTable) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.True(t, queryResult.Next(), queryResult.Err()) require.Nil(t, queryResult.Err()) @@ -307,7 +307,7 @@ func TestQueryCVSResultMultiTables(t *testing.T) { ) reader := strings.NewReader(csvTable) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) assert.Equal(t, -1, queryResult.TablePosition()) require.True(t, queryResult.Next(), queryResult.Err()) require.Nil(t, queryResult.Err()) @@ -439,7 +439,7 @@ func TestQueryCVSResultSingleTableMultiColumnsNoValue(t *testing.T) { ) reader := strings.NewReader(csvTable) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.True(t, queryResult.Next(), queryResult.Err()) require.Nil(t, queryResult.Err()) @@ -462,7 +462,8 @@ func TestQueryCVSResultSingleTableMultiColumnsNoValue(t *testing.T) { } func TestQueryRawResult(t *testing.T) { - csvRows := []string{`#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string,string,string`, + csvRows := []string{ + `#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string,string,string`, `#group,false,false,true,true,false,false,true,true,true,true`, `#default,_result,,,,,,,,,`, `,result,table,_start,_stop,_time,_value,_field,_measurement,a,b`, @@ -482,12 +483,12 @@ func TestQueryRawResult(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { <-time.After(100 * time.Millisecond) if r.Method == http.MethodPost { - rbody, _ := ioutil.ReadAll(r.Body) + rbody, _ := io.ReadAll(r.Body) fmt.Printf("Req: %s\n", string(rbody)) body, err := gzip.CompressWithGzip(strings.NewReader(csvTable)) if err == nil { var bytes []byte - bytes, err = ioutil.ReadAll(body) + bytes, err = io.ReadAll(body) if err == nil { w.Header().Set("Content-Type", "text/csv") w.Header().Set("Content-Encoding", "gzip") @@ -510,7 +511,6 @@ func TestQueryRawResult(t *testing.T) { require.Nil(t, err) require.NotNil(t, result) assert.Equal(t, csvTable, result) - } func TestErrorInRow(t *testing.T) { @@ -519,10 +519,11 @@ func TestErrorInRow(t *testing.T) { `#group,true,true`, `#default,,`, `,error,reference`, - `,failed to create physical plan: invalid time bounds from procedure from: bounds contain zero time,897`} + `,failed to create physical plan: invalid time bounds from procedure from: bounds contain zero time,897`, + } csvTable := makeCSVstring(csvRowsError) reader := strings.NewReader(csvTable) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) @@ -533,10 +534,11 @@ func TestErrorInRow(t *testing.T) { `#group,true,true`, `#default,,`, `,error,reference`, - `,failed to create physical plan: invalid time bounds from procedure from: bounds contain zero time,`} + `,failed to create physical plan: invalid time bounds from procedure from: bounds contain zero time,`, + } csvTable = makeCSVstring(csvRowsErrorNoReference) reader = strings.NewReader(csvTable) - queryResult = NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult = NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) @@ -547,10 +549,11 @@ func TestErrorInRow(t *testing.T) { `#group,true,true`, `#default,,`, `,error,reference`, - `,,`} + `,,`, + } csvTable = makeCSVstring(csvRowsErrorNoMessage) reader = strings.NewReader(csvTable) - queryResult = NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult = NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) @@ -567,7 +570,7 @@ func TestInvalidDataType(t *testing.T) { ` reader := strings.NewReader(csvTable) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) assert.Equal(t, "deviceId has unknown data type int", queryResult.Err().Error()) @@ -627,7 +630,7 @@ func TestReorderedAnnotations(t *testing.T) { ` reader := strings.NewReader(csvTable1) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.True(t, queryResult.Next(), queryResult.Err()) require.Nil(t, queryResult.Err()) @@ -654,7 +657,7 @@ func TestReorderedAnnotations(t *testing.T) { ` reader = strings.NewReader(csvTable2) - queryResult = NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult = NewQueryTableResult(io.NopCloser(reader)) require.True(t, queryResult.Next(), queryResult.Err()) require.Nil(t, queryResult.Err()) @@ -725,7 +728,7 @@ func TestDatatypeOnlyAnnotation(t *testing.T) { ` reader := strings.NewReader(csvTable1) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.True(t, queryResult.Next(), queryResult.Err()) require.Nil(t, queryResult.Err()) @@ -754,7 +757,7 @@ func TestMissingDatatypeAnnotation(t *testing.T) { ` reader := strings.NewReader(csvTable1) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) assert.Equal(t, "parsing error, datatype annotation not found", queryResult.Err().Error()) @@ -768,7 +771,7 @@ func TestMissingDatatypeAnnotation(t *testing.T) { ` reader = strings.NewReader(csvTable2) - queryResult = NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult = NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) assert.Equal(t, "parsing error, datatype annotation not found", queryResult.Err().Error()) @@ -782,7 +785,7 @@ func TestMissingAnnotations(t *testing.T) { ` reader := strings.NewReader(csvTable3) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) assert.Equal(t, "parsing error, annotations not found", queryResult.Err().Error()) @@ -797,7 +800,7 @@ func TestDifferentNumberOfColumns(t *testing.T) { ` reader := strings.NewReader(csvTable) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) assert.Equal(t, "parsing error, row has different number of columns than the table: 11 vs 10", queryResult.Err().Error()) @@ -810,7 +813,7 @@ func TestDifferentNumberOfColumns(t *testing.T) { ` reader = strings.NewReader(csvTable2) - queryResult = NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult = NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) assert.Equal(t, "parsing error, row has different number of columns than the table: 8 vs 10", queryResult.Err().Error()) @@ -823,7 +826,7 @@ func TestDifferentNumberOfColumns(t *testing.T) { ` reader = strings.NewReader(csvTable3) - queryResult = NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult = NewQueryTableResult(io.NopCloser(reader)) require.False(t, queryResult.Next()) require.NotNil(t, queryResult.Err()) assert.Equal(t, "parsing error, row has different number of columns than the table: 10 vs 8", queryResult.Err().Error()) @@ -840,7 +843,7 @@ func TestEmptyValue(t *testing.T) { ` reader := strings.NewReader(csvTable) - queryResult := NewQueryTableResult(ioutil.NopCloser(reader)) + queryResult := NewQueryTableResult(io.NopCloser(reader)) require.True(t, queryResult.Next(), queryResult.Err()) require.Nil(t, queryResult.Err()) @@ -864,7 +867,7 @@ func TestFluxError(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { <-time.After(100 * time.Millisecond) if r.Method == http.MethodPost { - _, _ = ioutil.ReadAll(r.Body) + _, _ = io.ReadAll(r.Body) w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusBadRequest) _, _ = w.Write([]byte(`{"code":"invalid","message":"compilation failed: loc 4:17-4:86: expected an operator between two expressions"}`)) @@ -882,12 +885,11 @@ func TestFluxError(t *testing.T) { assert.Nil(t, tableRes) require.NotNil(t, err) assert.Equal(t, "invalid: compilation failed: loc 4:17-4:86: expected an operator between two expressions", err.Error()) - } func TestQueryParamsTypes(t *testing.T) { var i int8 = 1 - var paramsTypeTests = []struct { + paramsTypeTests := []struct { testName string params interface{} expectError string @@ -1020,7 +1022,7 @@ func TestQueryParamsSerialized(t *testing.T) { expectedBody := `{"dialect":{"annotations":["datatype","group","default"],"delimiter":",","header":true},"query":"from(bucket: \"environment\") |\u003e range(start: time(v: params.start)) |\u003e filter(fn: (r) =\u003e r._measurement == \"air\") |\u003e filter(fn: (r) =\u003e r._field == params.field) |\u003e filter(fn: (r) =\u003e r._value \u003e params.value)","type":"flux","params":{"start":"2022-02-17T11:27:23+01:00","field":"field","value":24.4}}` server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method == http.MethodPost { - body, err := ioutil.ReadAll(r.Body) + body, err := io.ReadAll(r.Body) if err != nil { w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusBadRequest) @@ -1058,7 +1060,6 @@ func TestQueryParamsSerialized(t *testing.T) { _, err = queryAPI.QueryWithParams(context.Background(), query, condition) require.NoError(t, err, err) - } func makeCSVstring(rows []string) string { diff --git a/domain/client.gen.go b/domain/client.gen.go index b22e0002..724bbaeb 100644 --- a/domain/client.gen.go +++ b/domain/client.gen.go @@ -10,7 +10,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "mime" "net/http" "net/url" @@ -213,7 +212,7 @@ func (c *Client) GetAuthorizations(ctx context.Context, params *GetAuthorization if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -280,7 +279,7 @@ func (c *Client) PostAuthorizations(ctx context.Context, params *PostAuthorizati if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -350,7 +349,7 @@ func (c *Client) DeleteAuthorizationsID(ctx context.Context, params *DeleteAutho defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -405,7 +404,7 @@ func (c *Client) GetAuthorizationsID(ctx context.Context, params *GetAuthorizati if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -479,7 +478,7 @@ func (c *Client) PatchAuthorizationsID(ctx context.Context, params *PatchAuthori if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -654,7 +653,7 @@ func (c *Client) GetBuckets(ctx context.Context, params *GetBucketsParams) (*Buc if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -721,7 +720,7 @@ func (c *Client) PostBuckets(ctx context.Context, params *PostBucketsAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -791,7 +790,7 @@ func (c *Client) DeleteBucketsID(ctx context.Context, params *DeleteBucketsIDAll defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -846,7 +845,7 @@ func (c *Client) GetBucketsID(ctx context.Context, params *GetBucketsIDAllParams if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -920,7 +919,7 @@ func (c *Client) PatchBucketsID(ctx context.Context, params *PatchBucketsIDAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -986,7 +985,7 @@ func (c *Client) GetBucketsIDLabels(ctx context.Context, params *GetBucketsIDLab if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1060,7 +1059,7 @@ func (c *Client) PostBucketsIDLabels(ctx context.Context, params *PostBucketsIDL if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1137,7 +1136,7 @@ func (c *Client) DeleteBucketsIDLabelsID(ctx context.Context, params *DeleteBuck defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -1192,7 +1191,7 @@ func (c *Client) GetBucketsIDMembers(ctx context.Context, params *GetBucketsIDMe if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1266,7 +1265,7 @@ func (c *Client) PostBucketsIDMembers(ctx context.Context, params *PostBucketsID if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1343,7 +1342,7 @@ func (c *Client) DeleteBucketsIDMembersID(ctx context.Context, params *DeleteBuc defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -1398,7 +1397,7 @@ func (c *Client) GetBucketsIDOwners(ctx context.Context, params *GetBucketsIDOwn if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1472,7 +1471,7 @@ func (c *Client) PostBucketsIDOwners(ctx context.Context, params *PostBucketsIDO if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1549,7 +1548,7 @@ func (c *Client) DeleteBucketsIDOwnersID(ctx context.Context, params *DeleteBuck defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -1645,7 +1644,7 @@ func (c *Client) GetChecks(ctx context.Context, params *GetChecksParams) (*Check if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1701,7 +1700,7 @@ func (c *Client) CreateCheck(ctx context.Context, params *CreateCheckAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1771,7 +1770,7 @@ func (c *Client) DeleteChecksID(ctx context.Context, params *DeleteChecksIDAllPa defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -1826,7 +1825,7 @@ func (c *Client) GetChecksID(ctx context.Context, params *GetChecksIDAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1900,7 +1899,7 @@ func (c *Client) PatchChecksID(ctx context.Context, params *PatchChecksIDAllPara if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -1974,7 +1973,7 @@ func (c *Client) PutChecksID(ctx context.Context, params *PutChecksIDAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2040,7 +2039,7 @@ func (c *Client) GetChecksIDLabels(ctx context.Context, params *GetChecksIDLabel if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2114,7 +2113,7 @@ func (c *Client) PostChecksIDLabels(ctx context.Context, params *PostChecksIDLab if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2191,7 +2190,7 @@ func (c *Client) DeleteChecksIDLabelsID(ctx context.Context, params *DeleteCheck defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -2246,7 +2245,7 @@ func (c *Client) GetChecksIDQuery(ctx context.Context, params *GetChecksIDQueryA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2305,7 +2304,7 @@ func (c *Client) GetConfig(ctx context.Context, params *GetConfigParams) (*Confi if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2496,7 +2495,7 @@ func (c *Client) GetDashboards(ctx context.Context, params *GetDashboardsParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2566,7 +2565,7 @@ func (c *Client) DeleteDashboardsID(ctx context.Context, params *DeleteDashboard defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -2629,7 +2628,7 @@ func (c *Client) PatchDashboardsID(ctx context.Context, params *PatchDashboardsI if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2703,7 +2702,7 @@ func (c *Client) PostDashboardsIDCells(ctx context.Context, params *PostDashboar if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2777,7 +2776,7 @@ func (c *Client) PutDashboardsIDCells(ctx context.Context, params *PutDashboards if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2854,7 +2853,7 @@ func (c *Client) DeleteDashboardsIDCellsID(ctx context.Context, params *DeleteDa defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -2924,7 +2923,7 @@ func (c *Client) PatchDashboardsIDCellsID(ctx context.Context, params *PatchDash if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -2997,7 +2996,7 @@ func (c *Client) GetDashboardsIDCellsIDView(ctx context.Context, params *GetDash if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3078,7 +3077,7 @@ func (c *Client) PatchDashboardsIDCellsIDView(ctx context.Context, params *Patch if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3144,7 +3143,7 @@ func (c *Client) GetDashboardsIDLabels(ctx context.Context, params *GetDashboard if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3218,7 +3217,7 @@ func (c *Client) PostDashboardsIDLabels(ctx context.Context, params *PostDashboa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3295,7 +3294,7 @@ func (c *Client) DeleteDashboardsIDLabelsID(ctx context.Context, params *DeleteD defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -3350,7 +3349,7 @@ func (c *Client) GetDashboardsIDMembers(ctx context.Context, params *GetDashboar if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3424,7 +3423,7 @@ func (c *Client) PostDashboardsIDMembers(ctx context.Context, params *PostDashbo if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3501,7 +3500,7 @@ func (c *Client) DeleteDashboardsIDMembersID(ctx context.Context, params *Delete defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -3556,7 +3555,7 @@ func (c *Client) GetDashboardsIDOwners(ctx context.Context, params *GetDashboard if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3630,7 +3629,7 @@ func (c *Client) PostDashboardsIDOwners(ctx context.Context, params *PostDashboa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3707,7 +3706,7 @@ func (c *Client) DeleteDashboardsIDOwnersID(ctx context.Context, params *DeleteD defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -3871,7 +3870,7 @@ func (c *Client) GetDBRPs(ctx context.Context, params *GetDBRPsParams) (*DBRPs, if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -3938,7 +3937,7 @@ func (c *Client) PostDBRP(ctx context.Context, params *PostDBRPAllParams) (*DBRP if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4044,7 +4043,7 @@ func (c *Client) DeleteDBRPID(ctx context.Context, params *DeleteDBRPIDAllParams defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -4135,7 +4134,7 @@ func (c *Client) GetDBRPsID(ctx context.Context, params *GetDBRPsIDAllParams) (* if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4245,7 +4244,7 @@ func (c *Client) PatchDBRPID(ctx context.Context, params *PatchDBRPIDAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4384,7 +4383,7 @@ func (c *Client) PostDelete(ctx context.Context, params *PostDeleteAllParams) er defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -4432,7 +4431,7 @@ func (c *Client) GetFlags(ctx context.Context, params *GetFlagsParams) (*Flags, if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4491,7 +4490,7 @@ func (c *Client) GetHealth(ctx context.Context, params *GetHealthParams) (*Healt if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4570,7 +4569,7 @@ func (c *Client) GetLabels(ctx context.Context, params *GetLabelsParams) (*Label if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4626,7 +4625,7 @@ func (c *Client) PostLabels(ctx context.Context, params *PostLabelsAllParams) (* if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4696,7 +4695,7 @@ func (c *Client) DeleteLabelsID(ctx context.Context, params *DeleteLabelsIDAllPa defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -4751,7 +4750,7 @@ func (c *Client) GetLabelsID(ctx context.Context, params *GetLabelsIDAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4825,7 +4824,7 @@ func (c *Client) PatchLabelsID(ctx context.Context, params *PatchLabelsIDAllPara if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4884,7 +4883,7 @@ func (c *Client) GetMe(ctx context.Context, params *GetMeParams) (*UserResponse, if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -4955,7 +4954,7 @@ func (c *Client) PutMePassword(ctx context.Context, params *PutMePasswordAllPara defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -5051,7 +5050,7 @@ func (c *Client) GetNotificationEndpoints(ctx context.Context, params *GetNotifi if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5107,7 +5106,7 @@ func (c *Client) CreateNotificationEndpoint(ctx context.Context, params *CreateN if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5177,7 +5176,7 @@ func (c *Client) DeleteNotificationEndpointsID(ctx context.Context, params *Dele defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -5232,7 +5231,7 @@ func (c *Client) GetNotificationEndpointsID(ctx context.Context, params *GetNoti if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5306,7 +5305,7 @@ func (c *Client) PatchNotificationEndpointsID(ctx context.Context, params *Patch if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5380,7 +5379,7 @@ func (c *Client) PutNotificationEndpointsID(ctx context.Context, params *PutNoti if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5446,7 +5445,7 @@ func (c *Client) GetNotificationEndpointsIDLabels(ctx context.Context, params *G if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5520,7 +5519,7 @@ func (c *Client) PostNotificationEndpointIDLabels(ctx context.Context, params *P if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5597,7 +5596,7 @@ func (c *Client) DeleteNotificationEndpointsIDLabelsID(ctx context.Context, para defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -5725,7 +5724,7 @@ func (c *Client) GetNotificationRules(ctx context.Context, params *GetNotificati if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5781,7 +5780,7 @@ func (c *Client) CreateNotificationRule(ctx context.Context, params *CreateNotif if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5851,7 +5850,7 @@ func (c *Client) DeleteNotificationRulesID(ctx context.Context, params *DeleteNo defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -5906,7 +5905,7 @@ func (c *Client) GetNotificationRulesID(ctx context.Context, params *GetNotifica if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -5980,7 +5979,7 @@ func (c *Client) PatchNotificationRulesID(ctx context.Context, params *PatchNoti if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6054,7 +6053,7 @@ func (c *Client) PutNotificationRulesID(ctx context.Context, params *PutNotifica if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6120,7 +6119,7 @@ func (c *Client) GetNotificationRulesIDLabels(ctx context.Context, params *GetNo if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6194,7 +6193,7 @@ func (c *Client) PostNotificationRuleIDLabels(ctx context.Context, params *PostN if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6271,7 +6270,7 @@ func (c *Client) DeleteNotificationRulesIDLabelsID(ctx context.Context, params * defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -6326,7 +6325,7 @@ func (c *Client) GetNotificationRulesIDQuery(ctx context.Context, params *GetNot if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6485,7 +6484,7 @@ func (c *Client) GetOrgs(ctx context.Context, params *GetOrgsParams) (*Organizat if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6552,7 +6551,7 @@ func (c *Client) PostOrgs(ctx context.Context, params *PostOrgsAllParams) (*Orga if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6622,7 +6621,7 @@ func (c *Client) DeleteOrgsID(ctx context.Context, params *DeleteOrgsIDAllParams defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -6677,7 +6676,7 @@ func (c *Client) GetOrgsID(ctx context.Context, params *GetOrgsIDAllParams) (*Or if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6751,7 +6750,7 @@ func (c *Client) PatchOrgsID(ctx context.Context, params *PatchOrgsIDAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6817,7 +6816,7 @@ func (c *Client) GetOrgsIDMembers(ctx context.Context, params *GetOrgsIDMembersA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6891,7 +6890,7 @@ func (c *Client) PostOrgsIDMembers(ctx context.Context, params *PostOrgsIDMember if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -6968,7 +6967,7 @@ func (c *Client) DeleteOrgsIDMembersID(ctx context.Context, params *DeleteOrgsID defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -7023,7 +7022,7 @@ func (c *Client) GetOrgsIDOwners(ctx context.Context, params *GetOrgsIDOwnersAll if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -7097,7 +7096,7 @@ func (c *Client) PostOrgsIDOwners(ctx context.Context, params *PostOrgsIDOwnersA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -7174,7 +7173,7 @@ func (c *Client) DeleteOrgsIDOwnersID(ctx context.Context, params *DeleteOrgsIDO defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -7229,7 +7228,7 @@ func (c *Client) GetOrgsIDSecrets(ctx context.Context, params *GetOrgsIDSecretsA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -7307,7 +7306,7 @@ func (c *Client) PatchOrgsIDSecrets(ctx context.Context, params *PatchOrgsIDSecr defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -7374,7 +7373,7 @@ func (c *Client) PostOrgsIDSecrets(ctx context.Context, params *PostOrgsIDSecret defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -7440,7 +7439,7 @@ func (c *Client) DeleteOrgsIDSecretsID(ctx context.Context, params *DeleteOrgsID defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -7481,7 +7480,7 @@ func (c *Client) GetPing(ctx context.Context) error { defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -7522,7 +7521,7 @@ func (c *Client) HeadPing(ctx context.Context) error { defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -7589,7 +7588,7 @@ func (c *Client) PostQueryAnalyze(ctx context.Context, params *PostQueryAnalyzeA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -7667,7 +7666,7 @@ func (c *Client) PostQueryAst(ctx context.Context, params *PostQueryAstAllParams if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -7726,7 +7725,7 @@ func (c *Client) GetQuerySuggestions(ctx context.Context, params *GetQuerySugges if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -7792,7 +7791,7 @@ func (c *Client) GetQuerySuggestionsName(ctx context.Context, params *GetQuerySu if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -7851,7 +7850,7 @@ func (c *Client) GetReady(ctx context.Context, params *GetReadyParams) (*Ready, if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -7958,7 +7957,7 @@ func (c *Client) GetRemoteConnections(ctx context.Context, params *GetRemoteConn if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8014,7 +8013,7 @@ func (c *Client) PostRemoteConnection(ctx context.Context, params *PostRemoteCon if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8084,7 +8083,7 @@ func (c *Client) DeleteRemoteConnectionByID(ctx context.Context, params *DeleteR defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -8139,7 +8138,7 @@ func (c *Client) GetRemoteConnectionByID(ctx context.Context, params *GetRemoteC if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8213,7 +8212,7 @@ func (c *Client) PatchRemoteConnectionByID(ctx context.Context, params *PatchRem if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8336,7 +8335,7 @@ func (c *Client) GetReplications(ctx context.Context, params *GetReplicationsPar if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8423,7 +8422,7 @@ func (c *Client) PostReplication(ctx context.Context, params *PostReplicationAll if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8493,7 +8492,7 @@ func (c *Client) DeleteReplicationByID(ctx context.Context, params *DeleteReplic defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -8548,7 +8547,7 @@ func (c *Client) GetReplicationByID(ctx context.Context, params *GetReplicationB if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8642,7 +8641,7 @@ func (c *Client) PatchReplicationByID(ctx context.Context, params *PatchReplicat if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8712,7 +8711,7 @@ func (c *Client) PostValidateReplicationByID(ctx context.Context, params *PostVa defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -8760,7 +8759,7 @@ func (c *Client) GetResources(ctx context.Context, params *GetResourcesParams) ( if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8827,7 +8826,7 @@ func (c *Client) PostRestoreBucketMetadata(ctx context.Context, params *PostRest if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -8954,7 +8953,7 @@ func (c *Client) GetScrapers(ctx context.Context, params *GetScrapersParams) (*S if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9021,7 +9020,7 @@ func (c *Client) PostScrapers(ctx context.Context, params *PostScrapersAllParams if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9091,7 +9090,7 @@ func (c *Client) DeleteScrapersID(ctx context.Context, params *DeleteScrapersIDA defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -9146,7 +9145,7 @@ func (c *Client) GetScrapersID(ctx context.Context, params *GetScrapersIDAllPara if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9220,7 +9219,7 @@ func (c *Client) PatchScrapersID(ctx context.Context, params *PatchScrapersIDAll if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9286,7 +9285,7 @@ func (c *Client) GetScrapersIDLabels(ctx context.Context, params *GetScrapersIDL if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9360,7 +9359,7 @@ func (c *Client) PostScrapersIDLabels(ctx context.Context, params *PostScrapersI if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9437,7 +9436,7 @@ func (c *Client) DeleteScrapersIDLabelsID(ctx context.Context, params *DeleteScr defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -9492,7 +9491,7 @@ func (c *Client) GetScrapersIDMembers(ctx context.Context, params *GetScrapersID if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9566,7 +9565,7 @@ func (c *Client) PostScrapersIDMembers(ctx context.Context, params *PostScrapers if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9643,7 +9642,7 @@ func (c *Client) DeleteScrapersIDMembersID(ctx context.Context, params *DeleteSc defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -9698,7 +9697,7 @@ func (c *Client) GetScrapersIDOwners(ctx context.Context, params *GetScrapersIDO if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9772,7 +9771,7 @@ func (c *Client) PostScrapersIDOwners(ctx context.Context, params *PostScrapersI if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9849,7 +9848,7 @@ func (c *Client) DeleteScrapersIDOwnersID(ctx context.Context, params *DeleteScr defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -9897,7 +9896,7 @@ func (c *Client) GetSetup(ctx context.Context, params *GetSetupParams) (*IsOnboa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -9964,7 +9963,7 @@ func (c *Client) PostSetup(ctx context.Context, params *PostSetupAllParams) (*On if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10027,7 +10026,7 @@ func (c *Client) PostSignin(ctx context.Context, params *PostSigninParams) error defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -10079,7 +10078,7 @@ func (c *Client) PostSignout(ctx context.Context, params *PostSignoutParams) err defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -10147,7 +10146,7 @@ func (c *Client) GetSources(ctx context.Context, params *GetSourcesParams) (*Sou if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10214,7 +10213,7 @@ func (c *Client) PostSources(ctx context.Context, params *PostSourcesAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10284,7 +10283,7 @@ func (c *Client) DeleteSourcesID(ctx context.Context, params *DeleteSourcesIDAll defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -10339,7 +10338,7 @@ func (c *Client) GetSourcesID(ctx context.Context, params *GetSourcesIDAllParams if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10413,7 +10412,7 @@ func (c *Client) PatchSourcesID(ctx context.Context, params *PatchSourcesIDAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10499,7 +10498,7 @@ func (c *Client) GetSourcesIDBuckets(ctx context.Context, params *GetSourcesIDBu if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10565,7 +10564,7 @@ func (c *Client) GetSourcesIDHealth(ctx context.Context, params *GetSourcesIDHea if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10663,7 +10662,7 @@ func (c *Client) ListStacks(ctx context.Context, params *ListStacksParams) (*str if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10721,7 +10720,7 @@ func (c *Client) CreateStack(ctx context.Context, params *CreateStackAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10796,7 +10795,7 @@ func (c *Client) DeleteStack(ctx context.Context, params *DeleteStackAllParams) defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -10840,7 +10839,7 @@ func (c *Client) ReadStack(ctx context.Context, params *ReadStackAllParams) (*St if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10903,7 +10902,7 @@ func (c *Client) UpdateStack(ctx context.Context, params *UpdateStackAllParams) if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -10958,7 +10957,7 @@ func (c *Client) UninstallStack(ctx context.Context, params *UninstallStackAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11149,7 +11148,7 @@ func (c *Client) GetTasks(ctx context.Context, params *GetTasksParams) (*Tasks, if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11216,7 +11215,7 @@ func (c *Client) PostTasks(ctx context.Context, params *PostTasksAllParams) (*Ta if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11286,7 +11285,7 @@ func (c *Client) DeleteTasksID(ctx context.Context, params *DeleteTasksIDAllPara defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -11341,7 +11340,7 @@ func (c *Client) GetTasksID(ctx context.Context, params *GetTasksIDAllParams) (* if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11415,7 +11414,7 @@ func (c *Client) PatchTasksID(ctx context.Context, params *PatchTasksIDAllParams if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11481,7 +11480,7 @@ func (c *Client) GetTasksIDLabels(ctx context.Context, params *GetTasksIDLabelsA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11555,7 +11554,7 @@ func (c *Client) PostTasksIDLabels(ctx context.Context, params *PostTasksIDLabel if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11632,7 +11631,7 @@ func (c *Client) DeleteTasksIDLabelsID(ctx context.Context, params *DeleteTasksI defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -11687,7 +11686,7 @@ func (c *Client) GetTasksIDLogs(ctx context.Context, params *GetTasksIDLogsAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11753,7 +11752,7 @@ func (c *Client) GetTasksIDMembers(ctx context.Context, params *GetTasksIDMember if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11827,7 +11826,7 @@ func (c *Client) PostTasksIDMembers(ctx context.Context, params *PostTasksIDMemb if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -11904,7 +11903,7 @@ func (c *Client) DeleteTasksIDMembersID(ctx context.Context, params *DeleteTasks defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -11959,7 +11958,7 @@ func (c *Client) GetTasksIDOwners(ctx context.Context, params *GetTasksIDOwnersA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12033,7 +12032,7 @@ func (c *Client) PostTasksIDOwners(ctx context.Context, params *PostTasksIDOwner if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12110,7 +12109,7 @@ func (c *Client) DeleteTasksIDOwnersID(ctx context.Context, params *DeleteTasksI defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -12233,7 +12232,7 @@ func (c *Client) GetTasksIDRuns(ctx context.Context, params *GetTasksIDRunsAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12307,7 +12306,7 @@ func (c *Client) PostTasksIDRuns(ctx context.Context, params *PostTasksIDRunsAll if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12384,7 +12383,7 @@ func (c *Client) DeleteTasksIDRunsID(ctx context.Context, params *DeleteTasksIDR defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -12446,7 +12445,7 @@ func (c *Client) GetTasksIDRunsID(ctx context.Context, params *GetTasksIDRunsIDA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12519,7 +12518,7 @@ func (c *Client) GetTasksIDRunsIDLogs(ctx context.Context, params *GetTasksIDRun if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12600,7 +12599,7 @@ func (c *Client) PostTasksIDRunsIDRetry(ctx context.Context, params *PostTasksID if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12679,7 +12678,7 @@ func (c *Client) GetTelegrafPlugins(ctx context.Context, params *GetTelegrafPlug if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12758,7 +12757,7 @@ func (c *Client) GetTelegrafs(ctx context.Context, params *GetTelegrafsParams) ( if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12825,7 +12824,7 @@ func (c *Client) PostTelegrafs(ctx context.Context, params *PostTelegrafsAllPara if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -12895,7 +12894,7 @@ func (c *Client) DeleteTelegrafsID(ctx context.Context, params *DeleteTelegrafsI defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -12961,7 +12960,7 @@ func (c *Client) GetTelegrafsID(ctx context.Context, params *GetTelegrafsIDAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13035,7 +13034,7 @@ func (c *Client) PutTelegrafsID(ctx context.Context, params *PutTelegrafsIDAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13101,7 +13100,7 @@ func (c *Client) GetTelegrafsIDLabels(ctx context.Context, params *GetTelegrafsI if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13175,7 +13174,7 @@ func (c *Client) PostTelegrafsIDLabels(ctx context.Context, params *PostTelegraf if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13252,7 +13251,7 @@ func (c *Client) DeleteTelegrafsIDLabelsID(ctx context.Context, params *DeleteTe defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -13307,7 +13306,7 @@ func (c *Client) GetTelegrafsIDMembers(ctx context.Context, params *GetTelegrafs if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13381,7 +13380,7 @@ func (c *Client) PostTelegrafsIDMembers(ctx context.Context, params *PostTelegra if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13458,7 +13457,7 @@ func (c *Client) DeleteTelegrafsIDMembersID(ctx context.Context, params *DeleteT defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -13513,7 +13512,7 @@ func (c *Client) GetTelegrafsIDOwners(ctx context.Context, params *GetTelegrafsI if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13587,7 +13586,7 @@ func (c *Client) PostTelegrafsIDOwners(ctx context.Context, params *PostTelegraf if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13664,7 +13663,7 @@ func (c *Client) DeleteTelegrafsIDOwnersID(ctx context.Context, params *DeleteTe defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -13709,7 +13708,7 @@ func (c *Client) ExportTemplate(ctx context.Context, params *ExportTemplateAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13852,7 +13851,7 @@ func (c *Client) GetUsers(ctx context.Context, params *GetUsersParams) (*Users, if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13919,7 +13918,7 @@ func (c *Client) PostUsers(ctx context.Context, params *PostUsersAllParams) (*Us if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -13989,7 +13988,7 @@ func (c *Client) DeleteUsersID(ctx context.Context, params *DeleteUsersIDAllPara defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -14044,7 +14043,7 @@ func (c *Client) GetUsersID(ctx context.Context, params *GetUsersIDAllParams) (* if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14118,7 +14117,7 @@ func (c *Client) PatchUsersID(ctx context.Context, params *PatchUsersIDAllParams if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14196,7 +14195,7 @@ func (c *Client) PostUsersIDPassword(ctx context.Context, params *PostUsersIDPas defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -14280,7 +14279,7 @@ func (c *Client) GetVariables(ctx context.Context, params *GetVariablesParams) ( if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14347,7 +14346,7 @@ func (c *Client) PostVariables(ctx context.Context, params *PostVariablesAllPara if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14417,7 +14416,7 @@ func (c *Client) DeleteVariablesID(ctx context.Context, params *DeleteVariablesI defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } @@ -14472,7 +14471,7 @@ func (c *Client) GetVariablesID(ctx context.Context, params *GetVariablesIDAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14546,7 +14545,7 @@ func (c *Client) PatchVariablesID(ctx context.Context, params *PatchVariablesIDA if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14620,7 +14619,7 @@ func (c *Client) PutVariablesID(ctx context.Context, params *PutVariablesIDAllPa if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14686,7 +14685,7 @@ func (c *Client) GetVariablesIDLabels(ctx context.Context, params *GetVariablesI if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14760,7 +14759,7 @@ func (c *Client) PostVariablesIDLabels(ctx context.Context, params *PostVariable if err != nil { return nil, err } - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { @@ -14837,7 +14836,7 @@ func (c *Client) DeleteVariablesIDLabelsID(ctx context.Context, params *DeleteVa defer func() { _ = rsp.Body.Close() }() if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } diff --git a/domain/oss.yml b/domain/oss.yml index bb966ba6..c191da0c 100644 --- a/domain/oss.yml +++ b/domain/oss.yml @@ -187,34 +187,34 @@ paths: post: operationId: PostSignin summary: Create a user session. - description: 'Authenticates ***Basic Auth*** credentials for a user. If successful, creates a new UI session for the user.' + description: "Authenticates ***Basic Auth*** credentials for a user. If successful, creates a new UI session for the user." tags: - Signin security: - BasicAuthentication: [] parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '204': + "204": description: Success. User authenticated. - '401': + "401": description: Unauthorized access. content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': + $ref: "#/components/schemas/Error" + "403": description: User account is disabled. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unsuccessful authentication. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /signout: post: operationId: PostSignout @@ -223,34 +223,34 @@ paths: - Signout description: Expires the current UI session for the user. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '204': + "204": description: Session successfully expired - '401': + "401": description: Unauthorized access content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unsuccessful session expiry content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /ping: get: operationId: GetPing summary: Get the status and version of the instance description: Returns the status and InfluxDB version of the instance. servers: - - url: '' + - url: "" tags: - Ping - System information endpoints responses: - '204': + "204": description: | OK. Headers contain InfluxDB version information. @@ -268,11 +268,11 @@ paths: summary: Get the status and version of the instance description: Returns the status and InfluxDB version of the instance. servers: - - url: '' + - url: "" tags: - Ping responses: - '204': + "204": description: | OK. Headers contain InfluxDB version information. @@ -293,14 +293,14 @@ paths: - Routes - System information endpoints parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: default: description: All routes content: application/json: schema: - $ref: '#/components/schemas/Routes' + $ref: "#/components/schemas/Routes" /dbrps: get: operationId: GetDBRPs @@ -308,7 +308,7 @@ paths: - DBRPs summary: List database retention policy mappings parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: orgID description: Specifies the organization ID to filter on @@ -345,65 +345,65 @@ paths: schema: type: string responses: - '200': + "200": description: Success. Returns a list of database retention policy mappings. content: application/json: schema: - $ref: '#/components/schemas/DBRPs' - '400': + $ref: "#/components/schemas/DBRPs" + "400": description: Bad request. The request has one or more invalid parameters. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostDBRP tags: - DBRPs summary: Add a database retention policy mapping parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: The database retention policy mapping to add required: true content: application/json: schema: - $ref: '#/components/schemas/DBRPCreate' + $ref: "#/components/schemas/DBRPCreate" responses: - '201': + "201": description: Created. Returns the created database retention policy mapping. content: application/json: schema: - $ref: '#/components/schemas/DBRP' - '400': + $ref: "#/components/schemas/DBRP" + "400": description: Bad request. The mapping in the request has one or more invalid IDs. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dbrps/{dbrpID}': + $ref: "#/components/schemas/Error" + "/dbrps/{dbrpID}": get: operationId: GetDBRPsID tags: - DBRPs summary: Retrieve a database retention policy mapping parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: orgID description: Specifies the organization ID of the mapping @@ -421,24 +421,24 @@ paths: required: true description: The database retention policy mapping ID responses: - '200': + "200": description: The database retention policy requested content: application/json: schema: - $ref: '#/components/schemas/DBRPGet' - '400': + $ref: "#/components/schemas/DBRPGet" + "400": description: if any of the IDs passed is invalid content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchDBRPID tags: @@ -450,9 +450,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DBRPUpdate' + $ref: "#/components/schemas/DBRPUpdate" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: orgID description: Specifies the organization ID of the mapping @@ -470,37 +470,37 @@ paths: required: true description: The database retention policy mapping. responses: - '200': + "200": description: An updated mapping content: application/json: schema: - $ref: '#/components/schemas/DBRPGet' - '400': + $ref: "#/components/schemas/DBRPGet" + "400": description: if any of the IDs passed is invalid content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: The mapping was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteDBRPID tags: - DBRPs summary: Delete a database retention policy parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: orgID description: Specifies the organization ID of the mapping @@ -518,20 +518,20 @@ paths: required: true description: The database retention policy mapping responses: - '204': + "204": description: Delete has been accepted - '400': + "400": description: if any of the IDs passed is invalid content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /telegraf/plugins: get: operationId: GetTelegrafPlugins @@ -539,25 +539,25 @@ paths: - Telegraf Plugins summary: List all Telegraf plugins parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: type description: The type of plugin desired. schema: type: string responses: - '200': + "200": description: A list of Telegraf plugins. content: application/json: schema: - $ref: '#/components/schemas/TelegrafPlugins' + $ref: "#/components/schemas/TelegrafPlugins" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /telegrafs: get: operationId: GetTelegrafs @@ -565,60 +565,60 @@ paths: - Telegrafs summary: List all Telegraf configurations parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: orgID description: The organization ID the Telegraf config belongs to. schema: type: string responses: - '200': + "200": description: A list of Telegraf configurations content: application/json: schema: - $ref: '#/components/schemas/Telegrafs' + $ref: "#/components/schemas/Telegrafs" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostTelegrafs tags: - Telegrafs summary: Create a Telegraf configuration parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: Telegraf configuration to create required: true content: application/json: schema: - $ref: '#/components/schemas/TelegrafPluginRequest' + $ref: "#/components/schemas/TelegrafPluginRequest" responses: - '201': + "201": description: Telegraf configuration created content: application/json: schema: - $ref: '#/components/schemas/Telegraf' + $ref: "#/components/schemas/Telegraf" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/telegrafs/{telegrafID}': + $ref: "#/components/schemas/Error" + "/telegrafs/{telegrafID}": get: operationId: GetTelegrafsID tags: - Telegrafs summary: Retrieve a Telegraf configuration parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -636,7 +636,7 @@ paths: - application/json - application/octet-stream responses: - '200': + "200": description: Telegraf configuration details content: application/toml: @@ -647,7 +647,7 @@ paths: type: string application/json: schema: - $ref: '#/components/schemas/Telegraf' + $ref: "#/components/schemas/Telegraf" application/octet-stream: example: |- [agent] @@ -659,14 +659,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: operationId: PutTelegrafsID tags: - Telegrafs summary: Update a Telegraf configuration parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -679,27 +679,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TelegrafPluginRequest' + $ref: "#/components/schemas/TelegrafPluginRequest" responses: - '200': + "200": description: An updated Telegraf configurations content: application/json: schema: - $ref: '#/components/schemas/Telegraf' + $ref: "#/components/schemas/Telegraf" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteTelegrafsID tags: - Telegrafs summary: Delete a Telegraf configuration parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -707,22 +707,22 @@ paths: required: true description: The Telegraf configuration ID. responses: - '204': + "204": description: Delete has been accepted default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/telegrafs/{telegrafID}/labels': + $ref: "#/components/schemas/Error" + "/telegrafs/{telegrafID}/labels": get: operationId: GetTelegrafsIDLabels tags: - Telegrafs summary: List all labels for a Telegraf config parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -730,25 +730,25 @@ paths: required: true description: The Telegraf config ID. responses: - '200': + "200": description: A list of all labels for a Telegraf config content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' + $ref: "#/components/schemas/LabelsResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostTelegrafsIDLabels tags: - Telegrafs summary: Add a label to a Telegraf config parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -761,28 +761,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: The label added to the Telegraf config content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' + $ref: "#/components/schemas/LabelResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/telegrafs/{telegrafID}/labels/{labelID}': + $ref: "#/components/schemas/Error" + "/telegrafs/{telegrafID}/labels/{labelID}": delete: operationId: DeleteTelegrafsIDLabelsID tags: - Telegrafs summary: Delete a label from a Telegraf config parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -796,28 +796,28 @@ paths: required: true description: The label ID. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Telegraf config not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/telegrafs/{telegrafID}/members': + $ref: "#/components/schemas/Error" + "/telegrafs/{telegrafID}/members": get: operationId: GetTelegrafsIDMembers tags: - Telegrafs summary: List all users with member privileges for a Telegraf config parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -825,25 +825,25 @@ paths: required: true description: The Telegraf config ID. responses: - '200': + "200": description: A list of Telegraf config members content: application/json: schema: - $ref: '#/components/schemas/ResourceMembers' + $ref: "#/components/schemas/ResourceMembers" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostTelegrafsIDMembers tags: - Telegrafs summary: Add a member to a Telegraf config parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -856,28 +856,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Member added to Telegraf config content: application/json: schema: - $ref: '#/components/schemas/ResourceMember' + $ref: "#/components/schemas/ResourceMember" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/telegrafs/{telegrafID}/members/{userID}': + $ref: "#/components/schemas/Error" + "/telegrafs/{telegrafID}/members/{userID}": delete: operationId: DeleteTelegrafsIDMembersID tags: - Telegrafs summary: Remove a member from a Telegraf config parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -891,22 +891,22 @@ paths: required: true description: The Telegraf config ID. responses: - '204': + "204": description: Member removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/telegrafs/{telegrafID}/owners': + $ref: "#/components/schemas/Error" + "/telegrafs/{telegrafID}/owners": get: operationId: GetTelegrafsIDOwners tags: - Telegrafs summary: List all owners of a Telegraf configuration parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -914,25 +914,25 @@ paths: required: true description: The Telegraf configuration ID. responses: - '200': + "200": description: Returns Telegraf configuration owners as a ResourceOwners list content: application/json: schema: - $ref: '#/components/schemas/ResourceOwners' + $ref: "#/components/schemas/ResourceOwners" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostTelegrafsIDOwners tags: - Telegrafs summary: Add an owner to a Telegraf configuration parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: telegrafID schema: @@ -945,28 +945,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Telegraf configuration owner was added. Returns a ResourceOwner that references the User. content: application/json: schema: - $ref: '#/components/schemas/ResourceOwner' + $ref: "#/components/schemas/ResourceOwner" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/telegrafs/{telegrafID}/owners/{userID}': + $ref: "#/components/schemas/Error" + "/telegrafs/{telegrafID}/owners/{userID}": delete: operationId: DeleteTelegrafsIDOwnersID tags: - Telegrafs summary: Remove an owner from a Telegraf config parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -980,22 +980,22 @@ paths: required: true description: The Telegraf config ID. responses: - '204': + "204": description: Owner removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/variables/{variableID}/labels': + $ref: "#/components/schemas/Error" + "/variables/{variableID}/labels": get: operationId: GetVariablesIDLabels tags: - Variables summary: List all labels for a variable parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: variableID schema: @@ -1003,25 +1003,25 @@ paths: required: true description: The variable ID. responses: - '200': + "200": description: A list of all labels for a variable content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' + $ref: "#/components/schemas/LabelsResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostVariablesIDLabels tags: - Variables summary: Add a label to a variable parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: variableID schema: @@ -1034,28 +1034,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: The newly added label content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' + $ref: "#/components/schemas/LabelResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/variables/{variableID}/labels/{labelID}': + $ref: "#/components/schemas/Error" + "/variables/{variableID}/labels/{labelID}": delete: operationId: DeleteVariablesIDLabelsID tags: - Variables summary: Delete a label from a variable parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: variableID schema: @@ -1069,20 +1069,20 @@ paths: required: true description: The label ID to delete. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Variable not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /write: post: operationId: PostWrite @@ -1158,7 +1158,7 @@ paths: airSensors,sensor_id=TLM0201 temperature=73.97038159354763,humidity=35.23103248356096,co=0.48445310567793615 1630424257000000000 airSensors,sensor_id=TLM0202 temperature=75.30007505999716,humidity=35.651929918691714,co=0.5141876544505826 1630424257000000000 parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Content-Encoding description: | @@ -1270,9 +1270,9 @@ paths: name: precision description: The precision for unix timestamps in the line protocol batch. schema: - $ref: '#/components/schemas/WritePrecision' + $ref: "#/components/schemas/WritePrecision" responses: - '204': + "204": description: | Success. @@ -1288,7 +1288,7 @@ paths: #### Related guides - [How to check for write errors](https://docs.influxdata.com/influxdb/v2.3/write-data/troubleshoot/). - '400': + "400": description: | Bad request. The response body contains detail about the error. @@ -1307,7 +1307,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LineProtocolError' + $ref: "#/components/schemas/LineProtocolError" examples: measurementSchemaFieldTypeConflict: summary: (Cloud) field type conflict thrown by an explicit bucket schema @@ -1318,12 +1318,12 @@ paths: summary: (OSS) organization not found value: code: invalid - message: 'failed to decode request body: organization not found' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '413': + message: "failed to decode request body: organization not found" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "413": description: | The request payload is too large. InfluxDB rejected the batch and did not write any data. @@ -1335,12 +1335,12 @@ paths: #### InfluxDB OSS: - - Returns this error only if the [Go (golang) `ioutil.ReadAll()`](https://pkg.go.dev/io/ioutil#ReadAll) function raises an error. + - Returns this error only if the [Go (golang) `io.ReadAll()`](https://pkg.go.dev/io/ioutil#ReadAll) function raises an error. - Returns `Content-Type: application/json` for this error. content: application/json: schema: - $ref: '#/components/schemas/LineProtocolLengthError' + $ref: "#/components/schemas/LineProtocolLengthError" examples: dataExceedsSizeLimitOSS: summary: InfluxDB OSS response @@ -1361,7 +1361,7 @@ paths:
nginx
- '429': + "429": description: | Too many requests. @@ -1384,9 +1384,9 @@ paths: schema: type: integer format: int32 - '500': - $ref: '#/components/responses/InternalServerError' - '503': + "500": + $ref: "#/components/responses/InternalServerError" + "503": description: | Service unavailable. @@ -1400,7 +1400,7 @@ paths: type: integer format: int32 default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /delete: post: operationId: PostDelete @@ -1472,9 +1472,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeletePredicateRequest' + $ref: "#/components/schemas/DeletePredicateRequest" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: org description: | @@ -1526,7 +1526,7 @@ paths: type: string description: The bucket ID. responses: - '204': + "204": description: | Success. @@ -1545,7 +1545,7 @@ paths: #### InfluxDB OSS - Deleted the data. - '400': + "400": description: | Bad request. The response body contains detail about the error. @@ -1556,21 +1556,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: orgNotFound: summary: Organization not found value: code: invalid - message: 'failed to decode request body: organization not found' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + message: "failed to decode request body: organization not found" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /labels: post: operationId: PostLabels @@ -1583,49 +1583,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelCreateRequest' + $ref: "#/components/schemas/LabelCreateRequest" responses: - '201': + "201": description: Success. The label was created. content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/LabelResponse" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" get: operationId: GetLabels tags: - Labels summary: List all labels parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: orgID description: The organization ID. schema: type: string responses: - '200': + "200": description: Success. The response body contains a list of labels. content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/LabelsResponse" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/labels/{labelID}': + $ref: "#/components/responses/GeneralServerError" + "/labels/{labelID}": get: operationId: GetLabelsID tags: - Labels summary: Retrieve a label parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: labelID schema: @@ -1633,16 +1633,16 @@ paths: required: true description: The ID of the label to update. responses: - '200': + "200": description: Success. The response body contains the label. content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/LabelResponse" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" patch: operationId: PatchLabelsID tags: @@ -1654,9 +1654,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelUpdate' + $ref: "#/components/schemas/LabelUpdate" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: labelID schema: @@ -1664,27 +1664,27 @@ paths: required: true description: The ID of the label to update. responses: - '200': + "200": description: Success. The response body contains the updated label. content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/LabelResponse" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" delete: operationId: DeleteLabelsID tags: - Labels summary: Delete a label parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: labelID schema: @@ -1692,24 +1692,24 @@ paths: required: true description: The ID of the label to delete. responses: - '204': + "204": description: Success. The delete was accepted. - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/dashboards/{dashboardID}': + $ref: "#/components/responses/GeneralServerError" + "/dashboards/{dashboardID}": get: operationId: GetDashboardsID tags: - Dashboards summary: Retrieve a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -1723,28 +1723,28 @@ paths: type: string enum: - properties - description: 'If `properties`, includes the cell view properties in the response.' + description: "If `properties`, includes the cell view properties in the response." responses: - '200': + "200": description: Retrieve a single dashboard content: application/json: schema: oneOf: - - $ref: '#/components/schemas/Dashboard' - - $ref: '#/components/schemas/DashboardWithViewProperties' - '404': + - $ref: "#/components/schemas/Dashboard" + - $ref: "#/components/schemas/DashboardWithViewProperties" + "404": description: Dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchDashboardsID tags: @@ -1760,16 +1760,16 @@ paths: title: PatchDashboardRequest properties: name: - description: 'optional, when provided will replace the name' + description: "optional, when provided will replace the name" type: string description: - description: 'optional, when provided will replace the description' + description: "optional, when provided will replace the description" type: string cells: - description: 'optional, when provided will replace all existing cells with the cells provided' - $ref: '#/components/schemas/CellWithViewProperties' + description: "optional, when provided will replace all existing cells with the cells provided" + $ref: "#/components/schemas/CellWithViewProperties" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -1777,31 +1777,31 @@ paths: required: true description: The ID of the dashboard to update. responses: - '200': + "200": description: Updated dashboard content: application/json: schema: - $ref: '#/components/schemas/Dashboard' - '404': + $ref: "#/components/schemas/Dashboard" + "404": description: Dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteDashboardsID tags: - Dashboards summary: Delete a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -1809,21 +1809,21 @@ paths: required: true description: The ID of the dashboard to update. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/cells': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/cells": put: operationId: PutDashboardsIDCells tags: @@ -1836,9 +1836,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cells' + $ref: "#/components/schemas/Cells" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -1846,24 +1846,24 @@ paths: required: true description: The ID of the dashboard to update. responses: - '201': + "201": description: Replaced dashboard cells content: application/json: schema: - $ref: '#/components/schemas/Dashboard' - '404': + $ref: "#/components/schemas/Dashboard" + "404": description: Dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostDashboardsIDCells tags: @@ -1876,9 +1876,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateCell' + $ref: "#/components/schemas/CreateCell" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -1886,25 +1886,25 @@ paths: required: true description: The ID of the dashboard to update. responses: - '201': + "201": description: Cell successfully added content: application/json: schema: - $ref: '#/components/schemas/Cell' - '404': + $ref: "#/components/schemas/Cell" + "404": description: Dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/cells/{cellID}': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/cells/{cellID}": patch: operationId: PatchDashboardsIDCellsID tags: @@ -1917,9 +1917,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CellUpdate' + $ref: "#/components/schemas/CellUpdate" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -1933,24 +1933,24 @@ paths: required: true description: The ID of the cell to update. responses: - '200': + "200": description: Updated dashboard cell content: application/json: schema: - $ref: '#/components/schemas/Cell' - '404': + $ref: "#/components/schemas/Cell" + "404": description: Cell or dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteDashboardsIDCellsID tags: @@ -1958,7 +1958,7 @@ paths: - Dashboards summary: Delete a dashboard cell parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -1972,21 +1972,21 @@ paths: required: true description: The ID of the cell to delete. responses: - '204': + "204": description: Cell successfully deleted - '404': + "404": description: Cell or dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/cells/{cellID}/view': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/cells/{cellID}/view": get: operationId: GetDashboardsIDCellsIDView tags: @@ -1995,7 +1995,7 @@ paths: - Views summary: Retrieve the view for a cell parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2009,24 +2009,24 @@ paths: required: true description: The cell ID. responses: - '200': + "200": description: A dashboard cells view content: application/json: schema: - $ref: '#/components/schemas/View' - '404': + $ref: "#/components/schemas/View" + "404": description: Cell or dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchDashboardsIDCellsIDView tags: @@ -2039,9 +2039,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/View' + $ref: "#/components/schemas/View" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2055,32 +2055,32 @@ paths: required: true description: The ID of the cell to update. responses: - '200': + "200": description: Updated cell view content: application/json: schema: - $ref: '#/components/schemas/View' - '404': + $ref: "#/components/schemas/View" + "404": description: Cell or dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/labels': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/labels": get: operationId: GetDashboardsIDLabels tags: - Dashboards summary: List all labels for a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2088,25 +2088,25 @@ paths: required: true description: The dashboard ID. responses: - '200': + "200": description: A list of all labels for a dashboard content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' + $ref: "#/components/schemas/LabelsResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostDashboardsIDLabels tags: - Dashboards summary: Add a label to a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2119,28 +2119,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: The label added to the dashboard content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' + $ref: "#/components/schemas/LabelResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/labels/{labelID}': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/labels/{labelID}": delete: operationId: DeleteDashboardsIDLabelsID tags: - Dashboards summary: Delete a label from a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2154,28 +2154,28 @@ paths: required: true description: The ID of the label to delete. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Dashboard not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/members': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/members": get: operationId: GetDashboardsIDMembers tags: - Dashboards summary: List all dashboard members parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2183,25 +2183,25 @@ paths: required: true description: The dashboard ID. responses: - '200': + "200": description: A list of users who have member privileges for a dashboard content: application/json: schema: - $ref: '#/components/schemas/ResourceMembers' + $ref: "#/components/schemas/ResourceMembers" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostDashboardsIDMembers tags: - Dashboards summary: Add a member to a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2214,28 +2214,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Added to dashboard members content: application/json: schema: - $ref: '#/components/schemas/ResourceMember' + $ref: "#/components/schemas/ResourceMember" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/members/{userID}': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/members/{userID}": delete: operationId: DeleteDashboardsIDMembersID tags: - Dashboards summary: Remove a member from a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -2249,22 +2249,22 @@ paths: required: true description: The dashboard ID. responses: - '204': + "204": description: Member removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/owners': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/owners": get: operationId: GetDashboardsIDOwners tags: - Dashboards summary: List all dashboard owners parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2272,25 +2272,25 @@ paths: required: true description: The dashboard ID. responses: - '200': + "200": description: A list of users who have owner privileges for a dashboard content: application/json: schema: - $ref: '#/components/schemas/ResourceOwners' + $ref: "#/components/schemas/ResourceOwners" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostDashboardsIDOwners tags: - Dashboards summary: Add an owner to a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: dashboardID schema: @@ -2303,28 +2303,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Added to dashboard owners content: application/json: schema: - $ref: '#/components/schemas/ResourceOwner' + $ref: "#/components/schemas/ResourceOwner" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/dashboards/{dashboardID}/owners/{userID}': + $ref: "#/components/schemas/Error" + "/dashboards/{dashboardID}/owners/{userID}": delete: operationId: DeleteDashboardsIDOwnersID tags: - Dashboards summary: Remove an owner from a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -2338,14 +2338,14 @@ paths: required: true description: The dashboard ID. responses: - '204': + "204": description: Owner removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /query/ast: post: operationId: PostQueryAst @@ -2395,7 +2395,7 @@ paths: Passing this to `/api/v2/query/ast` will return a successful response with a generated AST. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Content-Type schema: @@ -2407,10 +2407,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LanguageRequest' + $ref: "#/components/schemas/LanguageRequest" x-codeSamples: - lang: Shell - label: 'cURL: Analyze and generate AST for the query' + label: "cURL: Analyze and generate AST for the query" source: | curl --request POST "http://localhost:8086/api/v2/query/ast" \ --header 'Content-Type: application/json' \ @@ -2424,14 +2424,14 @@ paths: } EOL responses: - '200': + "200": description: | Success. The response body contains an Abstract Syntax Tree (AST) of the Flux query. content: application/json: schema: - $ref: '#/components/schemas/ASTResponse' + $ref: "#/components/schemas/ASTResponse" examples: successResponse: value: @@ -2553,7 +2553,7 @@ paths: end: line: 1 column: 47 - source: 'range(start: -5m)' + source: "range(start: -5m)" callee: type: Identifier location: @@ -2574,7 +2574,7 @@ paths: end: line: 1 column: 46 - source: 'start: -5m' + source: "start: -5m" properties: - type: Property location: @@ -2584,7 +2584,7 @@ paths: end: line: 1 column: 46 - source: 'start: -5m' + source: "start: -5m" key: type: Identifier location: @@ -2605,8 +2605,8 @@ paths: end: line: 1 column: 46 - source: '-5m' - operator: '-' + source: "-5m" + operator: "-" argument: type: DurationLiteral location: @@ -2714,7 +2714,7 @@ paths: line: 1 column: 108 source: r._measurement == "example-measurement" - operator: '==' + operator: "==" left: type: MemberExpression location: @@ -2758,7 +2758,7 @@ paths: column: 108 source: '"example-measurement"' value: example-measurement - '400': + "400": description: | Bad request. InfluxDB is unable to parse the request. @@ -2773,7 +2773,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: invalidASTValue: summary: Invalid AST @@ -2782,13 +2782,13 @@ paths: returns `invalid` and problem detail. value: code: invalid - message: 'invalid AST: loc 1:6-1:19: missing property key' + message: "invalid AST: loc 1:6-1:19: missing property key" default: description: Internal server error. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /query/suggestions: get: operationId: GetQuerySuggestions @@ -2821,9 +2821,9 @@ paths: - [List of all Flux functions](https://docs.influxdata.com/influxdb/v2.3/flux/v0.x/stdlib/all-functions/). parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: | Success. The response body contains a list of Flux query suggestions--function @@ -2831,7 +2831,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FluxSuggestions' + $ref: "#/components/schemas/FluxSuggestions" examples: successResponse: value: @@ -2845,7 +2845,7 @@ paths: _sortLimit: function column: invalid groupColumns: array - 'n': invalid + "n": invalid reducer: function tables: stream - name: _hourSelection @@ -2859,7 +2859,7 @@ paths: params: columns: array desc: bool - 'n': int + "n": int tables: stream - name: _window params: @@ -2890,7 +2890,7 @@ paths: - name: bottom params: columns: array - 'n': int + "n": int tables: stream - name: buckets params: @@ -2915,7 +2915,7 @@ paths: - name: chandeMomentumOscillator params: columns: array - 'n': int + "n": int tables: stream - name: columns params: @@ -2931,10 +2931,10 @@ paths: tables: stream - name: cov params: - 'on': array + "on": array pearsonr: bool x: invalid - 'y': invalid + "y": invalid - name: covariance params: columns: array @@ -2972,7 +2972,7 @@ paths: tables: stream - name: doubleEMA params: - 'n': int + "n": int tables: stream - name: drop params: @@ -2995,7 +2995,7 @@ paths: unit: duration - name: exponentialMovingAverage params: - 'n': int + "n": int tables: stream - name: fill params: @@ -3048,19 +3048,19 @@ paths: params: column: string groupColumns: array - 'n': int + "n": int tables: stream - name: highestCurrent params: column: string groupColumns: array - 'n': int + "n": int tables: stream - name: highestMax params: column: string groupColumns: array - 'n': int + "n": int tables: stream - name: histogram params: @@ -3082,7 +3082,7 @@ paths: params: column: string interval: duration - 'n': int + "n": int seasonality: int tables: stream timeColumn: string @@ -3111,16 +3111,16 @@ paths: - name: join params: method: string - 'on': array + "on": array tables: invalid - name: kaufmansAMA params: column: string - 'n': int + "n": int tables: stream - name: kaufmansER params: - 'n': int + "n": int tables: stream - name: keep params: @@ -3144,7 +3144,7 @@ paths: arr: array - name: limit params: - 'n': int + "n": int offset: int tables: stream - name: linearBins @@ -3163,19 +3163,19 @@ paths: params: column: string groupColumns: array - 'n': int + "n": int tables: stream - name: lowestCurrent params: column: string groupColumns: array - 'n': int + "n": int tables: stream - name: lowestMin params: column: string groupColumns: array - 'n': int + "n": int tables: stream - name: map params: @@ -3206,15 +3206,15 @@ paths: tables: stream - name: movingAverage params: - 'n': int + "n": int tables: stream - name: now params: {} - name: pearsonr params: - 'on': array + "on": array x: invalid - 'y': invalid + "y": invalid - name: pivot params: columnKey: array @@ -3241,7 +3241,7 @@ paths: - name: relativeStrengthIndex params: columns: array - 'n': int + "n": int tables: stream - name: rename params: @@ -3251,7 +3251,7 @@ paths: - name: sample params: column: string - 'n': int + "n": int pos: int tables: stream - name: set @@ -3310,7 +3310,7 @@ paths: tables: stream - name: tail params: - 'n': int + "n": int offset: int tables: stream - name: time @@ -3367,15 +3367,15 @@ paths: - name: top params: columns: array - 'n': int + "n": int tables: stream - name: tripleEMA params: - 'n': int + "n": int tables: stream - name: tripleExponentialDerivative params: - 'n': int + "n": int tables: stream - name: truncateTimeColumn params: @@ -3416,7 +3416,7 @@ paths: params: name: string tables: stream - '301': + "301": description: | Moved Permanently. InfluxData has moved the URL of the endpoint. @@ -3441,7 +3441,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" x-codeSamples: - lang: Shell label: cURL @@ -3449,7 +3449,7 @@ paths: curl --request GET "https://cloud2.influxdata.com/api/v2/query/suggestions" \ --header "Accept: application/json" \ --header "Authorization: Token INFLUX_API_TOKEN" - '/query/suggestions/{name}': + "/query/suggestions/{name}": get: operationId: GetQuerySuggestionsName tags: @@ -3474,7 +3474,7 @@ paths: - [List of all Flux functions](https://docs.influxdata.com/influxdb/v2.3/flux/v0.x/stdlib/all-functions/). parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: name schema: @@ -3484,14 +3484,14 @@ paths: A Flux Function name. Only returns functions with this name. responses: - '200': + "200": description: | Success. The response body contains the function name and parameters. content: application/json: schema: - $ref: '#/components/schemas/FluxSuggestion' + $ref: "#/components/schemas/FluxSuggestion" examples: successResponse: value: @@ -3499,14 +3499,14 @@ paths: params: column: string tables: stream - '500': + "500": description: | Internal server error. The value passed for _`name`_ may have been misspelled. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: internalError: summary: Invalid function @@ -3562,7 +3562,7 @@ paths: If you pass this in a request to the `/api/v2/analyze` endpoint, InfluxDB returns an empty `errors` list. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Content-Type schema: @@ -3574,9 +3574,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Query' + $ref: "#/components/schemas/Query" responses: - '200': + "200": description: | Success. The response body contains the list of `errors`. @@ -3584,7 +3584,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AnalyzeQueryResponse' + $ref: "#/components/schemas/AnalyzeQueryResponse" examples: missingQueryPropertyKey: summary: Missing property key error @@ -3607,7 +3607,7 @@ paths: column: 6 character: 0 message: missing property key - '400': + "400": description: | Bad request. InfluxDB is unable to parse the request. @@ -3622,11 +3622,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: invalidJSONStringValue: summary: Invalid JSON - description: 'If the request body contains invalid JSON, returns `invalid` and problem detail.' + description: "If the request body contains invalid JSON, returns `invalid` and problem detail." value: code: invalid message: 'invalid json: invalid character ''\'''' looking for beginning of value' @@ -3649,7 +3649,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: emptyJSONObject: summary: Empty JSON object in request body @@ -3660,7 +3660,7 @@ paths: message: An internal error has occurred - check server logs x-codeSamples: - lang: Shell - label: 'cURL: Analyze a Flux query' + label: "cURL: Analyze a Flux query" source: | curl -v --request POST \ "http://localhost:8086/api/v2/query/analyze" \ @@ -3696,13 +3696,13 @@ paths: - [Query with the InfluxDB API](https://docs.influxdata.com/influxdb/v2.3/query-data/execute-queries/influx-api/). - [Get started with Flux](https://docs.influxdata.com/flux/v0.x/get-started/) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Accept-Encoding description: The content encoding (usually a compression algorithm) that the client can understand. schema: type: string - description: 'The content coding. Use `gzip` for compressed data or `identity` for unmodified, uncompressed data.' + description: "The content coding. Use `gzip` for compressed data or `identity` for unmodified, uncompressed data." default: identity enum: - gzip @@ -3760,7 +3760,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Query' + $ref: "#/components/schemas/Query" application/vnd.flux: schema: type: string @@ -3769,7 +3769,7 @@ paths: |> range(start: -5m) |> filter(fn: (r) => r._measurement == "example-measurement") responses: - '200': + "200": description: Success. The response body contains query results. headers: Content-Encoding: @@ -3783,7 +3783,7 @@ paths: - gzip - identity Trace-Id: - description: 'The trace ID, if generated, of the request.' + description: "The trace ID, if generated, of the request." schema: type: string description: Trace ID of a request. @@ -3796,7 +3796,7 @@ paths: mean,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,east,A,15.43 mean,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,east,B,59.25 mean,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,east,C,52.62 - '400': + "400": description: | Bad request. The response body contains detail about the error. @@ -3807,18 +3807,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: orgNotFound: summary: Organization not found value: code: invalid - message: 'failed to decode request body: organization not found' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '429': + message: "failed to decode request body: organization not found" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "429": description: | #### InfluxDB Cloud: - returns this error if a **read** or **write** request exceeds your @@ -3835,10 +3835,10 @@ paths: schema: type: integer format: int32 - '500': - $ref: '#/components/responses/InternalServerError' + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /buckets: get: operationId: GetBuckets @@ -3876,10 +3876,10 @@ paths: - [Manage buckets](https://docs.influxdata.com/influxdb/v2.3/organizations/buckets/) parameters: - - $ref: '#/components/parameters/TraceSpan' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/After' + - $ref: "#/components/parameters/TraceSpan" + - $ref: "#/components/parameters/Offset" + - $ref: "#/components/parameters/Limit" + - $ref: "#/components/parameters/After" - in: query name: org description: | @@ -3929,14 +3929,14 @@ paths: schema: type: string responses: - '200': + "200": description: | Success. The response body contains a list of buckets. content: application/json: schema: - $ref: '#/components/schemas/Buckets' + $ref: "#/components/schemas/Buckets" examples: successResponse: value: @@ -3952,8 +3952,8 @@ paths: retentionRules: - type: expire everySeconds: 604800 - createdAt: '2022-03-15T17:22:33.72617939Z' - updatedAt: '2022-03-15T17:22:33.726179487Z' + createdAt: "2022-03-15T17:22:33.72617939Z" + updatedAt: "2022-03-15T17:22:33.726179487Z" links: labels: /api/v2/buckets/77ca9dace40a9bfc/labels members: /api/v2/buckets/77ca9dace40a9bfc/members @@ -3962,16 +3962,16 @@ paths: self: /api/v2/buckets/77ca9dace40a9bfc write: /api/v2/write?org=ORG_ID&bucket=77ca9dace40a9bfc labels: [] - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" x-codeSamples: - lang: Shell label: cURL @@ -4010,23 +4010,23 @@ paths: - [Create bucket](https://docs.influxdata.com/influxdb/v2.3/organizations/buckets/create-bucket/) - [Create bucket CLI reference](https://docs.influxdata.com/influxdb/v2.3/reference/cli/influx/bucket/create) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: Bucket to create required: true content: application/json: schema: - $ref: '#/components/schemas/PostBucketRequest' + $ref: "#/components/schemas/PostBucketRequest" responses: - '201': + "201": description: | Success. The bucket was created. content: application/json: schema: - $ref: '#/components/schemas/Bucket' + $ref: "#/components/schemas/Bucket" examples: successResponse: value: @@ -4039,8 +4039,8 @@ paths: retentionRules: - type: expire everySeconds: 2592000 - createdAt: '2022-08-03T23:04:41.073704121Z' - updatedAt: '2022-08-03T23:04:41.073704228Z' + createdAt: "2022-08-03T23:04:41.073704121Z" + updatedAt: "2022-08-03T23:04:41.073704228Z" links: labels: /api/v2/buckets/37407e232b3911d8/labels members: /api/v2/buckets/37407e232b3911d8/members @@ -4049,16 +4049,16 @@ paths: self: /api/v2/buckets/37407e232b3911d8 write: /api/v2/write?org=INFLUX_ORG_ID&bucket=37407e232b3911d8 labels: [] - '400': + "400": description: | Bad request. content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': - $ref: '#/components/responses/AuthorizationError' - '403': + $ref: "#/components/schemas/Error" + "401": + $ref: "#/components/responses/AuthorizationError" + "403": description: | Forbidden. The bucket quota is exceeded. @@ -4072,29 +4072,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: quotaExceeded: summary: Bucket quota exceeded value: code: forbidden message: creating bucket would exceed quota - '422': + "422": description: | Unprocessable Entity. The request body failed validation. content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Error" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" x-codeSamples: - lang: Shell label: cURL @@ -4114,7 +4114,7 @@ paths: } ] }' - '/buckets/{bucketID}': + "/buckets/{bucketID}": get: operationId: GetBucketsID tags: @@ -4125,7 +4125,7 @@ paths: Use this endpoint to retrieve information for a specific bucket. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4134,14 +4134,14 @@ paths: description: | The ID of the bucket to retrieve. responses: - '200': + "200": description: | Success. The response body contains the bucket information. content: application/json: schema: - $ref: '#/components/schemas/Bucket' + $ref: "#/components/schemas/Bucket" examples: successResponse: value: @@ -4154,8 +4154,8 @@ paths: retentionRules: - type: expire everySeconds: 2592000 - createdAt: '2022-08-03T23:04:41.073704121Z' - updatedAt: '2022-08-03T23:04:41.073704228Z' + createdAt: "2022-08-03T23:04:41.073704121Z" + updatedAt: "2022-08-03T23:04:41.073704228Z" links: labels: /api/v2/buckets/37407e232b3911d8/labels members: /api/v2/buckets/37407e232b3911d8/members @@ -4164,16 +4164,16 @@ paths: self: /api/v2/buckets/37407e232b3911d8 write: /api/v2/write?org=INFLUX_ORG_ID&bucket=37407e232b3911d8 labels: [] - '401': - $ref: '#/components/responses/AuthorizationError' - '404': + "401": + $ref: "#/components/responses/AuthorizationError" + "404": description: | Not found. Bucket not found. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: notFound: summary: | @@ -4181,14 +4181,14 @@ paths: value: code: not found message: bucket not found - '500': - $ref: '#/components/responses/InternalServerError' + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchBucketsID tags: @@ -4218,9 +4218,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchBucketRequest' + $ref: "#/components/schemas/PatchBucketRequest" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4228,12 +4228,12 @@ paths: required: true description: The bucket ID. responses: - '200': + "200": description: An updated bucket content: application/json: schema: - $ref: '#/components/schemas/Bucket' + $ref: "#/components/schemas/Bucket" examples: successResponse: value: @@ -4246,8 +4246,8 @@ paths: retentionRules: - type: expire everySeconds: 2592000 - createdAt: '2022-08-03T23:04:41.073704121Z' - updatedAt: '2022-08-07T22:49:49.422962913Z' + createdAt: "2022-08-03T23:04:41.073704121Z" + updatedAt: "2022-08-07T22:49:49.422962913Z" links: labels: /api/v2/buckets/37407e232b3911d8/labels members: /api/v2/buckets/37407e232b3911d8/members @@ -4256,13 +4256,13 @@ paths: self: /api/v2/buckets/37407e232b3911d8 write: /api/v2/write?org=INFLUX_ORG_ID&bucket=37407e232b3911d8 labels: [] - '400': + "400": description: | Bad Request. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: invalidJSONStringValue: summary: Invalid JSON @@ -4272,15 +4272,15 @@ paths: value: code: invalid message: 'invalid json: invalid character ''\'''' looking for beginning of value' - '401': - $ref: '#/components/responses/AuthorizationError' - '403': + "401": + $ref: "#/components/responses/AuthorizationError" + "403": description: | Forbidden. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: invalidRetention: summary: | @@ -4289,14 +4289,14 @@ paths: value: code: forbidden message: provided retention exceeds orgs maximum retention duration - '404': + "404": description: | Not found. Bucket not found. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: notFound: summary: | @@ -4304,14 +4304,14 @@ paths: value: code: not found message: bucket not found - '500': - $ref: '#/components/responses/InternalServerError' + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" x-codeSamples: - lang: Shell label: cURL @@ -4359,7 +4359,7 @@ paths: - [Delete a bucket](https://docs.influxdata.com/influxdb/v2.3/organizations/buckets/delete-bucket/#delete-a-bucket-in-the-influxdb-ui) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4369,7 +4369,7 @@ paths: Bucket ID. The ID of the bucket to delete. responses: - '204': + "204": description: | Success. @@ -4378,13 +4378,13 @@ paths: #### InfluxDB OSS - The bucket is deleted. - '400': + "400": description: | Bad Request. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: invalidID: summary: | @@ -4392,16 +4392,16 @@ paths: value: code: invalid message: id must have a length of 16 bytes - '401': - $ref: '#/components/responses/AuthorizationError' - '404': + "401": + $ref: "#/components/responses/AuthorizationError" + "404": description: | Not found. Bucket not found. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: notFound: summary: | @@ -4409,14 +4409,14 @@ paths: value: code: not found message: bucket not found - '500': - $ref: '#/components/responses/InternalServerError' + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" x-codeSamples: - lang: Shell label: cURL @@ -4424,7 +4424,7 @@ paths: curl --request DELETE "http://localhost:8086/api/v2/buckets/BUCKET_ID" \ --header "Authorization: Token INFLUX_TOKEN" \ --header 'Accept: application/json' - '/buckets/{bucketID}/labels': + "/buckets/{bucketID}/labels": get: operationId: GetBucketsIDLabels tags: @@ -4445,7 +4445,7 @@ paths: - Use the [`/api/v2/labels` InfluxDB API endpoint](#tag/Labels) to retrieve and manage labels. - [Manage labels in the InfluxDB UI](https://docs.influxdata.com/influxdb/v2.3/visualize-data/labels/) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4454,14 +4454,14 @@ paths: description: | The ID of the bucket to retrieve labels for. responses: - '200': + "200": description: | Success. The response body contains a list of all labels for the bucket. content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' + $ref: "#/components/schemas/LabelsResponse" examples: successResponse: value: @@ -4471,20 +4471,20 @@ paths: - id: 09cbd068e7ebb000 orgID: INFLUX_ORG_ID name: production_buckets - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostBucketsIDLabels tags: @@ -4509,7 +4509,7 @@ paths: - Use the [`/api/v2/labels` InfluxDB API endpoint](#tag/Labels) to retrieve and manage labels. - [Manage labels in the InfluxDB UI](https://docs.influxdata.com/influxdb/v2.3/visualize-data/labels/) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4524,16 +4524,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: | Success. The response body contains the label information. content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' + $ref: "#/components/schemas/LabelResponse" examples: successResponse: value: @@ -4543,41 +4543,41 @@ paths: id: 09cbd068e7ebb000 orgID: INFLUX_ORG_ID name: production_buckets - '400': - $ref: '#/components/responses/BadRequestError' + "400": + $ref: "#/components/responses/BadRequestError" examples: invalidRequest: summary: The `labelID` is missing from the request body. value: code: invalid message: label id is required - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '422': + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "422": description: | Unprocessable entity. Label already exists on the resource. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: conflictingResource: summary: | Label already exists on the resource. value: code: conflict - message: 'Cannot add label, label already exists on resource' - '500': - $ref: '#/components/responses/InternalServerError' + message: "Cannot add label, label already exists on resource" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" x-codeSamples: - lang: Shell label: cURL @@ -4589,14 +4589,14 @@ paths: --data '{ "labelID": "09cbd068e7ebb000" }' - '/buckets/{bucketID}/labels/{labelID}': + "/buckets/{bucketID}/labels/{labelID}": delete: operationId: DeleteBucketsIDLabelsID tags: - Buckets summary: Delete a label from a bucket parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4610,21 +4610,21 @@ paths: required: true description: The ID of the label to delete. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Bucket not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/buckets/{bucketID}/members': + $ref: "#/components/schemas/Error" + "/buckets/{bucketID}/members": get: operationId: GetBucketsIDMembers tags: @@ -4646,7 +4646,7 @@ paths: - [Manage users](https://docs.influxdata.com/influxdb/v2.3/users/) - [Manage members](https://docs.influxdata.com/influxdb/v2.3/organizations/members/) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4655,14 +4655,14 @@ paths: description: | The ID of the bucket to retrieve users for. responses: - '200': + "200": description: | Success. The response body contains a list of all users for the bucket. content: application/json: schema: - $ref: '#/components/schemas/ResourceMembers' + $ref: "#/components/schemas/ResourceMembers" examples: successResponse: value: @@ -4681,20 +4681,20 @@ paths: id: 09cfb87051cbe000 name: example_user_2 status: active - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostBucketsIDMembers tags: @@ -4716,7 +4716,7 @@ paths: - [Manage users](https://docs.influxdata.com/influxdb/v2.3/users/) - [Manage members](https://docs.influxdata.com/influxdb/v2.3/organizations/members/) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4730,16 +4730,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: | Success. The response body contains the user information. content: application/json: schema: - $ref: '#/components/schemas/ResourceMember' + $ref: "#/components/schemas/ResourceMember" examples: successResponse: value: @@ -4749,26 +4749,26 @@ paths: id: 09cfb87051cbe000 name: example_user_1 status: active - '400': - $ref: '#/components/responses/BadRequestError' + "400": + $ref: "#/components/responses/BadRequestError" examples: invalidRequest: summary: The `userID` is missing from the request body. value: code: invalid message: user id missing or invalid - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" x-codeSamples: - lang: Shell label: cURL @@ -4780,7 +4780,7 @@ paths: --data '{ "id": "09cfb87051cbe000" } - '/buckets/{bucketID}/members/{userID}': + "/buckets/{bucketID}/members/{userID}": delete: operationId: DeleteBucketsIDMembersID tags: @@ -4797,7 +4797,7 @@ paths: - [Manage users](https://docs.influxdata.com/influxdb/v2.3/users/) - [Manage members](https://docs.influxdata.com/influxdb/v2.3/organizations/members/) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -4813,30 +4813,30 @@ paths: description: | The ID of the bucket to remove a user from. responses: - '204': + "204": description: | Success. The user is no longer a member of the bucket. - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/buckets/{bucketID}/owners': + $ref: "#/components/schemas/Error" + "/buckets/{bucketID}/owners": get: operationId: GetBucketsIDOwners tags: - Buckets summary: List all owners of a bucket parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4844,25 +4844,25 @@ paths: required: true description: The bucket ID. responses: - '200': + "200": description: A list of bucket owners content: application/json: schema: - $ref: '#/components/schemas/ResourceOwners' + $ref: "#/components/schemas/ResourceOwners" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostBucketsIDOwners tags: - Buckets summary: Add an owner to a bucket parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -4875,28 +4875,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Success. The user is an owner of the bucket content: application/json: schema: - $ref: '#/components/schemas/ResourceOwner' + $ref: "#/components/schemas/ResourceOwner" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/buckets/{bucketID}/owners/{userID}': + $ref: "#/components/schemas/Error" + "/buckets/{bucketID}/owners/{userID}": delete: operationId: DeleteBucketsIDOwnersID tags: - Buckets summary: Remove an owner from a bucket parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -4910,14 +4910,14 @@ paths: required: true description: The bucket ID. responses: - '204': + "204": description: Owner removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /orgs: get: operationId: GetOrgs @@ -4939,10 +4939,10 @@ paths: - [View organizations](https://docs.influxdata.com/influxdb/v2.3/organizations/view-orgs/). parameters: - - $ref: '#/components/parameters/TraceSpan' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Descending' + - $ref: "#/components/parameters/TraceSpan" + - $ref: "#/components/parameters/Offset" + - $ref: "#/components/parameters/Limit" + - $ref: "#/components/parameters/Descending" - in: query name: org schema: @@ -4965,22 +4965,22 @@ paths: A user ID. Only returns organizations where this user is a member or owner. responses: - '200': + "200": description: Success. The response body contains a list of organizations. content: application/json: schema: - $ref: '#/components/schemas/Organizations' - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Organizations" + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" post: operationId: PostOrgs tags: @@ -4993,34 +4993,34 @@ paths: - Doesn't allow you to use this endpoint to create organizations. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: The organization to create. required: true content: application/json: schema: - $ref: '#/components/schemas/PostOrganizationRequest' + $ref: "#/components/schemas/PostOrganizationRequest" responses: - '201': + "201": description: | Success. The organization is created. The response body contains the new organization. content: application/json: schema: - $ref: '#/components/schemas/Organization' - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Organization" + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/orgs/{orgID}': + $ref: "#/components/responses/GeneralServerError" + "/orgs/{orgID}": get: operationId: GetOrgsID tags: @@ -5028,7 +5028,7 @@ paths: - Security and access endpoints summary: Retrieve an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5036,18 +5036,18 @@ paths: required: true description: The ID of the organization to get. responses: - '200': + "200": description: Organization details content: application/json: schema: - $ref: '#/components/schemas/Organization' + $ref: "#/components/schemas/Organization" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchOrgsID tags: @@ -5059,9 +5059,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchOrganizationRequest' + $ref: "#/components/schemas/PatchOrganizationRequest" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5069,25 +5069,25 @@ paths: required: true description: The ID of the organization to get. responses: - '200': + "200": description: Organization updated content: application/json: schema: - $ref: '#/components/schemas/Organization' + $ref: "#/components/schemas/Organization" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteOrgsID tags: - Organizations summary: Delete an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5095,21 +5095,21 @@ paths: required: true description: The ID of the organization to delete. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Organization not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/orgs/{orgID}/secrets': + $ref: "#/components/schemas/Error" + "/orgs/{orgID}/secrets": get: operationId: GetOrgsIDSecrets tags: @@ -5117,7 +5117,7 @@ paths: - Security and access endpoints summary: List all secret keys for an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5125,25 +5125,25 @@ paths: required: true description: The organization ID. responses: - '200': + "200": description: A list of all secret keys content: application/json: schema: - $ref: '#/components/schemas/SecretKeysResponse' + $ref: "#/components/schemas/SecretKeysResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchOrgsIDSecrets tags: - Secrets summary: Update secrets in an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5156,17 +5156,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Secrets' + $ref: "#/components/schemas/Secrets" responses: - '204': + "204": description: Keys successfully patched default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/orgs/{orgID}/members': + $ref: "#/components/schemas/Error" + "/orgs/{orgID}/members": get: operationId: GetOrgsIDMembers tags: @@ -5174,7 +5174,7 @@ paths: - Security and access endpoints summary: List all members of an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5182,31 +5182,31 @@ paths: required: true description: The organization ID. responses: - '200': + "200": description: A list of organization members content: application/json: schema: - $ref: '#/components/schemas/ResourceMembers' - '404': + $ref: "#/components/schemas/ResourceMembers" + "404": description: Organization not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostOrgsIDMembers tags: - Organizations summary: Add a member to an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5219,21 +5219,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Added to organization created content: application/json: schema: - $ref: '#/components/schemas/ResourceMember' + $ref: "#/components/schemas/ResourceMember" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/orgs/{orgID}/members/{userID}': + $ref: "#/components/schemas/Error" + "/orgs/{orgID}/members/{userID}": delete: operationId: DeleteOrgsIDMembersID tags: @@ -5241,7 +5241,7 @@ paths: - Security and access endpoints summary: Remove a member from an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -5255,15 +5255,15 @@ paths: required: true description: The organization ID. responses: - '204': + "204": description: Member removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/orgs/{orgID}/owners': + $ref: "#/components/schemas/Error" + "/orgs/{orgID}/owners": get: operationId: GetOrgsIDOwners tags: @@ -5273,7 +5273,7 @@ paths: description: | Retrieves a list of all owners of an organization. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5282,24 +5282,24 @@ paths: description: | The ID of the organization to list owners for. responses: - '200': + "200": description: A list of organization owners content: application/json: schema: - $ref: '#/components/schemas/ResourceOwners' - '404': + $ref: "#/components/schemas/ResourceOwners" + "404": description: Organization not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostOrgsIDOwners tags: @@ -5325,7 +5325,7 @@ paths: - [Authorizations](#tag/Authorizations) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5338,23 +5338,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: | Success. The user is an owner of the organization. The response body contains the owner with role and user detail. content: application/json: schema: - $ref: '#/components/schemas/ResourceOwner' + $ref: "#/components/schemas/ResourceOwner" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/orgs/{orgID}/owners/{userID}': + $ref: "#/components/schemas/Error" + "/orgs/{orgID}/owners/{userID}": delete: operationId: DeleteOrgsIDOwnersID tags: @@ -5362,7 +5362,7 @@ paths: - Security and access endpoints summary: Remove an owner from an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -5376,15 +5376,15 @@ paths: required: true description: The organization ID. responses: - '204': + "204": description: Owner removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/orgs/{orgID}/secrets/delete': + $ref: "#/components/schemas/Error" + "/orgs/{orgID}/secrets/delete": post: deprecated: true operationId: PostOrgsIDSecrets @@ -5393,7 +5393,7 @@ paths: - Security and access endpoints summary: Delete secrets from an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5406,17 +5406,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SecretKeys' + $ref: "#/components/schemas/SecretKeys" responses: - '204': + "204": description: Keys successfully patched default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/orgs/{orgID}/secrets/{secretID}': + $ref: "#/components/schemas/Error" + "/orgs/{orgID}/secrets/{secretID}": delete: operationId: DeleteOrgsIDSecretsID tags: @@ -5424,7 +5424,7 @@ paths: - Security and access endpoints summary: Delete a secret from an organization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: orgID schema: @@ -5438,11 +5438,11 @@ paths: required: true description: The secret ID. responses: - '204': + "204": description: Keys successfully deleted default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /resources: get: operationId: GetResources @@ -5451,9 +5451,9 @@ paths: - System information endpoints summary: List all known resources parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: All resources targets content: application/json: @@ -5466,7 +5466,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /stacks: get: operationId: ListStacks @@ -5528,7 +5528,7 @@ paths: summary: Find a stack with the ID value: 09bd87cd33be3000 responses: - '200': + "200": description: Success. The response body contains the list of stacks. content: application/json: @@ -5538,8 +5538,8 @@ paths: stacks: type: array items: - $ref: '#/components/schemas/Stack' - '400': + $ref: "#/components/schemas/Stack" + "400": description: | Bad request. The response body contains detail about the error. @@ -5550,7 +5550,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: orgIdMissing: summary: The orgID query parameter is missing @@ -5561,17 +5561,17 @@ paths: summary: The org or orgID passed doesn't own the token passed in the header value: code: invalid - message: 'failed to decode request body: organization not found' - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + message: "failed to decode request body: organization not found" + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: CreateStack tags: @@ -5618,15 +5618,15 @@ paths: items: type: string responses: - '201': + "201": description: Success. Returns the newly created stack. content: application/json: schema: - $ref: '#/components/schemas/Stack' - '401': - $ref: '#/components/responses/AuthorizationError' - '422': + $ref: "#/components/schemas/Stack" + "401": + $ref: "#/components/responses/AuthorizationError" + "422": description: | Unprocessable entity. @@ -5637,16 +5637,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Error" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/stacks/{stack_id}': + $ref: "#/components/schemas/Error" + "/stacks/{stack_id}": get: operationId: ReadStack tags: @@ -5660,18 +5660,18 @@ paths: type: string description: The identifier of the stack. responses: - '200': + "200": description: Returns the stack. content: application/json: schema: - $ref: '#/components/schemas/Stack' + $ref: "#/components/schemas/Stack" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: UpdateStack tags: @@ -5719,18 +5719,18 @@ paths: - kind - resourceID responses: - '200': + "200": description: Returns the updated stack. content: application/json: schema: - $ref: '#/components/schemas/Stack' + $ref: "#/components/schemas/Stack" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteStack tags: @@ -5750,15 +5750,15 @@ paths: type: string description: The identifier of the organization. responses: - '204': + "204": description: The stack and its associated resources were deleted. default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/stacks/{stack_id}/uninstall': + $ref: "#/components/schemas/Error" + "/stacks/{stack_id}/uninstall": post: operationId: UninstallStack tags: @@ -5772,18 +5772,18 @@ paths: type: string description: The identifier of the stack. responses: - '200': + "200": description: Returns the uninstalled stack. content: application/json: schema: - $ref: '#/components/schemas/Stack' + $ref: "#/components/schemas/Stack" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /templates/apply: post: operationId: ApplyTemplate @@ -5842,7 +5842,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TemplateApply' + $ref: "#/components/schemas/TemplateApply" examples: skipKindAction: summary: Skip all bucket and task resources in the provided templates @@ -5857,7 +5857,7 @@ paths: kind: Task templates: - contents: - - '[object Object]': null + - "[object Object]": null skipResourceAction: summary: Skip specific resources in the provided templates value: @@ -5898,7 +5898,7 @@ paths: envRef: key: linux-cpu-label spec: - color: '#326BBA' + color: "#326BBA" name: inputs.cpu - contents: - apiVersion: influxdata.com/v2alpha1 @@ -5909,13 +5909,13 @@ paths: key: docker-bucket application/x-jsonnet: schema: - $ref: '#/components/schemas/TemplateApply' + $ref: "#/components/schemas/TemplateApply" text/yml: schema: - $ref: '#/components/schemas/TemplateApply' + $ref: "#/components/schemas/TemplateApply" x-codeSamples: - lang: Shell - label: 'cURL: Dry run with a remote template' + label: "cURL: Dry run with a remote template" source: | curl --request POST "http://localhost:8086/api/v2/templates/apply" \ --header "Authorization: Token INFLUX_API_TOKEN" \ @@ -5931,7 +5931,7 @@ paths: } EOF - lang: Shell - label: 'cURL: Apply with secret values' + label: "cURL: Apply with secret values" source: | curl "http://localhost:8086/api/v2/templates/apply" \ --header "Authorization: Token INFLUX_API_TOKEN" \ @@ -5949,7 +5949,7 @@ paths: } EOF - lang: Shell - label: 'cURL: Apply template objects with environment references' + label: "cURL: Apply template objects with environment references" source: | curl --request POST "http://localhost:8086/api/v2/templates/apply" \ --header "Authorization: Token INFLUX_API_TOKEN" \ @@ -6010,7 +6010,7 @@ paths: } EOF responses: - '200': + "200": description: | Success. The template dry run succeeded. @@ -6022,8 +6022,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TemplateSummary' - '201': + $ref: "#/components/schemas/TemplateSummary" + "201": description: | Success. The template applied successfully. @@ -6033,8 +6033,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TemplateSummary' - '422': + $ref: "#/components/schemas/TemplateSummary" + "422": description: | Unprocessable entity. @@ -6047,7 +6047,7 @@ paths: application/json: schema: allOf: - - $ref: '#/components/schemas/TemplateSummary' + - $ref: "#/components/schemas/TemplateSummary" - type: object required: - message @@ -6057,7 +6057,7 @@ paths: type: string code: type: string - '500': + "500": description: | Internal server error. @@ -6069,10 +6069,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: createExceedsQuota: - summary: 'InfluxDB Cloud: Creating resource would exceed quota.' + summary: "InfluxDB Cloud: Creating resource would exceed quota." value: code: internal error message: "resource_type=\"tasks\" err=\"failed to apply resource\"\n\tmetadata_name=\"alerting-gates-b84003\" err_msg=\"failed to create tasks[\\\"alerting-gates-b84003\\\"]: creating task would exceed quota\"" @@ -6081,7 +6081,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /templates/export: post: operationId: ExportTemplate @@ -6095,25 +6095,25 @@ paths: application/json: schema: oneOf: - - $ref: '#/components/schemas/TemplateExportByID' - - $ref: '#/components/schemas/TemplateExportByName' + - $ref: "#/components/schemas/TemplateExportByID" + - $ref: "#/components/schemas/TemplateExportByName" responses: - '200': + "200": description: The template was created successfully. Returns the newly created template. content: application/json: schema: - $ref: '#/components/schemas/Template' + $ref: "#/components/schemas/Template" application/x-yaml: schema: - $ref: '#/components/schemas/Template' + $ref: "#/components/schemas/Template" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/tasks/{taskID}/runs': + $ref: "#/components/schemas/Error" + "/tasks/{taskID}/runs": get: operationId: GetTasksIDRuns tags: @@ -6125,7 +6125,7 @@ paths: To limit which task runs are returned, pass query parameters in your request. If no query parameters are passed, InfluxDB returns all task runs up to the default `limit`. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6165,24 +6165,24 @@ paths: A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp)). Only returns runs scheduled before this time. responses: - '200': + "200": description: Success. The response body contains the list of task runs. content: application/json: schema: - $ref: '#/components/schemas/Runs' - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Runs" + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" post: operationId: PostTasksIDRuns tags: - Data I/O endpoints - Tasks - summary: 'Start a task run, overriding the schedule' + summary: "Start a task run, overriding the schedule" description: | Schedules a task run to start immediately, ignoring scheduled runs. @@ -6193,7 +6193,7 @@ paths: To _retry_ a previous run (and avoid creating a new run), use the [`POST /api/v2/tasks/{taskID}/runs/{runID}/retry`](#operation/PostTasksIDRunsIDRetry) endpoint. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6203,21 +6203,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RunManually' + $ref: "#/components/schemas/RunManually" responses: - '201': + "201": description: Success. The run is scheduled to start. content: application/json: schema: - $ref: '#/components/schemas/Run' - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Run" + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/tasks/{taskID}/runs/{runID}': + $ref: "#/components/responses/GeneralServerError" + "/tasks/{taskID}/runs/{runID}": get: operationId: GetTasksIDRunsID tags: @@ -6228,7 +6228,7 @@ paths: Use this endpoint to retrieve detail and logs for a specific task run. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6242,12 +6242,12 @@ paths: required: true description: The ID of the run to retrieve. responses: - '200': + "200": description: Success. The response body contains the task run. content: application/json: schema: - $ref: '#/components/schemas/Run' + $ref: "#/components/schemas/Run" examples: runSuccess: summary: A successful task run. @@ -6260,27 +6260,27 @@ paths: id: 09b070dadaa7d000 taskID: 0996e56b2f378000 status: success - scheduledFor: '2022-07-18T14:46:06Z' - startedAt: '2022-07-18T14:46:07.16222Z' - finishedAt: '2022-07-18T14:46:07.308254Z' - requestedAt: '2022-07-18T14:46:06Z' + scheduledFor: "2022-07-18T14:46:06Z" + startedAt: "2022-07-18T14:46:07.16222Z" + finishedAt: "2022-07-18T14:46:07.308254Z" + requestedAt: "2022-07-18T14:46:06Z" log: - runID: 09b070dadaa7d000 - time: '2022-07-18T14:46:07.101231Z' + time: "2022-07-18T14:46:07.101231Z" message: 'Started task from script: "option task = {name: \"task1\", every: 30m} from(bucket: \"iot_center\") |> range(start: -90d) |> filter(fn: (r) => r._measurement == \"environment\") |> aggregateWindow(every: 1h, fn: mean)"' - runID: 09b070dadaa7d000 - time: '2022-07-18T14:46:07.242859Z' + time: "2022-07-18T14:46:07.242859Z" message: Completed(success) - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" delete: operationId: DeleteTasksIDRunsID tags: @@ -6295,7 +6295,7 @@ paths: - Doesn't support this operation. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6309,7 +6309,7 @@ paths: required: true description: The ID of the task run to cancel. responses: - '204': + "204": description: | Success. The `DELETE` is accepted and the run will be cancelled. @@ -6317,13 +6317,13 @@ paths: - Doesn't support this operation. - Doesn't return this status. - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '405': + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "405": description: | Method not allowed. @@ -6337,12 +6337,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Error" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/tasks/{taskID}/runs/{runID}/retry': + $ref: "#/components/responses/GeneralServerError" + "/tasks/{taskID}/runs/{runID}/retry": post: operationId: PostTasksIDRunsIDRetry tags: @@ -6362,7 +6362,7 @@ paths: schema: type: object parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6376,12 +6376,12 @@ paths: required: true description: The ID of the task run to retry. responses: - '200': + "200": description: Success. The response body contains the queued run. content: application/json: schema: - $ref: '#/components/schemas/Run' + $ref: "#/components/schemas/Run" examples: retryTaskRun: summary: A task run scheduled to retry @@ -6394,9 +6394,9 @@ paths: id: 09d60ffe08738000 taskID: 09a776832f381000 status: scheduled - scheduledFor: '2022-08-15T00:00:00Z' - requestedAt: '2022-08-16T20:05:11.84145Z' - '400': + scheduledFor: "2022-08-15T00:00:00Z" + requestedAt: "2022-08-16T20:05:11.84145Z" + "400": description: | Bad request. The response body contains detail about the error. @@ -6407,22 +6407,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: inactiveTask: summary: Can't retry an inactive task value: code: invalid - message: 'failed to retry run: inactive task' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + message: "failed to retry run: inactive task" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/tasks/{taskID}/logs': + $ref: "#/components/responses/GeneralServerError" + "/tasks/{taskID}/logs": get: operationId: GetTasksIDLogs tags: @@ -6437,7 +6437,7 @@ paths: Use this endpoint to retrieve only the log events for a task, without additional task metadata. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6445,7 +6445,7 @@ paths: required: true description: The task ID. responses: - '200': + "200": description: | Success. The response body contains an `events` list with logs for the task. Each log event `message` contains detail about the event. @@ -6453,42 +6453,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Logs' + $ref: "#/components/schemas/Logs" examples: taskSuccess: summary: Events for a successful task run. value: events: - runID: 09b070dadaa7d000 - time: '2022-07-18T14:46:07.101231Z' + time: "2022-07-18T14:46:07.101231Z" message: 'Started task from script: "option task = {name: \"task1\", every: 30m} from(bucket: \"iot_center\") |> range(start: -90d) |> filter(fn: (r) => r._measurement == \"environment\") |> aggregateWindow(every: 1h, fn: mean)"' - runID: 09b070dadaa7d000 - time: '2022-07-18T14:46:07.242859Z' + time: "2022-07-18T14:46:07.242859Z" message: Completed(success) taskFailure: summary: Events for a failed task run. value: events: - runID: 09a946fc3167d000 - time: '2022-07-13T07:06:54.198167Z' + time: "2022-07-13T07:06:54.198167Z" message: 'Started task from script: "option task = {name: \"test task\", every: 3d, offset: 0s}"' - runID: 09a946fc3167d000 - time: '2022-07-13T07:07:13.104037Z' + time: "2022-07-13T07:07:13.104037Z" message: Completed(failed) - runID: 09a946fc3167d000 - time: '2022-07-13T08:24:37.115323Z' + time: "2022-07-13T08:24:37.115323Z" message: 'error exhausting result iterator: error in query specification while starting program: this Flux script returns no streaming data. Consider adding a "yield" or invoking streaming functions directly, without performing an assignment' - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/tasks/{taskID}/runs/{runID}/logs': + $ref: "#/components/responses/GeneralServerError" + "/tasks/{taskID}/runs/{runID}/logs": get: operationId: GetTasksIDRunsIDLogs tags: @@ -6500,7 +6500,7 @@ paths: Use this endpoint to help analyze task performance and troubleshoot failed task runs. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6514,7 +6514,7 @@ paths: required: true description: The ID of the run to get logs for. responses: - '200': + "200": description: | Success. The response body contains an `events` list with logs for the task run. Each log event `message` contains detail about the event. @@ -6522,42 +6522,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Logs' + $ref: "#/components/schemas/Logs" examples: taskSuccess: summary: Events for a successful task run. value: events: - runID: 09b070dadaa7d000 - time: '2022-07-18T14:46:07.101231Z' + time: "2022-07-18T14:46:07.101231Z" message: 'Started task from script: "option task = {name: \"task1\", every: 30m} from(bucket: \"iot_center\") |> range(start: -90d) |> filter(fn: (r) => r._measurement == \"environment\") |> aggregateWindow(every: 1h, fn: mean)"' - runID: 09b070dadaa7d000 - time: '2022-07-18T14:46:07.242859Z' + time: "2022-07-18T14:46:07.242859Z" message: Completed(success) taskFailure: summary: Events for a failed task. value: events: - runID: 09a946fc3167d000 - time: '2022-07-13T07:06:54.198167Z' + time: "2022-07-13T07:06:54.198167Z" message: 'Started task from script: "option task = {name: \"test task\", every: 3d, offset: 0s}"' - runID: 09a946fc3167d000 - time: '2022-07-13T07:07:13.104037Z' + time: "2022-07-13T07:07:13.104037Z" message: Completed(failed) - runID: 09a946fc3167d000 - time: '2022-07-13T08:24:37.115323Z' + time: "2022-07-13T08:24:37.115323Z" message: 'error exhausting result iterator: error in query specification while starting program: this Flux script returns no streaming data. Consider adding a "yield" or invoking streaming functions directly, without performing an assignment' - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/tasks/{taskID}/labels': + $ref: "#/components/responses/GeneralServerError" + "/tasks/{taskID}/labels": get: operationId: GetTasksIDLabels tags: @@ -6568,7 +6568,7 @@ paths: Labels may be used for grouping and filtering tasks. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6576,22 +6576,22 @@ paths: required: true description: The ID of the task to retrieve labels for. responses: - '200': + "200": description: Success. The response body contains a list of all labels for the task. content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/LabelsResponse" + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" post: operationId: PostTasksIDLabels tags: @@ -6602,7 +6602,7 @@ paths: Use this endpoint to add a label that you can use to filter tasks in the InfluxDB UI. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6615,25 +6615,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: Success. The response body contains a list of all labels for the task. content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/LabelResponse" + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/tasks/{taskID}/labels/{labelID}': + $ref: "#/components/responses/GeneralServerError" + "/tasks/{taskID}/labels/{labelID}": delete: operationId: DeleteTasksIDLabelsID tags: @@ -6642,7 +6642,7 @@ paths: description: | Deletes a label from a task. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6656,18 +6656,18 @@ paths: required: true description: The ID of the label to delete. responses: - '204': + "204": description: Success. The label is deleted. - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /flags: get: operationId: GetFlags @@ -6675,20 +6675,20 @@ paths: - Users summary: Return the feature flags for the currently authenticated user parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: Feature flags for the currently authenticated user content: application/json: schema: - $ref: '#/components/schemas/Flags' + $ref: "#/components/schemas/Flags" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /me: get: operationId: GetMe @@ -6696,20 +6696,20 @@ paths: - Users summary: Retrieve the currently authenticated user parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: Success. The response body contains the currently authenticated user. content: application/json: schema: - $ref: '#/components/schemas/UserResponse' - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/UserResponse" + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /me/password: put: operationId: PutMePassword @@ -6724,18 +6724,18 @@ paths: security: - BasicAuthentication: [] parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: The new password. required: true content: application/json: schema: - $ref: '#/components/schemas/PasswordResetBody' + $ref: "#/components/schemas/PasswordResetBody" responses: - '204': + "204": description: Success. The password was updated. - '400': + "400": description: | Bad request. InfluxDB Cloud doesn't support changing passwords through the API and always responds with this status. @@ -6744,8 +6744,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' - '/tasks/{taskID}/members': + $ref: "#/components/schemas/Error" + "/tasks/{taskID}/members": get: operationId: GetTasksIDMembers deprecated: true @@ -6756,7 +6756,7 @@ paths: **Deprecated**: Tasks don't use `owner` and `member` roles. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6764,20 +6764,20 @@ paths: required: true description: The task ID. responses: - '200': + "200": description: | Success. The response body contains a list of `users` that have the `member` role for a task. content: application/json: schema: - $ref: '#/components/schemas/ResourceMembers' + $ref: "#/components/schemas/ResourceMembers" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostTasksIDMembers deprecated: true @@ -6791,7 +6791,7 @@ paths: Adds a user to members of a task and returns the newly created member with role and user detail. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6804,21 +6804,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Created. The user is added to task members. content: application/json: schema: - $ref: '#/components/schemas/ResourceMember' + $ref: "#/components/schemas/ResourceMember" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/tasks/{taskID}/members/{userID}': + $ref: "#/components/schemas/Error" + "/tasks/{taskID}/members/{userID}": delete: operationId: DeleteTasksIDMembersID deprecated: true @@ -6829,7 +6829,7 @@ paths: **Deprecated**: Tasks don't use `owner` and `member` roles. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -6843,15 +6843,15 @@ paths: required: true description: The task ID. responses: - '204': + "204": description: Member removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/tasks/{taskID}/owners': + $ref: "#/components/schemas/Error" + "/tasks/{taskID}/owners": get: operationId: GetTasksIDOwners deprecated: true @@ -6864,7 +6864,7 @@ paths: Retrieves all users that have owner permission for a task. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6872,7 +6872,7 @@ paths: required: true description: The ID of the task to retrieve owners for. responses: - '200': + "200": description: | Success. The response contains a list of `users` that have the `owner` role for the task. @@ -6881,10 +6881,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResourceOwners' - '401': - $ref: '#/components/responses/AuthorizationError' - '422': + $ref: "#/components/schemas/ResourceOwners" + "401": + $ref: "#/components/responses/AuthorizationError" + "422": description: | Unprocessable entity. @@ -6895,15 +6895,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Error" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostTasksIDOwners deprecated: true @@ -6919,7 +6919,7 @@ paths: Use this endpoint to create a _resource owner_ for the task. A _resource owner_ is a user with `role: owner` for a specific resource. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -6932,9 +6932,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: | Created. The task `owner` role is assigned to the user. The response body contains the resource owner with @@ -6942,7 +6942,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResourceOwner' + $ref: "#/components/schemas/ResourceOwner" examples: createdOwner: summary: User has the owner role for the resource @@ -6954,9 +6954,9 @@ paths: id: 0772396d1f411000 name: USER_NAME status: active - '401': - $ref: '#/components/responses/AuthorizationError' - '422': + "401": + $ref: "#/components/responses/AuthorizationError" + "422": description: | Unprocessable entity. @@ -6967,16 +6967,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Error" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/tasks/{taskID}/owners/{userID}': + $ref: "#/components/schemas/Error" + "/tasks/{taskID}/owners/{userID}": delete: operationId: DeleteTasksIDOwnersID deprecated: true @@ -6987,7 +6987,7 @@ paths: **Deprecated**: Tasks don't use `owner` and `member` roles. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -7001,15 +7001,15 @@ paths: required: true description: The task ID. responses: - '204': + "204": description: Owner removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/users/{userID}/password': + $ref: "#/components/schemas/Error" + "/users/{userID}/password": post: operationId: PostUsersIDPassword tags: @@ -7024,7 +7024,7 @@ paths: security: - BasicAuthentication: [] parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -7037,11 +7037,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PasswordResetBody' + $ref: "#/components/schemas/PasswordResetBody" responses: - '204': + "204": description: Password successfully updated - '400': + "400": description: | Bad request. InfluxDB Cloud doesn't support changing passwords through the API and always responds with this status. @@ -7050,7 +7050,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /checks: get: operationId: GetChecks @@ -7058,9 +7058,9 @@ paths: - Checks summary: List all checks parameters: - - $ref: '#/components/parameters/TraceSpan' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Limit' + - $ref: "#/components/parameters/TraceSpan" + - $ref: "#/components/parameters/Offset" + - $ref: "#/components/parameters/Limit" - in: query name: orgID required: true @@ -7068,18 +7068,18 @@ paths: schema: type: string responses: - '200': + "200": description: A list of checks content: application/json: schema: - $ref: '#/components/schemas/Checks' + $ref: "#/components/schemas/Checks" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: CreateCheck tags: @@ -7091,28 +7091,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PostCheck' + $ref: "#/components/schemas/PostCheck" responses: - '201': + "201": description: Check created content: application/json: schema: - $ref: '#/components/schemas/Check' + $ref: "#/components/schemas/Check" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/checks/{checkID}': + $ref: "#/components/schemas/Error" + "/checks/{checkID}": get: operationId: GetChecksID tags: - Checks summary: Retrieve a check parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: checkID schema: @@ -7120,18 +7120,18 @@ paths: required: true description: The check ID. responses: - '200': + "200": description: The check requested content: application/json: schema: - $ref: '#/components/schemas/Check' + $ref: "#/components/schemas/Check" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: operationId: PutChecksID tags: @@ -7143,9 +7143,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Check' + $ref: "#/components/schemas/Check" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: checkID schema: @@ -7153,24 +7153,24 @@ paths: required: true description: The check ID. responses: - '200': + "200": description: An updated check content: application/json: schema: - $ref: '#/components/schemas/Check' - '404': + $ref: "#/components/schemas/Check" + "404": description: The check was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchChecksID tags: @@ -7182,9 +7182,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CheckPatch' + $ref: "#/components/schemas/CheckPatch" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: checkID schema: @@ -7192,31 +7192,31 @@ paths: required: true description: The check ID. responses: - '200': + "200": description: An updated check content: application/json: schema: - $ref: '#/components/schemas/Check' - '404': + $ref: "#/components/schemas/Check" + "404": description: The check was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteChecksID tags: - Checks summary: Delete a check parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: checkID schema: @@ -7224,28 +7224,28 @@ paths: required: true description: The check ID. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: The check was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/checks/{checkID}/labels': + $ref: "#/components/schemas/Error" + "/checks/{checkID}/labels": get: operationId: GetChecksIDLabels tags: - Checks summary: List all labels for a check parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: checkID schema: @@ -7253,25 +7253,25 @@ paths: required: true description: The check ID. responses: - '200': + "200": description: A list of all labels for a check content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' + $ref: "#/components/schemas/LabelsResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostChecksIDLabels tags: - Checks summary: Add a label to a check parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: checkID schema: @@ -7284,28 +7284,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: The label was added to the check content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' + $ref: "#/components/schemas/LabelResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/checks/{checkID}/labels/{labelID}': + $ref: "#/components/schemas/Error" + "/checks/{checkID}/labels/{labelID}": delete: operationId: DeleteChecksIDLabelsID tags: - Checks summary: Delete label from a check parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: checkID schema: @@ -7319,20 +7319,20 @@ paths: required: true description: The ID of the label to delete. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Check or label not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /notificationRules: get: operationId: GetNotificationRules @@ -7340,9 +7340,9 @@ paths: - NotificationRules summary: List all notification rules parameters: - - $ref: '#/components/parameters/TraceSpan' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Limit' + - $ref: "#/components/parameters/TraceSpan" + - $ref: "#/components/parameters/Offset" + - $ref: "#/components/parameters/Limit" - in: query name: orgID required: true @@ -7359,21 +7359,21 @@ paths: description: Only return notification rules that "would match" statuses which contain the tag key value pairs provided. schema: type: string - pattern: '^[a-zA-Z0-9_]+:[a-zA-Z0-9_]+$' - example: 'env:prod' + pattern: "^[a-zA-Z0-9_]+:[a-zA-Z0-9_]+$" + example: "env:prod" responses: - '200': + "200": description: A list of notification rules content: application/json: schema: - $ref: '#/components/schemas/NotificationRules' + $ref: "#/components/schemas/NotificationRules" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: CreateNotificationRule tags: @@ -7385,28 +7385,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PostNotificationRule' + $ref: "#/components/schemas/PostNotificationRule" responses: - '201': + "201": description: Notification rule created content: application/json: schema: - $ref: '#/components/schemas/NotificationRule' + $ref: "#/components/schemas/NotificationRule" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/checks/{checkID}/query': + $ref: "#/components/schemas/Error" + "/checks/{checkID}/query": get: operationId: GetChecksIDQuery tags: - Checks summary: Retrieve a check query parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: checkID schema: @@ -7414,38 +7414,38 @@ paths: required: true description: The check ID. responses: - '200': + "200": description: The check query requested content: application/json: schema: - $ref: '#/components/schemas/FluxResponse' - '400': + $ref: "#/components/schemas/FluxResponse" + "400": description: Invalid request content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Check not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/notificationRules/{ruleID}': + $ref: "#/components/schemas/Error" + "/notificationRules/{ruleID}": get: operationId: GetNotificationRulesID tags: - NotificationRules summary: Retrieve a notification rule parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: ruleID schema: @@ -7453,18 +7453,18 @@ paths: required: true description: The notification rule ID. responses: - '200': + "200": description: The notification rule requested content: application/json: schema: - $ref: '#/components/schemas/NotificationRule' + $ref: "#/components/schemas/NotificationRule" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: operationId: PutNotificationRulesID tags: @@ -7476,9 +7476,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationRule' + $ref: "#/components/schemas/NotificationRule" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: ruleID schema: @@ -7486,24 +7486,24 @@ paths: required: true description: The notification rule ID. responses: - '200': + "200": description: An updated notification rule content: application/json: schema: - $ref: '#/components/schemas/NotificationRule' - '404': + $ref: "#/components/schemas/NotificationRule" + "404": description: The notification rule was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchNotificationRulesID tags: @@ -7515,9 +7515,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationRuleUpdate' + $ref: "#/components/schemas/NotificationRuleUpdate" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: ruleID schema: @@ -7525,31 +7525,31 @@ paths: required: true description: The notification rule ID. responses: - '200': + "200": description: An updated notification rule content: application/json: schema: - $ref: '#/components/schemas/NotificationRule' - '404': + $ref: "#/components/schemas/NotificationRule" + "404": description: The notification rule was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteNotificationRulesID tags: - NotificationRules summary: Delete a notification rule parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: ruleID schema: @@ -7557,28 +7557,28 @@ paths: required: true description: The notification rule ID. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: The check was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/notificationRules/{ruleID}/labels': + $ref: "#/components/schemas/Error" + "/notificationRules/{ruleID}/labels": get: operationId: GetNotificationRulesIDLabels tags: - NotificationRules summary: List all labels for a notification rule parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: ruleID schema: @@ -7586,25 +7586,25 @@ paths: required: true description: The notification rule ID. responses: - '200': + "200": description: A list of all labels for a notification rule content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' + $ref: "#/components/schemas/LabelsResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostNotificationRuleIDLabels tags: - NotificationRules summary: Add a label to a notification rule parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: ruleID schema: @@ -7617,28 +7617,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: The label was added to the notification rule content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' + $ref: "#/components/schemas/LabelResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/notificationRules/{ruleID}/labels/{labelID}': + $ref: "#/components/schemas/Error" + "/notificationRules/{ruleID}/labels/{labelID}": delete: operationId: DeleteNotificationRulesIDLabelsID tags: - NotificationRules summary: Delete label from a notification rule parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: ruleID schema: @@ -7652,28 +7652,28 @@ paths: required: true description: The ID of the label to delete. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Rule or label not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/notificationRules/{ruleID}/query': + $ref: "#/components/schemas/Error" + "/notificationRules/{ruleID}/query": get: operationId: GetNotificationRulesIDQuery tags: - Rules summary: Retrieve a notification rule query parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: ruleID schema: @@ -7681,30 +7681,30 @@ paths: required: true description: The notification rule ID. responses: - '200': + "200": description: The notification rule query requested content: application/json: schema: - $ref: '#/components/schemas/FluxResponse' - '400': + $ref: "#/components/schemas/FluxResponse" + "400": description: Invalid request content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': + $ref: "#/components/schemas/Error" + "404": description: Notification rule not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /notificationEndpoints: get: operationId: GetNotificationEndpoints @@ -7712,9 +7712,9 @@ paths: - NotificationEndpoints summary: List all notification endpoints parameters: - - $ref: '#/components/parameters/TraceSpan' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Limit' + - $ref: "#/components/parameters/TraceSpan" + - $ref: "#/components/parameters/Offset" + - $ref: "#/components/parameters/Limit" - in: query name: orgID required: true @@ -7722,18 +7722,18 @@ paths: schema: type: string responses: - '200': + "200": description: A list of notification endpoints content: application/json: schema: - $ref: '#/components/schemas/NotificationEndpoints' + $ref: "#/components/schemas/NotificationEndpoints" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: CreateNotificationEndpoint tags: @@ -7745,28 +7745,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PostNotificationEndpoint' + $ref: "#/components/schemas/PostNotificationEndpoint" responses: - '201': + "201": description: Notification endpoint created content: application/json: schema: - $ref: '#/components/schemas/NotificationEndpoint' + $ref: "#/components/schemas/NotificationEndpoint" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/notificationEndpoints/{endpointID}': + $ref: "#/components/schemas/Error" + "/notificationEndpoints/{endpointID}": get: operationId: GetNotificationEndpointsID tags: - NotificationEndpoints summary: Retrieve a notification endpoint parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: endpointID schema: @@ -7774,18 +7774,18 @@ paths: required: true description: The notification endpoint ID. responses: - '200': + "200": description: The notification endpoint requested content: application/json: schema: - $ref: '#/components/schemas/NotificationEndpoint' + $ref: "#/components/schemas/NotificationEndpoint" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" put: operationId: PutNotificationEndpointsID tags: @@ -7797,9 +7797,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationEndpoint' + $ref: "#/components/schemas/NotificationEndpoint" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: endpointID schema: @@ -7807,24 +7807,24 @@ paths: required: true description: The notification endpoint ID. responses: - '200': + "200": description: An updated notification endpoint content: application/json: schema: - $ref: '#/components/schemas/NotificationEndpoint' - '404': + $ref: "#/components/schemas/NotificationEndpoint" + "404": description: The notification endpoint was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchNotificationEndpointsID tags: @@ -7836,9 +7836,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationEndpointUpdate' + $ref: "#/components/schemas/NotificationEndpointUpdate" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: endpointID schema: @@ -7846,31 +7846,31 @@ paths: required: true description: The notification endpoint ID. responses: - '200': + "200": description: An updated notification endpoint content: application/json: schema: - $ref: '#/components/schemas/NotificationEndpoint' - '404': + $ref: "#/components/schemas/NotificationEndpoint" + "404": description: The notification endpoint was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteNotificationEndpointsID tags: - NotificationEndpoints summary: Delete a notification endpoint parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: endpointID schema: @@ -7878,28 +7878,28 @@ paths: required: true description: The notification endpoint ID. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: The endpoint was not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/notificationEndpoints/{endpointID}/labels': + $ref: "#/components/schemas/Error" + "/notificationEndpoints/{endpointID}/labels": get: operationId: GetNotificationEndpointsIDLabels tags: - NotificationEndpoints summary: List all labels for a notification endpoint parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: endpointID schema: @@ -7907,25 +7907,25 @@ paths: required: true description: The notification endpoint ID. responses: - '200': + "200": description: A list of all labels for a notification endpoint content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' + $ref: "#/components/schemas/LabelsResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostNotificationEndpointIDLabels tags: - NotificationEndpoints summary: Add a label to a notification endpoint parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: endpointID schema: @@ -7938,28 +7938,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: The label was added to the notification endpoint content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' + $ref: "#/components/schemas/LabelResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/notificationEndpoints/{endpointID}/labels/{labelID}': + $ref: "#/components/schemas/Error" + "/notificationEndpoints/{endpointID}/labels/{labelID}": delete: operationId: DeleteNotificationEndpointsIDLabelsID tags: - NotificationEndpoints summary: Delete a label from a notification endpoint parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: endpointID schema: @@ -7973,20 +7973,20 @@ paths: required: true description: The ID of the label to delete. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Endpoint or label not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /debug/pprof/all: get: operationId: GetDebugPprofAllProfiles @@ -8008,7 +8008,7 @@ paths: - **threadcreate**: Stack traces that led to the creation of new OS threads x-codeSamples: - lang: Shell - label: 'Shell: Get all profiles' + label: "Shell: Get all profiles" source: | # Download and extract a `tar.gz` of all profiles after 10 seconds of CPU sampling. @@ -8026,7 +8026,7 @@ paths: go tool pprof profiles/heap.pb.gz - lang: Shell - label: 'Shell: Get all profiles except CPU' + label: "Shell: Get all profiles except CPU" source: | # Download and extract a `tar.gz` of all profiles except CPU. @@ -8043,9 +8043,9 @@ paths: go tool pprof profiles/heap.pb.gz servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: cpu description: | @@ -8055,9 +8055,9 @@ paths: format: duration externalDocs: description: InfluxDB duration - url: 'https://docs.influxdata.com/influxdb/latest/reference/glossary/#duration' + url: "https://docs.influxdata.com/influxdb/latest/reference/glossary/#duration" responses: - '200': + "200": description: | [Go runtime profile](https://pkg.go.dev/runtime/pprof) reports. content: @@ -8070,10 +8070,10 @@ paths: format: binary externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/allocs: get: operationId: GetDebugPprofAllocs @@ -8090,7 +8090,7 @@ paths: the total number of bytes allocated since the program began (including garbage-collected bytes). x-codeSamples: - lang: Shell - label: 'Shell: go tool pprof' + label: "Shell: go tool pprof" source: | # Analyze the profile in interactive mode. @@ -8104,9 +8104,9 @@ paths: (pprof) top10 servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: debug description: | @@ -8131,7 +8131,7 @@ paths: type: string format: int64 responses: - '200': + "200": description: | [Go runtime profile](https://pkg.go.dev/runtime/pprof) report compatible with [pprof](https://github.com/google/pprof) analysis and visualization tools. @@ -8145,7 +8145,7 @@ paths: format: binary externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" text/plain: schema: description: | @@ -8156,10 +8156,10 @@ paths: format: Go runtime profile externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/block: get: operationId: GetDebugPprofBlock @@ -8172,7 +8172,7 @@ paths: report of stack traces that led to blocking on synchronization primitives. x-codeSamples: - lang: Shell - label: 'Shell: go tool pprof' + label: "Shell: go tool pprof" source: | # Analyze the profile in interactive mode. @@ -8186,9 +8186,9 @@ paths: (pprof) top10 servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: debug description: | @@ -8213,7 +8213,7 @@ paths: type: string format: int64 responses: - '200': + "200": description: | [Go runtime profile](https://pkg.go.dev/runtime/pprof) report compatible with [pprof](https://github.com/google/pprof) analysis and visualization tools. @@ -8227,7 +8227,7 @@ paths: format: binary externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" text/plain: schema: description: | @@ -8238,10 +8238,10 @@ paths: format: Go runtime profile externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/cmdline: get: operationId: GetDebugPprofCmdline @@ -8252,11 +8252,11 @@ paths: description: | Returns the command line that invoked InfluxDB. servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: Command line invocation. content: text/plain: @@ -8265,7 +8265,7 @@ paths: format: Command line default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/goroutine: get: operationId: GetDebugPprofGoroutine @@ -8278,7 +8278,7 @@ paths: report of all current goroutines. x-codeSamples: - lang: Shell - label: 'Shell: go tool pprof' + label: "Shell: go tool pprof" source: | # Analyze the profile in interactive mode. @@ -8292,9 +8292,9 @@ paths: (pprof) top10 servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: debug description: | @@ -8320,7 +8320,7 @@ paths: type: string format: int64 responses: - '200': + "200": description: | [Go runtime profile](https://pkg.go.dev/runtime/pprof) report compatible with [pprof](https://github.com/google/pprof) analysis and visualization tools. @@ -8334,7 +8334,7 @@ paths: format: binary externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" text/plain: schema: description: | @@ -8345,10 +8345,10 @@ paths: format: Go runtime profile externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/heap: get: operationId: GetDebugPprofHeap @@ -8364,7 +8364,7 @@ paths: pass the `gc` query parameter with a value of `1`. x-codeSamples: - lang: Shell - label: 'Shell: go tool pprof' + label: "Shell: go tool pprof" source: | # Analyze the profile in interactive mode. @@ -8383,9 +8383,9 @@ paths: # Dropped 895 nodes (cum <= 0.83MB) # Showing top 10 nodes out of 143 servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: debug description: | @@ -8421,7 +8421,7 @@ paths: - 0 - 1 responses: - '200': + "200": description: | [Go runtime profile](https://pkg.go.dev/runtime/pprof) report compatible with [pprof](https://github.com/google/pprof) analysis and visualization tools. @@ -8435,7 +8435,7 @@ paths: format: binary externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" text/plain: schema: description: | @@ -8446,14 +8446,14 @@ paths: format: Go runtime profile externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" examples: profileDebugResponse: summary: Profile in plain text value: "heap profile: 12431: 137356528 [149885081: 846795139976] @ heap/8192\n23: 17711104 [46: 35422208] @ 0x4c6df65 0x4ce03ec 0x4cdf3c5 0x4c6f4db 0x4c9edbc 0x4bdefb3 0x4bf822a 0x567d158 0x567ced9 0x406c0a1\n#\t0x4c6df64\tgithub.com/influxdata/influxdb/v2/tsdb/engine/tsm1.(*entry).add+0x1a4\t\t\t\t\t/Users/me/github/influxdb/tsdb/engine/tsm1/cache.go:97\n#\t0x4ce03eb\tgithub.com/influxdata/influxdb/v2/tsdb/engine/tsm1.(*partition).write+0x2ab\t\t\t\t/Users/me/github/influxdb/tsdb/engine/tsm1/ring.go:229\n#\t0x4cdf3c4\tgithub.com/influxdata/influxdb/v2/tsdb/engine/tsm1.(*ring).write+0xa4\t\t\t\t\t/Users/me/github/influxdb/tsdb/engine/tsm1/ring.go:95\n#\t0x4c6f4da\tgithub.com/influxdata/influxdb/v2/tsdb/engine/tsm1.(*Cache).WriteMulti+0x31a\t\t\t\t/Users/me/github/influxdb/tsdb/engine/tsm1/cache.go:343\n" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/mutex: get: operationId: GetDebugPprofMutex @@ -8467,7 +8467,7 @@ paths: The profile contains stack traces of holders of contended mutual exclusions (mutexes). x-codeSamples: - lang: Shell - label: 'Shell: go tool pprof' + label: "Shell: go tool pprof" source: | # Analyze the profile in interactive mode. @@ -8481,9 +8481,9 @@ paths: (pprof) top10 servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: debug description: | @@ -8508,7 +8508,7 @@ paths: type: string format: int64 responses: - '200': + "200": description: | [Go runtime profile](https://pkg.go.dev/runtime/pprof) report compatible with [pprof](https://github.com/google/pprof) analysis and visualization tools. @@ -8522,7 +8522,7 @@ paths: format: binary externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" text/plain: schema: description: | @@ -8533,10 +8533,10 @@ paths: format: Go runtime profile externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/profile: get: operationId: GetDebugPprofProfile @@ -8549,7 +8549,7 @@ paths: report of program counters on the executing stack. x-codeSamples: - lang: Shell - label: 'Shell: go tool pprof' + label: "Shell: go tool pprof" source: | # Download the profile report. @@ -8564,9 +8564,9 @@ paths: (pprof) top10 servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: seconds description: Number of seconds to collect profile data. Default is `30` seconds. @@ -8574,7 +8574,7 @@ paths: type: string format: int64 responses: - '200': + "200": description: | [Go runtime profile](https://pkg.go.dev/runtime/pprof) report compatible with [pprof](https://github.com/google/pprof) analysis and visualization tools. @@ -8587,10 +8587,10 @@ paths: format: binary externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/threadcreate: get: operationId: GetDebugPprofThreadCreate @@ -8603,7 +8603,7 @@ paths: report of stack traces that led to the creation of new OS threads. x-codeSamples: - lang: Shell - label: 'Shell: go tool pprof' + label: "Shell: go tool pprof" source: | # Analyze the profile in interactive mode. @@ -8617,9 +8617,9 @@ paths: (pprof) top10 servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: debug description: | @@ -8644,7 +8644,7 @@ paths: type: string format: int64 responses: - '200': + "200": description: | [Go runtime profile](https://pkg.go.dev/runtime/pprof) report compatible with [pprof](https://github.com/google/pprof) analysis and visualization tools. @@ -8658,7 +8658,7 @@ paths: format: binary externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" text/plain: schema: description: | @@ -8669,14 +8669,14 @@ paths: format: Go runtime profile externalDocs: description: Golang pprof package - url: 'https://pkg.go.dev/net/http/pprof' + url: "https://pkg.go.dev/net/http/pprof" examples: profileDebugResponse: summary: Profile in plain text value: "threadcreate profile: total 26\n25 @\n#\t0x0\n\n1 @ 0x403dda8 0x403e54b 0x403e810 0x403a90c 0x406c0a1\n#\t0x403dda7\truntime.allocm+0xc7\t\t\t/Users/me/.gvm/gos/go1.17/src/runtime/proc.go:1877\n#\t0x403e54a\truntime.newm+0x2a\t\t\t/Users/me/.gvm/gos/go1.17/src/runtime/proc.go:2201\n#\t0x403e80f\truntime.startTemplateThread+0x8f\t/Users/me/.gvm/gos/go1.17/src/runtime/proc.go:2271\n#\t0x403a90b\truntime.main+0x1cb\t\t\t/Users/me/.gvm/gos/go1.17/src/runtime/proc.go:234\n" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /debug/pprof/trace: get: operationId: GetDebugPprofTrace @@ -8688,7 +8688,7 @@ paths: Collects profile data and returns trace execution events for the current program. x-codeSamples: - lang: Shell - label: 'Shell: go tool trace' + label: "Shell: go tool trace" source: | # Download the trace file. @@ -8698,9 +8698,9 @@ paths: go tool trace ./trace servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: seconds description: Number of seconds to collect profile data. @@ -8708,7 +8708,7 @@ paths: type: string format: int64 responses: - '200': + "200": description: | [Trace file](https://pkg.go.dev/runtime/trace) compatible with the [Golang `trace` command](https://pkg.go.dev/cmd/trace). @@ -8719,10 +8719,10 @@ paths: format: binary externalDocs: description: Golang trace package - url: 'https://pkg.go.dev/runtime/trace' + url: "https://pkg.go.dev/runtime/trace" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /health: get: operationId: GetHealth @@ -8732,27 +8732,27 @@ paths: summary: Retrieve the health of the instance description: Returns the health of the instance. servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: | The instance is healthy. The response body contains the health check items and status. content: application/json: schema: - $ref: '#/components/schemas/HealthCheck' - '503': + $ref: "#/components/schemas/HealthCheck" + "503": description: The instance is unhealthy. content: application/json: schema: - $ref: '#/components/schemas/HealthCheck' + $ref: "#/components/schemas/HealthCheck" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /metrics: get: operationId: GetMetrics @@ -8771,11 +8771,11 @@ paths: - Learn how to use InfluxDB to [scrape Prometheus metrics](https://docs.influxdata.com/influxdb/v2.3/write-data/developer-tools/scrape-prometheus-metrics/). - Learn how InfluxDB [parses the Prometheus exposition format](https://docs.influxdata.com/influxdb/v2.3/reference/prometheus-metrics/). servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: | Success. The response body contains metrics in [Prometheus plain-text exposition format](https://prometheus.io/docs/instrumenting/exposition_formats) @@ -8792,7 +8792,7 @@ paths: format: Prometheus text-based exposition externalDocs: description: Prometheus exposition formats - url: 'https://prometheus.io/docs/instrumenting/exposition_formats' + url: "https://prometheus.io/docs/instrumenting/exposition_formats" examples: expositionResponse: summary: Metrics in plain text @@ -8807,7 +8807,7 @@ paths: http_api_request_duration_seconds_bucket{handler="platform",method="GET",path="/:fallback_path",response_code="200",status="2XX",user_agent="curl",le="0.025"} 5 default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /ready: get: operationId: GetReady @@ -8816,19 +8816,19 @@ paths: - System information endpoints summary: Get the readiness of an instance at startup servers: - - url: '' + - url: "" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: The instance is ready content: application/json: schema: - $ref: '#/components/schemas/Ready' + $ref: "#/components/schemas/Ready" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /users: get: operationId: GetUsers @@ -8847,10 +8847,10 @@ paths: `USER_ID` is the ID of the user that you want to list. - InfluxDB OSS requires an _[operator token](https://docs.influxdata.com/influxdb/latest/security/tokens/#operator-token))_ to list all users. parameters: - - $ref: '#/components/parameters/TraceSpan' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/After' + - $ref: "#/components/parameters/TraceSpan" + - $ref: "#/components/parameters/Offset" + - $ref: "#/components/parameters/Limit" + - $ref: "#/components/parameters/After" - in: query name: name schema: @@ -8860,26 +8860,26 @@ paths: schema: type: string responses: - '200': + "200": description: Success. The response contains a list of `users`. content: application/json: schema: - $ref: '#/components/schemas/Users' - '401': + $ref: "#/components/schemas/Users" + "401": description: | Unauthorized. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: tokenNotAuthorized: - summary: 'API token doesn''t have `write:users` permission' + summary: "API token doesn't have `write:users` permission" value: code: unauthorized - message: 'write:users/09d8462ce0764000 is unauthorized' - '422': + message: "write:users/09d8462ce0764000 is unauthorized" + "422": description: | Unprocessable entity. @@ -8890,12 +8890,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Error" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" post: operationId: PostUsers tags: @@ -8908,37 +8908,37 @@ paths: - `write-users`. Requires an InfluxDB API **Op** token. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: The user to create. required: true content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" responses: - '201': + "201": description: | Success. The response contains the newly created user. content: application/json: schema: - $ref: '#/components/schemas/UserResponse' - '401': + $ref: "#/components/schemas/UserResponse" + "401": description: | Unauthorized. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: tokenNotAuthorized: - summary: 'API token doesn''t have `write:users` permission' + summary: "API token doesn't have `write:users` permission" value: code: unauthorized - message: 'write:users/09d8462ce0764000 is unauthorized' - '422': + message: "write:users/09d8462ce0764000 is unauthorized" + "422": description: | Unprocessable entity. @@ -8949,14 +8949,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Error" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" x-codeSamples: - - label: 'cURL: create a user and set a password' + - label: "cURL: create a user and set a password" lang: Shell source: | # Create the user and assign the user ID to a variable. @@ -8977,7 +8977,7 @@ paths: --header "Authorization: Token INFLUX_OP_TOKEN" \ --header 'Content-type: application/json' \ --data '{ "password": "USER_PASSWORD" }' - '/users/{userID}': + "/users/{userID}": get: operationId: GetUsersID tags: @@ -8985,7 +8985,7 @@ paths: - Users summary: Retrieve a user parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -8993,15 +8993,15 @@ paths: required: true description: The user ID. responses: - '200': + "200": description: User details content: application/json: schema: - $ref: '#/components/schemas/UserResponse' + $ref: "#/components/schemas/UserResponse" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" patch: operationId: PatchUsersID tags: @@ -9013,9 +9013,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -9023,22 +9023,22 @@ paths: required: true description: The ID of the user to update. responses: - '200': + "200": description: User updated content: application/json: schema: - $ref: '#/components/schemas/UserResponse' + $ref: "#/components/schemas/UserResponse" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" delete: operationId: DeleteUsersID tags: - Users summary: Delete a user parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -9046,52 +9046,52 @@ paths: required: true description: The ID of the user to delete. responses: - '204': + "204": description: User deleted default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /setup: get: operationId: GetSetup tags: - Setup - summary: 'Check if database has default user, org, bucket' - description: 'Returns `true` if no default user, organization, or bucket has been created.' + summary: "Check if database has default user, org, bucket" + description: "Returns `true` if no default user, organization, or bucket has been created." parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: allowed true or false content: application/json: schema: - $ref: '#/components/schemas/IsOnboarding' + $ref: "#/components/schemas/IsOnboarding" post: operationId: PostSetup tags: - Setup - summary: 'Set up initial user, org and bucket' - description: 'Post an onboarding request to set up initial user, org and bucket.' + summary: "Set up initial user, org and bucket" + description: "Post an onboarding request to set up initial user, org and bucket." parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: Source to create required: true content: application/json: schema: - $ref: '#/components/schemas/OnboardingRequest' + $ref: "#/components/schemas/OnboardingRequest" responses: - '201': - description: 'Created default user, bucket, org' + "201": + description: "Created default user, bucket, org" content: application/json: schema: - $ref: '#/components/schemas/OnboardingResponse' + $ref: "#/components/schemas/OnboardingResponse" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /authorizations: get: operationId: GetAuthorizations @@ -9119,7 +9119,7 @@ paths: - [View tokens](https://docs.influxdata.com/influxdb/v2.3/security/tokens/view-tokens/). parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: userID schema: @@ -9147,22 +9147,22 @@ paths: An organization name. Only returns authorizations that belong to this organization. responses: - '200': + "200": description: Success. The response body contains a list of authorizations. content: application/json: schema: - $ref: '#/components/schemas/Authorizations' - '400': + $ref: "#/components/schemas/Authorizations" + "400": description: Invalid request - $ref: '#/components/responses/GeneralServerError' - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/responses/GeneralServerError" + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" post: operationId: PostAuthorizations tags: @@ -9184,34 +9184,34 @@ paths: - [Create a token](https://docs.influxdata.com/influxdb/v2.3/security/tokens/create-token/). parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: The authorization to create. required: true content: application/json: schema: - $ref: '#/components/schemas/AuthorizationPostRequest' + $ref: "#/components/schemas/AuthorizationPostRequest" responses: - '201': + "201": description: Created. The response body contains the newly created authorization. content: application/json: schema: - $ref: '#/components/schemas/Authorization' - '400': + $ref: "#/components/schemas/Authorization" + "400": description: Invalid request - $ref: '#/components/responses/GeneralServerError' - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/responses/GeneralServerError" + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" x-codeSample: - lang: Shell - label: 'cURL: Create auth to read all buckets' + label: "cURL: Create auth to read all buckets" source: | curl --request POST \ "http://localhost:8086/api/v2/authorizations" \ @@ -9227,7 +9227,7 @@ paths: } EOF - lang: Shell - - label: 'cURL: Create auth scoped to a user' + - label: "cURL: Create auth scoped to a user" - source: | curl --request POST \ "http://localhost:8086/api/v2/authorizations" \ @@ -9243,7 +9243,7 @@ paths: ] } EOF - '/authorizations/{authID}': + "/authorizations/{authID}": get: operationId: GetAuthorizationsID tags: @@ -9251,7 +9251,7 @@ paths: - Security and access endpoints summary: Retrieve an authorization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: authID schema: @@ -9259,15 +9259,15 @@ paths: required: true description: The ID of the authorization to get. responses: - '200': + "200": description: Authorization details content: application/json: schema: - $ref: '#/components/schemas/Authorization' + $ref: "#/components/schemas/Authorization" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" patch: operationId: PatchAuthorizationsID tags: @@ -9279,9 +9279,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuthorizationUpdateRequest' + $ref: "#/components/schemas/AuthorizationUpdateRequest" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: authID schema: @@ -9289,22 +9289,22 @@ paths: required: true description: The ID of the authorization to update. responses: - '200': + "200": description: The active or inactive authorization content: application/json: schema: - $ref: '#/components/schemas/Authorization' + $ref: "#/components/schemas/Authorization" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" delete: operationId: DeleteAuthorizationsID tags: - Authorizations summary: Delete an authorization parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: authID schema: @@ -9312,11 +9312,11 @@ paths: required: true description: The ID of the authorization to delete. responses: - '204': + "204": description: Authorization deleted default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /variables: get: operationId: GetVariables @@ -9324,7 +9324,7 @@ paths: - Variables summary: List all variables parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: org description: The name of the organization. @@ -9336,50 +9336,50 @@ paths: schema: type: string responses: - '200': + "200": description: A list of variables for an organization content: application/json: schema: - $ref: '#/components/schemas/Variables' - '400': + $ref: "#/components/schemas/Variables" + "400": description: Invalid request - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" default: description: Internal server error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" post: operationId: PostVariables summary: Create a variable tags: - Variables parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: Variable to create required: true content: application/json: schema: - $ref: '#/components/schemas/Variable' + $ref: "#/components/schemas/Variable" responses: - '201': + "201": description: Variable created content: application/json: schema: - $ref: '#/components/schemas/Variable' + $ref: "#/components/schemas/Variable" default: description: Internal server error - $ref: '#/components/responses/GeneralServerError' - '/variables/{variableID}': + $ref: "#/components/responses/GeneralServerError" + "/variables/{variableID}": get: operationId: GetVariablesID tags: - Variables summary: Retrieve a variable parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: variableID required: true @@ -9387,25 +9387,25 @@ paths: type: string description: The variable ID. responses: - '200': + "200": description: Variable found content: application/json: schema: - $ref: '#/components/schemas/Variable' - '404': + $ref: "#/components/schemas/Variable" + "404": description: Variable not found - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" default: description: Internal server error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" delete: operationId: DeleteVariablesID tags: - Variables summary: Delete a variable parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: variableID required: true @@ -9413,18 +9413,18 @@ paths: type: string description: The variable ID. responses: - '204': + "204": description: Variable deleted default: description: Internal server error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" patch: operationId: PatchVariablesID summary: Update a variable tags: - Variables parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: variableID required: true @@ -9437,24 +9437,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Variable' + $ref: "#/components/schemas/Variable" responses: - '200': + "200": description: Variable updated content: application/json: schema: - $ref: '#/components/schemas/Variable' + $ref: "#/components/schemas/Variable" default: description: Internal server error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" put: operationId: PutVariablesID summary: Replace a variable tags: - Variables parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: variableID required: true @@ -9467,17 +9467,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Variable' + $ref: "#/components/schemas/Variable" responses: - '200': + "200": description: Variable updated content: application/json: schema: - $ref: '#/components/schemas/Variable' + $ref: "#/components/schemas/Variable" default: description: Internal server error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /sources: post: operationId: PostSources @@ -9485,60 +9485,60 @@ paths: - Sources summary: Create a source parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: Source to create required: true content: application/json: schema: - $ref: '#/components/schemas/Source' + $ref: "#/components/schemas/Source" responses: - '201': + "201": description: Created Source content: application/json: schema: - $ref: '#/components/schemas/Source' + $ref: "#/components/schemas/Source" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" get: operationId: GetSources tags: - Sources summary: List all sources parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: org description: The name of the organization. schema: type: string responses: - '200': + "200": description: A list of sources content: application/json: schema: - $ref: '#/components/schemas/Sources' + $ref: "#/components/schemas/Sources" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/sources/{sourceID}': + $ref: "#/components/schemas/Error" + "/sources/{sourceID}": delete: operationId: DeleteSourcesID tags: - Sources summary: Delete a source parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: sourceID schema: @@ -9546,27 +9546,27 @@ paths: required: true description: The source ID. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: View not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchSourcesID tags: - Sources summary: Update a Source parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: sourceID schema: @@ -9579,33 +9579,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Source' + $ref: "#/components/schemas/Source" responses: - '200': + "200": description: Created Source content: application/json: schema: - $ref: '#/components/schemas/Source' - '404': + $ref: "#/components/schemas/Source" + "404": description: Source not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" get: operationId: GetSourcesID tags: - Sources summary: Retrieve a source parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: sourceID schema: @@ -9613,32 +9613,32 @@ paths: required: true description: The source ID. responses: - '200': + "200": description: A source content: application/json: schema: - $ref: '#/components/schemas/Source' - '404': + $ref: "#/components/schemas/Source" + "404": description: Source not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/sources/{sourceID}/health': + $ref: "#/components/schemas/Error" + "/sources/{sourceID}/health": get: operationId: GetSourcesIDHealth tags: - Sources summary: Get the health of a source parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: sourceID schema: @@ -9646,25 +9646,25 @@ paths: required: true description: The source ID. responses: - '200': + "200": description: The source is healthy content: application/json: schema: - $ref: '#/components/schemas/HealthCheck' - '503': + $ref: "#/components/schemas/HealthCheck" + "503": description: The source is not healthy content: application/json: schema: - $ref: '#/components/schemas/HealthCheck' + $ref: "#/components/schemas/HealthCheck" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/sources/{sourceID}/buckets': + $ref: "#/components/schemas/Error" + "/sources/{sourceID}/buckets": get: operationId: GetSourcesIDBuckets tags: @@ -9672,7 +9672,7 @@ paths: - Buckets summary: Get buckets in a source parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: sourceID schema: @@ -9685,24 +9685,24 @@ paths: schema: type: string responses: - '200': + "200": description: A source content: application/json: schema: - $ref: '#/components/schemas/Buckets' - '404': + $ref: "#/components/schemas/Buckets" + "404": description: Source not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /scrapers: get: operationId: GetScrapers @@ -9710,7 +9710,7 @@ paths: - Scraper Targets summary: List all scraper targets parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: name description: Specifies the name of the scraper target. @@ -9718,7 +9718,7 @@ paths: type: string - in: query name: id - description: 'List of scraper target IDs to return. If both `id` and `owner` are specified, only `id` is used.' + description: "List of scraper target IDs to return. If both `id` and `owner` are specified, only `id` is used." schema: type: array items: @@ -9734,47 +9734,47 @@ paths: schema: type: string responses: - '200': + "200": description: All scraper targets content: application/json: schema: - $ref: '#/components/schemas/ScraperTargetResponses' + $ref: "#/components/schemas/ScraperTargetResponses" post: operationId: PostScrapers summary: Create a scraper target tags: - Scraper Targets parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: Scraper target to create required: true content: application/json: schema: - $ref: '#/components/schemas/ScraperTargetRequest' + $ref: "#/components/schemas/ScraperTargetRequest" responses: - '201': + "201": description: Scraper target created content: application/json: schema: - $ref: '#/components/schemas/ScraperTargetResponse' + $ref: "#/components/schemas/ScraperTargetResponse" default: description: Internal server error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/scrapers/{scraperTargetID}': + $ref: "#/components/schemas/Error" + "/scrapers/{scraperTargetID}": get: operationId: GetScrapersID tags: - Scraper Targets summary: Retrieve a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID required: true @@ -9782,25 +9782,25 @@ paths: type: string description: The identifier of the scraper target. responses: - '200': + "200": description: The scraper target content: application/json: schema: - $ref: '#/components/schemas/ScraperTargetResponse' + $ref: "#/components/schemas/ScraperTargetResponse" default: description: Internal server error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" delete: operationId: DeleteScrapersID tags: - Scraper Targets summary: Delete a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID required: true @@ -9808,21 +9808,21 @@ paths: type: string description: The identifier of the scraper target. responses: - '204': + "204": description: Scraper target deleted default: description: Internal server error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" patch: operationId: PatchScrapersID summary: Update a scraper target tags: - Scraper Targets parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID required: true @@ -9835,28 +9835,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScraperTargetRequest' + $ref: "#/components/schemas/ScraperTargetRequest" responses: - '200': + "200": description: Scraper target updated content: application/json: schema: - $ref: '#/components/schemas/ScraperTargetResponse' + $ref: "#/components/schemas/ScraperTargetResponse" default: description: Internal server error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/scrapers/{scraperTargetID}/labels': + $ref: "#/components/schemas/Error" + "/scrapers/{scraperTargetID}/labels": get: operationId: GetScrapersIDLabels tags: - Scraper Targets summary: List all labels for a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID schema: @@ -9864,25 +9864,25 @@ paths: required: true description: The scraper target ID. responses: - '200': + "200": description: A list of labels for a scraper target. content: application/json: schema: - $ref: '#/components/schemas/LabelsResponse' + $ref: "#/components/schemas/LabelsResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostScrapersIDLabels tags: - Scraper Targets summary: Add a label to a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID schema: @@ -9895,28 +9895,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LabelMapping' + $ref: "#/components/schemas/LabelMapping" responses: - '201': + "201": description: The newly added label content: application/json: schema: - $ref: '#/components/schemas/LabelResponse' + $ref: "#/components/schemas/LabelResponse" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/scrapers/{scraperTargetID}/labels/{labelID}': + $ref: "#/components/schemas/Error" + "/scrapers/{scraperTargetID}/labels/{labelID}": delete: operationId: DeleteScrapersIDLabelsID tags: - Scraper Targets summary: Delete a label from a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID schema: @@ -9930,28 +9930,28 @@ paths: required: true description: The label ID. responses: - '204': + "204": description: Delete has been accepted - '404': + "404": description: Scraper target not found content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/scrapers/{scraperTargetID}/members': + $ref: "#/components/schemas/Error" + "/scrapers/{scraperTargetID}/members": get: operationId: GetScrapersIDMembers tags: - Scraper Targets summary: List all users with member privileges for a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID schema: @@ -9959,25 +9959,25 @@ paths: required: true description: The scraper target ID. responses: - '200': + "200": description: A list of scraper target members content: application/json: schema: - $ref: '#/components/schemas/ResourceMembers' + $ref: "#/components/schemas/ResourceMembers" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostScrapersIDMembers tags: - Scraper Targets summary: Add a member to a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID schema: @@ -9990,28 +9990,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Member added to scraper targets content: application/json: schema: - $ref: '#/components/schemas/ResourceMember' + $ref: "#/components/schemas/ResourceMember" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/scrapers/{scraperTargetID}/members/{userID}': + $ref: "#/components/schemas/Error" + "/scrapers/{scraperTargetID}/members/{userID}": delete: operationId: DeleteScrapersIDMembersID tags: - Scraper Targets summary: Remove a member from a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -10025,22 +10025,22 @@ paths: required: true description: The scraper target ID. responses: - '204': + "204": description: Member removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/scrapers/{scraperTargetID}/owners': + $ref: "#/components/schemas/Error" + "/scrapers/{scraperTargetID}/owners": get: operationId: GetScrapersIDOwners tags: - Scraper Targets summary: List all owners of a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID schema: @@ -10048,25 +10048,25 @@ paths: required: true description: The scraper target ID. responses: - '200': + "200": description: A list of scraper target owners content: application/json: schema: - $ref: '#/components/schemas/ResourceOwners' + $ref: "#/components/schemas/ResourceOwners" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" post: operationId: PostScrapersIDOwners tags: - Scraper Targets summary: Add an owner to a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: scraperTargetID schema: @@ -10079,28 +10079,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddResourceMemberRequestBody' + $ref: "#/components/schemas/AddResourceMemberRequestBody" responses: - '201': + "201": description: Scraper target owner added content: application/json: schema: - $ref: '#/components/schemas/ResourceOwner' + $ref: "#/components/schemas/ResourceOwner" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' - '/scrapers/{scraperTargetID}/owners/{userID}': + $ref: "#/components/schemas/Error" + "/scrapers/{scraperTargetID}/owners/{userID}": delete: operationId: DeleteScrapersIDOwnersID tags: - Scraper Targets summary: Remove an owner from a scraper target parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: userID schema: @@ -10114,14 +10114,14 @@ paths: required: true description: The scraper target ID. responses: - '204': + "204": description: Owner removed default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /backup/kv: get: operationId: GetBackupKV @@ -10134,9 +10134,9 @@ paths: avoid using this endpoint with versions greater than 2.1.x. deprecated: true parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: Success. The response contains a snapshot of KV metadata. content: application/octet-stream: @@ -10145,7 +10145,7 @@ paths: format: binary default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /backup/metadata: get: operationId: GetBackupMetadata @@ -10153,19 +10153,19 @@ paths: - Backup summary: Download snapshot of all metadata in the server parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Accept-Encoding description: Indicates the content encoding (usually a compression algorithm) that the client can understand. schema: type: string - description: 'The content coding. Use `gzip` for compressed data or `identity` for unmodified, uncompressed data.' + description: "The content coding. Use `gzip` for compressed data or `identity` for unmodified, uncompressed data." default: identity enum: - gzip - identity responses: - '200': + "200": description: Snapshot of metadata headers: Content-Encoding: @@ -10181,24 +10181,24 @@ paths: content: multipart/mixed: schema: - $ref: '#/components/schemas/MetadataBackup' + $ref: "#/components/schemas/MetadataBackup" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' - '/backup/shards/{shardID}': + $ref: "#/components/responses/GeneralServerError" + "/backup/shards/{shardID}": get: operationId: GetBackupShardId tags: - Backup summary: Download snapshot of all TSM data in a shard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Accept-Encoding description: Indicates the content encoding (usually a compression algorithm) that the client can understand. schema: type: string - description: 'The content coding. Use `gzip` for compressed data or `identity` for unmodified, uncompressed data.' + description: "The content coding. Use `gzip` for compressed data or `identity` for unmodified, uncompressed data." default: identity enum: - gzip @@ -10212,16 +10212,16 @@ paths: description: The shard ID. - in: query name: since - description: 'The earliest time [RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp) to include in the snapshot.' + description: "The earliest time [RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp) to include in the snapshot." schema: type: string format: date-time examples: RFC3339: summary: RFC3339 date/time format - value: '2006-01-02T15:04:05Z07:00' + value: "2006-01-02T15:04:05Z07:00" responses: - '200': + "200": description: TSM snapshot. headers: Content-Encoding: @@ -10239,15 +10239,15 @@ paths: schema: type: string format: binary - '404': + "404": description: Shard not found. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /restore/kv: post: operationId: PostRestoreKV @@ -10255,7 +10255,7 @@ paths: - Restore summary: Overwrite the embedded KV store on the server with a backed-up snapshot. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Content-Encoding description: | @@ -10263,7 +10263,7 @@ paths: To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. schema: type: string - description: 'The content coding. Use `gzip` for compressed data or `identity` for unmodified, uncompressed data.' + description: "The content coding. Use `gzip` for compressed data or `identity` for unmodified, uncompressed data." default: identity enum: - gzip @@ -10284,7 +10284,7 @@ paths: type: string format: binary responses: - '200': + "200": description: KV store successfully overwritten. content: application/json: @@ -10294,11 +10294,11 @@ paths: token: description: token is the root token for the instance after restore (this is overwritten during the restore) type: string - '204': + "204": description: KV store successfully overwritten. default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /restore/sql: post: operationId: PostRestoreSQL @@ -10306,7 +10306,7 @@ paths: - Restore summary: Overwrite the embedded SQL store on the server with a backed-up snapshot. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Content-Encoding description: | @@ -10335,12 +10335,12 @@ paths: type: string format: binary responses: - '204': + "204": description: SQL store successfully overwritten. default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' - '/restore/bucket/{bucketID}': + $ref: "#/components/responses/GeneralServerError" + "/restore/bucket/{bucketID}": post: operationId: PostRestoreBucketID tags: @@ -10348,7 +10348,7 @@ paths: summary: Overwrite storage metadata for a bucket with shard info from a backup. deprecated: true parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: bucketID schema: @@ -10371,7 +10371,7 @@ paths: type: string format: byte responses: - '200': + "200": description: ID mappings for shards in bucket. content: application/json: @@ -10380,7 +10380,7 @@ paths: format: byte default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /restore/bucketMetadata: post: operationId: PostRestoreBucketMetadata @@ -10388,32 +10388,32 @@ paths: - Restore summary: Create a new bucket pre-seeded with shard info from a backup. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: Metadata manifest for a bucket. required: true content: application/json: schema: - $ref: '#/components/schemas/BucketMetadataManifest' + $ref: "#/components/schemas/BucketMetadataManifest" responses: - '201': + "201": description: ID mappings for shards in new bucket. content: application/json: schema: - $ref: '#/components/schemas/RestoredBucketMappings' + $ref: "#/components/schemas/RestoredBucketMappings" default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' - '/restore/shards/{shardID}': + $ref: "#/components/responses/GeneralServerError" + "/restore/shards/{shardID}": post: operationId: PostRestoreShardId tags: - Restore summary: Restore a TSM snapshot into a shard. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: header name: Content-Encoding description: | @@ -10448,11 +10448,11 @@ paths: type: string format: binary responses: - '204': + "204": description: TSM snapshot successfully restored. default: description: Unexpected error - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /config: get: operationId: GetConfig @@ -10470,20 +10470,20 @@ paths: - [View your runtime server configuration](https://docs.influxdata.com/influxdb/v2.3/reference/config-options/#view-your-runtime-server-configuration) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" responses: - '200': + "200": description: | Success. The response body contains the active runtime configuration of the InfluxDB instance. content: application/json: schema: - $ref: '#/components/schemas/Config' - '401': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/Config" + "401": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /remotes: get: operationId: GetRemoteConnections @@ -10491,7 +10491,7 @@ paths: - RemoteConnections summary: List all remote connections parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: orgID description: The organization ID. @@ -10508,16 +10508,16 @@ paths: type: string format: uri responses: - '200': + "200": description: List of remote connections content: application/json: schema: - $ref: '#/components/schemas/RemoteConnections' - '404': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/RemoteConnections" + "404": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" post: operationId: PostRemoteConnection tags: @@ -10528,49 +10528,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoteConnectionCreationRequest' + $ref: "#/components/schemas/RemoteConnectionCreationRequest" responses: - '201': + "201": description: Remote connection saved content: application/json: schema: - $ref: '#/components/schemas/RemoteConnection' - '400': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/RemoteConnection" + "400": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/remotes/{remoteID}': + $ref: "#/components/responses/GeneralServerError" + "/remotes/{remoteID}": get: operationId: GetRemoteConnectionByID tags: - RemoteConnections summary: Retrieve a remote connection parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: remoteID schema: type: string required: true responses: - '200': + "200": description: Remote connection content: application/json: schema: - $ref: '#/components/schemas/RemoteConnection' - '404': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/RemoteConnection" + "404": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" patch: operationId: PatchRemoteConnectionByID tags: - RemoteConnections summary: Update a remote connection parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: remoteID schema: @@ -10581,39 +10581,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoteConnectionUpdateRequest' + $ref: "#/components/schemas/RemoteConnectionUpdateRequest" responses: - '200': + "200": description: Updated information saved content: application/json: schema: - $ref: '#/components/schemas/RemoteConnection' - '400': - $ref: '#/components/responses/GeneralServerError' - '404': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/RemoteConnection" + "400": + $ref: "#/components/responses/GeneralServerError" + "404": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" delete: operationId: DeleteRemoteConnectionByID tags: - RemoteConnections summary: Delete a remote connection parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: remoteID schema: type: string required: true responses: - '204': + "204": description: Remote connection info deleted. - '404': - $ref: '#/components/responses/GeneralServerError' + "404": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /replications: get: operationId: GetReplications @@ -10621,7 +10621,7 @@ paths: - Replications summary: List all replications parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: orgID description: The organization ID. @@ -10641,26 +10641,26 @@ paths: schema: type: string responses: - '200': + "200": description: List of replications content: application/json: schema: - $ref: '#/components/schemas/Replications' - '404': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/Replications" + "404": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" post: operationId: PostReplication tags: - Replications summary: Register a new replication parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: validate - description: 'If true, validate the replication, but don''t save it.' + description: "If true, validate the replication, but don't save it." schema: type: boolean default: false @@ -10669,51 +10669,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReplicationCreationRequest' + $ref: "#/components/schemas/ReplicationCreationRequest" responses: - '201': + "201": description: Replication saved content: application/json: schema: - $ref: '#/components/schemas/Replication' - '204': - description: 'Replication validated, but not saved' - '400': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/Replication" + "204": + description: "Replication validated, but not saved" + "400": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/replications/{replicationID}': + $ref: "#/components/responses/GeneralServerError" + "/replications/{replicationID}": get: operationId: GetReplicationByID tags: - Replications summary: Retrieve a replication parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: replicationID schema: type: string required: true responses: - '200': + "200": description: Replication content: application/json: schema: - $ref: '#/components/schemas/Replication' - '404': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/Replication" + "404": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" patch: operationId: PatchReplicationByID tags: - Replications summary: Update a replication parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: replicationID schema: @@ -10721,7 +10721,7 @@ paths: required: true - in: query name: validate - description: 'If true, validate the updated information, but don''t save it.' + description: "If true, validate the updated information, but don't save it." schema: type: boolean default: false @@ -10730,62 +10730,62 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReplicationUpdateRequest' + $ref: "#/components/schemas/ReplicationUpdateRequest" responses: - '200': + "200": description: Updated information saved content: application/json: schema: - $ref: '#/components/schemas/Replication' - '204': - description: 'Updated replication validated, but not saved' - '400': - $ref: '#/components/responses/GeneralServerError' - '404': - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/schemas/Replication" + "204": + description: "Updated replication validated, but not saved" + "400": + $ref: "#/components/responses/GeneralServerError" + "404": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" delete: operationId: DeleteReplicationByID tags: - Replications summary: Delete a replication parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: replicationID schema: type: string required: true responses: - '204': + "204": description: Replication deleted. - '404': - $ref: '#/components/responses/GeneralServerError' + "404": + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' - '/replications/{replicationID}/validate': + $ref: "#/components/responses/GeneralServerError" + "/replications/{replicationID}/validate": post: operationId: PostValidateReplicationByID tags: - Replications summary: Validate a replication parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: replicationID schema: type: string required: true responses: - '204': + "204": description: Replication is valid - '400': + "400": description: Replication failed validation - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" /dashboards: post: operationId: PostDashboards @@ -10793,39 +10793,39 @@ paths: - Dashboards summary: Create a dashboard parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: Dashboard to create required: true content: application/json: schema: - $ref: '#/components/schemas/CreateDashboardRequest' + $ref: "#/components/schemas/CreateDashboardRequest" responses: - '201': + "201": description: Added dashboard content: application/json: schema: oneOf: - - $ref: '#/components/schemas/Dashboard' - - $ref: '#/components/schemas/DashboardWithViewProperties' + - $ref: "#/components/schemas/Dashboard" + - $ref: "#/components/schemas/DashboardWithViewProperties" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" get: operationId: GetDashboards tags: - Dashboards summary: List all dashboards parameters: - - $ref: '#/components/parameters/TraceSpan' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Descending' + - $ref: "#/components/parameters/TraceSpan" + - $ref: "#/components/parameters/Offset" + - $ref: "#/components/parameters/Limit" + - $ref: "#/components/parameters/Descending" - in: query name: owner description: A user identifier. Returns only dashboards where this user has the `owner` role. @@ -10842,7 +10842,7 @@ paths: - UpdatedAt - in: query name: id - description: 'A list of dashboard identifiers. Returns only the listed dashboards. If both `id` and `owner` are specified, only `id` is used.' + description: "A list of dashboard identifiers. Returns only the listed dashboards. If both `id` and `owner` are specified, only `id` is used." schema: type: array items: @@ -10858,18 +10858,18 @@ paths: schema: type: string responses: - '200': + "200": description: All dashboards content: application/json: schema: - $ref: '#/components/schemas/Dashboards' + $ref: "#/components/schemas/Dashboards" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" /tasks: get: operationId: GetTasks @@ -10883,7 +10883,7 @@ paths: To limit which tasks are returned, pass query parameters in your request. If no query parameters are passed, InfluxDB returns all tasks up to the default `limit`. parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: query name: name description: | @@ -10949,20 +10949,20 @@ paths: To reduce the payload size, pass `basic` to omit some task properties (`flux`, `createdAt`, `updatedAt`) from the response. required: false schema: - default: '' + default: "" type: string enum: - basic - system responses: - '200': + "200": description: | Success. The response body contains the list of tasks. content: application/json: schema: - $ref: '#/components/schemas/Tasks' + $ref: "#/components/schemas/Tasks" examples: basicTypeTaskOutput: summary: Basic output @@ -10981,13 +10981,13 @@ paths: labels: [] id: 09956cbb6d378000 orgID: 48c88459ee424a04 - org: '' + org: "" ownerID: 0772396d1f411000 name: task1 status: active - flux: '' + flux: "" every: 30m - latestCompleted: '2022-06-30T15:00:00Z' + latestCompleted: "2022-06-30T15:00:00Z" lastRunStatus: success systemTypeTaskOutput: summary: System output @@ -11019,19 +11019,19 @@ paths: |> filter(fn: (r) => r._measurement == "environment") |> aggregateWindow(every: 1h, fn: mean) every: 30m - latestCompleted: '2022-06-30T15:00:00Z' + latestCompleted: "2022-06-30T15:00:00Z" lastRunStatus: success - createdAt: '2022-06-27T15:09:06Z' - updatedAt: '2022-06-28T18:10:15Z' - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + createdAt: "2022-06-27T15:09:06Z" + updatedAt: "2022-06-28T18:10:15Z" + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" x-codeSamples: - lang: Shell - label: 'cURL: all tasks, basic output' + label: "cURL: all tasks, basic output" source: | curl https://localhost:8086/api/v2/tasks/?limit=-1&type=basic \ --header 'Content-Type: application/json' \ @@ -11052,22 +11052,22 @@ paths: - [Common tasks](https://docs.influxdata.com/influxdb/v2.3/process-data/common-tasks/) - [Task configuration options](https://docs.influxdata.com/influxdb/v2.3/process-data/task-options/) parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" requestBody: description: The task to create. required: true content: application/json: schema: - $ref: '#/components/schemas/TaskCreateRequest' + $ref: "#/components/schemas/TaskCreateRequest" responses: - '201': + "201": description: Success. The response body contains a `tasks` list with the new task. content: application/json: schema: - $ref: '#/components/schemas/Task' - '400': + $ref: "#/components/schemas/Task" + "400": description: | Bad request. The response body contains detail about the error. @@ -11078,31 +11078,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: orgProvidedNotFound: summary: The org or orgID passed doesn't own the token passed in the header value: code: invalid - message: 'failed to decode request body: organization not found' + message: "failed to decode request body: organization not found" missingFluxError: summary: Task in request body is missing Flux query value: code: invalid - message: 'failed to decode request: missing flux' - '401': - $ref: '#/components/responses/AuthorizationError' - '500': - $ref: '#/components/responses/InternalServerError' + message: "failed to decode request: missing flux" + "401": + $ref: "#/components/responses/AuthorizationError" + "500": + $ref: "#/components/responses/InternalServerError" default: description: Unexpected error content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" x-codeSamples: - lang: Shell - label: 'cURL: create a task' + label: "cURL: create a task" source: | curl http://localhost:8086/api/v2/tasks \ --header "Content-type: application/json" \ @@ -11118,7 +11118,7 @@ paths: |> aggregateWindow(every: 1h, fn: mean)" } EOF - '/tasks/{taskID}': + "/tasks/{taskID}": get: operationId: GetTasksID tags: @@ -11128,7 +11128,7 @@ paths: description: | Retrieves a [task](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#task). parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -11136,22 +11136,22 @@ paths: required: true description: The ID of the task to retrieve. responses: - '200': + "200": description: Success. The response body contains the task. content: application/json: schema: - $ref: '#/components/schemas/Task' - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Task" + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" patch: operationId: PatchTasksID tags: @@ -11172,9 +11172,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TaskUpdateRequest' + $ref: "#/components/schemas/TaskUpdateRequest" parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -11182,22 +11182,22 @@ paths: required: true description: The ID of the task to update. responses: - '200': + "200": description: Success. The response body contains the updated task. content: application/json: schema: - $ref: '#/components/schemas/Task' - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + $ref: "#/components/schemas/Task" + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" delete: operationId: DeleteTasksID tags: @@ -11211,7 +11211,7 @@ paths: If you want to disable a task instead of delete it, [update the task status to `inactive`](#operation/PatchTasksID). parameters: - - $ref: '#/components/parameters/TraceSpan' + - $ref: "#/components/parameters/TraceSpan" - in: path name: taskID schema: @@ -11219,18 +11219,18 @@ paths: required: true description: The ID of the task to delete. responses: - '204': + "204": description: Success. The task and runs are deleted. Scheduled runs are canceled. - '400': - $ref: '#/components/responses/BadRequestError' - '401': - $ref: '#/components/responses/AuthorizationError' - '404': - $ref: '#/components/responses/ResourceNotFoundError' - '500': - $ref: '#/components/responses/InternalServerError' + "400": + $ref: "#/components/responses/BadRequestError" + "401": + $ref: "#/components/responses/AuthorizationError" + "404": + $ref: "#/components/responses/ResourceNotFoundError" + "500": + $ref: "#/components/responses/InternalServerError" default: - $ref: '#/components/responses/GeneralServerError' + $ref: "#/components/responses/GeneralServerError" components: parameters: TraceSpan: @@ -11238,8 +11238,8 @@ components: name: Zap-Trace-Span description: OpenTracing span context example: - trace_id: '1' - span_id: '1' + trace_id: "1" + span_id: "1" baggage: key: value required: false @@ -11305,7 +11305,7 @@ components: - query properties: extern: - $ref: '#/components/schemas/File' + $ref: "#/components/schemas/File" query: description: The query script to execute. type: string @@ -11341,7 +11341,7 @@ components: - If you use _`params`_, you can't use _`extern`_. dialect: - $ref: '#/components/schemas/Dialect' + $ref: "#/components/schemas/Dialect" now: description: | Specifies the time that should be reported as `now` in the query. @@ -11353,7 +11353,7 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" path: description: Package import path type: string @@ -11364,46 +11364,46 @@ components: description: Package files type: array items: - $ref: '#/components/schemas/File' + $ref: "#/components/schemas/File" File: description: Represents a source from a single file type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" name: description: The name of the file. type: string package: - $ref: '#/components/schemas/PackageClause' + $ref: "#/components/schemas/PackageClause" imports: description: A list of package imports type: array items: - $ref: '#/components/schemas/ImportDeclaration' + $ref: "#/components/schemas/ImportDeclaration" body: description: List of Flux statements type: array items: - $ref: '#/components/schemas/Statement' + $ref: "#/components/schemas/Statement" PackageClause: description: Defines a package identifier type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" name: - $ref: '#/components/schemas/Identifier' + $ref: "#/components/schemas/Identifier" ImportDeclaration: description: Declares a package import type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" as: - $ref: '#/components/schemas/Identifier' + $ref: "#/components/schemas/Identifier" path: - $ref: '#/components/schemas/StringLiteral' + $ref: "#/components/schemas/StringLiteral" DeletePredicateRequest: description: The delete predicate request. type: object @@ -11430,8 +11430,8 @@ components: type: string Node: oneOf: - - $ref: '#/components/schemas/Expression' - - $ref: '#/components/schemas/Block' + - $ref: "#/components/schemas/Expression" + - $ref: "#/components/schemas/Block" NodeType: description: Type of AST node type: string @@ -11440,28 +11440,28 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" body: description: Block body type: array items: - $ref: '#/components/schemas/Statement' + $ref: "#/components/schemas/Statement" Statement: oneOf: - - $ref: '#/components/schemas/BadStatement' - - $ref: '#/components/schemas/VariableAssignment' - - $ref: '#/components/schemas/MemberAssignment' - - $ref: '#/components/schemas/ExpressionStatement' - - $ref: '#/components/schemas/ReturnStatement' - - $ref: '#/components/schemas/OptionStatement' - - $ref: '#/components/schemas/BuiltinStatement' - - $ref: '#/components/schemas/TestStatement' + - $ref: "#/components/schemas/BadStatement" + - $ref: "#/components/schemas/VariableAssignment" + - $ref: "#/components/schemas/MemberAssignment" + - $ref: "#/components/schemas/ExpressionStatement" + - $ref: "#/components/schemas/ReturnStatement" + - $ref: "#/components/schemas/OptionStatement" + - $ref: "#/components/schemas/BuiltinStatement" + - $ref: "#/components/schemas/TestStatement" BadStatement: description: A placeholder for statements for which no correct statement nodes can be created type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" text: description: Raw source text type: string @@ -11470,255 +11470,255 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" id: - $ref: '#/components/schemas/Identifier' + $ref: "#/components/schemas/Identifier" init: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" MemberAssignment: description: Object property assignment type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" member: - $ref: '#/components/schemas/MemberExpression' + $ref: "#/components/schemas/MemberExpression" init: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" ExpressionStatement: description: May consist of an expression that doesn't return a value and is executed solely for its side-effects type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" expression: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" ReturnStatement: description: Defines an expression to return type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" argument: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" OptionStatement: description: A single variable declaration type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" assignment: oneOf: - - $ref: '#/components/schemas/VariableAssignment' - - $ref: '#/components/schemas/MemberAssignment' + - $ref: "#/components/schemas/VariableAssignment" + - $ref: "#/components/schemas/MemberAssignment" BuiltinStatement: description: Declares a builtin identifier and its type type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" id: - $ref: '#/components/schemas/Identifier' + $ref: "#/components/schemas/Identifier" TestStatement: description: Declares a Flux test case type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" assignment: - $ref: '#/components/schemas/VariableAssignment' + $ref: "#/components/schemas/VariableAssignment" Expression: oneOf: - - $ref: '#/components/schemas/ArrayExpression' - - $ref: '#/components/schemas/DictExpression' - - $ref: '#/components/schemas/FunctionExpression' - - $ref: '#/components/schemas/BinaryExpression' - - $ref: '#/components/schemas/CallExpression' - - $ref: '#/components/schemas/ConditionalExpression' - - $ref: '#/components/schemas/LogicalExpression' - - $ref: '#/components/schemas/MemberExpression' - - $ref: '#/components/schemas/IndexExpression' - - $ref: '#/components/schemas/ObjectExpression' - - $ref: '#/components/schemas/ParenExpression' - - $ref: '#/components/schemas/PipeExpression' - - $ref: '#/components/schemas/UnaryExpression' - - $ref: '#/components/schemas/BooleanLiteral' - - $ref: '#/components/schemas/DateTimeLiteral' - - $ref: '#/components/schemas/DurationLiteral' - - $ref: '#/components/schemas/FloatLiteral' - - $ref: '#/components/schemas/IntegerLiteral' - - $ref: '#/components/schemas/PipeLiteral' - - $ref: '#/components/schemas/RegexpLiteral' - - $ref: '#/components/schemas/StringLiteral' - - $ref: '#/components/schemas/UnsignedIntegerLiteral' - - $ref: '#/components/schemas/Identifier' + - $ref: "#/components/schemas/ArrayExpression" + - $ref: "#/components/schemas/DictExpression" + - $ref: "#/components/schemas/FunctionExpression" + - $ref: "#/components/schemas/BinaryExpression" + - $ref: "#/components/schemas/CallExpression" + - $ref: "#/components/schemas/ConditionalExpression" + - $ref: "#/components/schemas/LogicalExpression" + - $ref: "#/components/schemas/MemberExpression" + - $ref: "#/components/schemas/IndexExpression" + - $ref: "#/components/schemas/ObjectExpression" + - $ref: "#/components/schemas/ParenExpression" + - $ref: "#/components/schemas/PipeExpression" + - $ref: "#/components/schemas/UnaryExpression" + - $ref: "#/components/schemas/BooleanLiteral" + - $ref: "#/components/schemas/DateTimeLiteral" + - $ref: "#/components/schemas/DurationLiteral" + - $ref: "#/components/schemas/FloatLiteral" + - $ref: "#/components/schemas/IntegerLiteral" + - $ref: "#/components/schemas/PipeLiteral" + - $ref: "#/components/schemas/RegexpLiteral" + - $ref: "#/components/schemas/StringLiteral" + - $ref: "#/components/schemas/UnsignedIntegerLiteral" + - $ref: "#/components/schemas/Identifier" ArrayExpression: description: Used to create and directly specify the elements of an array object type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" elements: description: Elements of the array type: array items: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" DictExpression: description: Used to create and directly specify the elements of a dictionary type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" elements: description: Elements of the dictionary type: array items: - $ref: '#/components/schemas/DictItem' + $ref: "#/components/schemas/DictItem" DictItem: description: A key-value pair in a dictionary. type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" key: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" val: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" FunctionExpression: description: Function expression type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" params: description: Function parameters type: array items: - $ref: '#/components/schemas/Property' + $ref: "#/components/schemas/Property" body: - $ref: '#/components/schemas/Node' + $ref: "#/components/schemas/Node" BinaryExpression: description: uses binary operators to act on two operands in an expression type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" operator: type: string left: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" right: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" CallExpression: description: Represents a function call type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" callee: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" arguments: description: Function arguments type: array items: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" ConditionalExpression: - description: 'Selects one of two expressions, `Alternate` or `Consequent`, depending on a third boolean expression, `Test`' + description: "Selects one of two expressions, `Alternate` or `Consequent`, depending on a third boolean expression, `Test`" type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" test: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" alternate: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" consequent: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" LogicalExpression: description: Represents the rule conditions that collectively evaluate to either true or false type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" operator: type: string left: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" right: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" MemberExpression: description: Represents accessing a property of an object type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" object: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" property: - $ref: '#/components/schemas/PropertyKey' + $ref: "#/components/schemas/PropertyKey" IndexExpression: description: Represents indexing into an array type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" array: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" index: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" ObjectExpression: description: Allows the declaration of an anonymous object within a declaration type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" properties: description: Object properties type: array items: - $ref: '#/components/schemas/Property' + $ref: "#/components/schemas/Property" ParenExpression: description: Represents an expression wrapped in parenthesis type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" expression: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" PipeExpression: description: Call expression with pipe argument type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" argument: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" call: - $ref: '#/components/schemas/CallExpression' + $ref: "#/components/schemas/CallExpression" UnaryExpression: description: Uses operators to act on a single operand in an expression type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" operator: type: string argument: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" BooleanLiteral: description: Represents boolean values type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" value: type: boolean DateTimeLiteral: - description: 'Represents an instant in time with nanosecond precision in [RFC3339Nano date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339nano-timestamp).' + description: "Represents an instant in time with nanosecond precision in [RFC3339Nano date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339nano-timestamp)." type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" value: type: string format: date-time @@ -11727,18 +11727,18 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" values: description: Duration values type: array items: - $ref: '#/components/schemas/Duration' + $ref: "#/components/schemas/Duration" FloatLiteral: description: Represents floating point numbers according to the double representations defined by the IEEE-754-1985 type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" value: type: number IntegerLiteral: @@ -11746,21 +11746,21 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" value: type: string PipeLiteral: - description: 'Represents a specialized literal value, indicating the left hand value of a pipe expression' + description: "Represents a specialized literal value, indicating the left hand value of a pipe expression" type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" RegexpLiteral: description: Expressions begin and end with `/` and are regular expressions with syntax accepted by RE2 type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" value: type: string StringLiteral: @@ -11768,7 +11768,7 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" value: type: string UnsignedIntegerLiteral: @@ -11776,7 +11776,7 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" value: type: string Duration: @@ -11784,7 +11784,7 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" magnitude: type: integer unit: @@ -11794,21 +11794,21 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" key: - $ref: '#/components/schemas/PropertyKey' + $ref: "#/components/schemas/PropertyKey" value: - $ref: '#/components/schemas/Expression' + $ref: "#/components/schemas/Expression" PropertyKey: oneOf: - - $ref: '#/components/schemas/Identifier' - - $ref: '#/components/schemas/StringLiteral' + - $ref: "#/components/schemas/Identifier" + - $ref: "#/components/schemas/StringLiteral" Identifier: description: A valid Flux identifier type: object properties: type: - $ref: '#/components/schemas/NodeType' + $ref: "#/components/schemas/NodeType" name: type: string Dialect: @@ -11821,13 +11821,13 @@ components: type: object properties: header: - description: 'If true, the results contain a header row.' + description: "If true, the results contain a header row." type: boolean default: true delimiter: - description: 'The separator used between cells. Default is a comma (`,`).' + description: "The separator used between cells. Default is a comma (`,`)." type: string - default: ',' + default: "," maxLength: 1 minLength: 1 annotations: @@ -11852,7 +11852,7 @@ components: commentPrefix: description: The character prefixed to comment strings. Default is a number sign (`#`). type: string - default: '#' + default: "#" maxLength: 1 minLength: 0 dateTimeFormat: @@ -11875,7 +11875,7 @@ components: AuthorizationUpdateRequest: properties: status: - description: 'Status of the token. If `inactive`, requests using the token will be rejected.' + description: "Status of the token. If `inactive`, requests using the token will be rejected." default: active type: string enum: @@ -11907,9 +11907,9 @@ components: The InfluxDB 2.x and Cloud equivalent is [retention period](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#retention-period). type: string - default: '0' + default: "0" retentionRules: - $ref: '#/components/schemas/RetentionRules' + $ref: "#/components/schemas/RetentionRules" schemaType: description: | Schema Type. @@ -11923,7 +11923,7 @@ components: #### InfluxDB OSS - Doesn't support `schemaType`. - $ref: '#/components/schemas/SchemaType' + $ref: "#/components/schemas/SchemaType" default: implicit required: - orgID @@ -11943,22 +11943,22 @@ components: properties: labels: description: URL to retrieve labels for this bucket. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: description: URL to retrieve members that can read this bucket. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" org: description: URL to retrieve parent organization for this bucket. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: description: URL to retrieve owners that can read and write to this bucket. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" self: description: URL for this bucket. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" write: description: URL to write line protocol to this bucket. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" id: readOnly: true type: string @@ -11978,7 +11978,7 @@ components: rp: type: string schemaType: - $ref: '#/components/schemas/SchemaType' + $ref: "#/components/schemas/SchemaType" default: implicit createdAt: type: string @@ -11989,9 +11989,9 @@ components: format: date-time readOnly: true retentionRules: - $ref: '#/components/schemas/RetentionRules' + $ref: "#/components/schemas/RetentionRules" labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" required: - name - retentionRules @@ -12000,11 +12000,11 @@ components: properties: links: readOnly: true - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" buckets: type: array items: - $ref: '#/components/schemas/Bucket' + $ref: "#/components/schemas/Bucket" RetentionRules: type: array description: | @@ -12017,7 +12017,7 @@ components: - `retentionRules` isn't required. items: - $ref: '#/components/schemas/RetentionRule' + $ref: "#/components/schemas/RetentionRule" PatchBucketRequest: type: object description: | @@ -12032,12 +12032,12 @@ components: A description of the bucket. type: string retentionRules: - $ref: '#/components/schemas/PatchRetentionRules' + $ref: "#/components/schemas/PatchRetentionRules" PatchRetentionRules: type: array description: Updates to rules to expire or retain data. No rules means no updates. items: - $ref: '#/components/schemas/PatchRetentionRule' + $ref: "#/components/schemas/PatchRetentionRule" PatchRetentionRule: type: object properties: @@ -12122,11 +12122,11 @@ components: URI pointers for additional paged results. properties: next: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" self: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" prev: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" required: - self Logs: @@ -12136,16 +12136,16 @@ components: readOnly: true type: array items: - $ref: '#/components/schemas/LogEvent' + $ref: "#/components/schemas/LogEvent" LogEvent: type: object properties: time: readOnly: true - description: 'The time ([RFC3339Nano date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339nano-timestamp)) that the event occurred.' + description: "The time ([RFC3339Nano date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339nano-timestamp)) that the event occurred." type: string format: date-time - example: '2006-01-02T15:04:05.999999999Z07:00' + example: "2006-01-02T15:04:05.999999999Z07:00" message: readOnly: true description: A description of the event that occurred. @@ -12171,21 +12171,21 @@ components: dashboards: /api/v2/dashboards?org=myorg properties: self: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" secrets: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" buckets: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" tasks: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" dashboards: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" id: readOnly: true type: string @@ -12214,11 +12214,11 @@ components: type: object properties: links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" orgs: type: array items: - $ref: '#/components/schemas/Organization' + $ref: "#/components/schemas/Organization" PostOrganizationRequest: type: object properties: @@ -12289,7 +12289,7 @@ components: items: type: string contents: - $ref: '#/components/schemas/Template' + $ref: "#/components/schemas/Template" templates: type: array description: | @@ -12309,7 +12309,7 @@ components: items: type: string contents: - $ref: '#/components/schemas/Template' + $ref: "#/components/schemas/Template" envRefs: type: object description: | @@ -12422,7 +12422,7 @@ components: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" required: - kind - type: object @@ -12435,7 +12435,7 @@ components: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" resourceTemplateName: type: string required: @@ -12480,7 +12480,7 @@ components: byResourceKind: type: array items: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" resources: type: array items: @@ -12489,10 +12489,10 @@ components: id: type: string kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" name: type: string - description: 'if defined with id, name is used for resource exported by id. if defined independently, resources strictly matching name are exported' + description: "if defined with id, name is used for resource exported by id. if defined independently, resources strictly matching name are exported" required: - id - kind @@ -12518,14 +12518,14 @@ components: byResourceKind: type: array items: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" resources: type: array items: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" name: type: string required: @@ -12543,7 +12543,7 @@ components: type: string example: influxdata.com/v2alpha1 kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" metadata: type: object description: | @@ -12636,7 +12636,7 @@ components: orgID: type: string kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string name: @@ -12648,26 +12648,26 @@ components: labelAssociations: type: array items: - $ref: '#/components/schemas/TemplateSummaryLabel' + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" checks: type: array items: allOf: - - $ref: '#/components/schemas/CheckDiscriminator' + - $ref: "#/components/schemas/CheckDiscriminator" - type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string labelAssociations: type: array items: - $ref: '#/components/schemas/TemplateSummaryLabel' + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" dashboards: type: array items: @@ -12678,7 +12678,7 @@ components: orgID: type: string kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string name: @@ -12688,17 +12688,17 @@ components: labelAssociations: type: array items: - $ref: '#/components/schemas/TemplateSummaryLabel' + $ref: "#/components/schemas/TemplateSummaryLabel" charts: type: array items: - $ref: '#/components/schemas/TemplateChart' + $ref: "#/components/schemas/TemplateChart" envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" labels: type: array items: - $ref: '#/components/schemas/TemplateSummaryLabel' + $ref: "#/components/schemas/TemplateSummaryLabel" labelMappings: type: array items: @@ -12732,26 +12732,26 @@ components: type: array items: allOf: - - $ref: '#/components/schemas/NotificationEndpointDiscriminator' + - $ref: "#/components/schemas/NotificationEndpointDiscriminator" - type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string labelAssociations: type: array items: - $ref: '#/components/schemas/TemplateSummaryLabel' + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" notificationRules: type: array items: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string name: @@ -12795,16 +12795,16 @@ components: labelAssociations: type: array items: - $ref: '#/components/schemas/TemplateSummaryLabel' + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" tasks: type: array items: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string id: @@ -12824,31 +12824,31 @@ components: status: type: string envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" telegrafConfigs: type: array items: allOf: - - $ref: '#/components/schemas/TelegrafRequest' + - $ref: "#/components/schemas/TelegrafRequest" - type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string labelAssociations: type: array items: - $ref: '#/components/schemas/TemplateSummaryLabel' + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" variables: type: array items: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string id: @@ -12860,13 +12860,13 @@ components: description: type: string arguments: - $ref: '#/components/schemas/VariableProperties' + $ref: "#/components/schemas/VariableProperties" labelAssociations: type: array items: - $ref: '#/components/schemas/TemplateSummaryLabel' + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" diff: type: object properties: @@ -12876,7 +12876,7 @@ components: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: @@ -12891,7 +12891,7 @@ components: description: type: string retentionRules: - $ref: '#/components/schemas/RetentionRules' + $ref: "#/components/schemas/RetentionRules" old: type: object properties: @@ -12900,14 +12900,14 @@ components: description: type: string retentionRules: - $ref: '#/components/schemas/RetentionRules' + $ref: "#/components/schemas/RetentionRules" checks: type: array items: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: @@ -12915,9 +12915,9 @@ components: templateMetaName: type: string new: - $ref: '#/components/schemas/CheckDiscriminator' + $ref: "#/components/schemas/CheckDiscriminator" old: - $ref: '#/components/schemas/CheckDiscriminator' + $ref: "#/components/schemas/CheckDiscriminator" dashboards: type: array items: @@ -12928,7 +12928,7 @@ components: id: type: string kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string new: @@ -12941,7 +12941,7 @@ components: charts: type: array items: - $ref: '#/components/schemas/TemplateChart' + $ref: "#/components/schemas/TemplateChart" old: type: object properties: @@ -12952,7 +12952,7 @@ components: charts: type: array items: - $ref: '#/components/schemas/TemplateChart' + $ref: "#/components/schemas/TemplateChart" labels: type: array items: @@ -12961,7 +12961,7 @@ components: stateStatus: type: string kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" id: type: string templateMetaName: @@ -13011,7 +13011,7 @@ components: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: @@ -13019,16 +13019,16 @@ components: templateMetaName: type: string new: - $ref: '#/components/schemas/NotificationEndpointDiscriminator' + $ref: "#/components/schemas/NotificationEndpointDiscriminator" old: - $ref: '#/components/schemas/NotificationEndpointDiscriminator' + $ref: "#/components/schemas/NotificationEndpointDiscriminator" notificationRules: type: array items: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: @@ -13123,7 +13123,7 @@ components: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: @@ -13170,7 +13170,7 @@ components: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: @@ -13178,16 +13178,16 @@ components: templateMetaName: type: string new: - $ref: '#/components/schemas/TelegrafRequest' + $ref: "#/components/schemas/TelegrafRequest" old: - $ref: '#/components/schemas/TelegrafRequest' + $ref: "#/components/schemas/TelegrafRequest" variables: type: array items: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: @@ -13202,7 +13202,7 @@ components: description: type: string args: - $ref: '#/components/schemas/VariableProperties' + $ref: "#/components/schemas/VariableProperties" old: type: object properties: @@ -13211,14 +13211,14 @@ components: description: type: string args: - $ref: '#/components/schemas/VariableProperties' + $ref: "#/components/schemas/VariableProperties" errors: type: array items: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" reason: type: string fields: @@ -13237,7 +13237,7 @@ components: orgID: type: string kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string name: @@ -13250,7 +13250,7 @@ components: description: type: string envReferences: - $ref: '#/components/schemas/TemplateEnvReferences' + $ref: "#/components/schemas/TemplateEnvReferences" TemplateChart: type: object properties: @@ -13263,7 +13263,7 @@ components: width: type: integer properties: - $ref: '#/components/schemas/ViewProperties' + $ref: "#/components/schemas/ViewProperties" Stack: type: object properties: @@ -13300,7 +13300,7 @@ components: resourceID: type: string kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" templateMetaName: type: string associations: @@ -13309,7 +13309,7 @@ components: type: object properties: kind: - $ref: '#/components/schemas/TemplateKind' + $ref: "#/components/schemas/TemplateKind" metaName: type: string links: @@ -13329,11 +13329,11 @@ components: type: object properties: links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" runs: type: array items: - $ref: '#/components/schemas/Run' + $ref: "#/components/schemas/Run" Run: properties: id: @@ -13352,7 +13352,7 @@ components: - success - canceled scheduledFor: - description: 'The time [RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp) used for the run''s `now` option.' + description: "The time [RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp) used for the run's `now` option." type: string format: date-time log: @@ -13360,29 +13360,29 @@ components: type: array readOnly: true items: - $ref: '#/components/schemas/LogEvent' + $ref: "#/components/schemas/LogEvent" flux: description: Flux used for the task type: string readOnly: true startedAt: readOnly: true - description: 'The time ([RFC3339Nano date/time format](https://go.dev/src/time/format.go)) the run started executing.' + description: "The time ([RFC3339Nano date/time format](https://go.dev/src/time/format.go)) the run started executing." type: string format: date-time - example: '2006-01-02T15:04:05.999999999Z07:00' + example: "2006-01-02T15:04:05.999999999Z07:00" finishedAt: readOnly: true - description: 'The time ([RFC3339Nano date/time format](https://go.dev/src/time/format.go)) the run finished executing.' + description: "The time ([RFC3339Nano date/time format](https://go.dev/src/time/format.go)) the run finished executing." type: string format: date-time - example: '2006-01-02T15:04:05.999999999Z07:00' + example: "2006-01-02T15:04:05.999999999Z07:00" requestedAt: readOnly: true - description: 'The time ([RFC3339Nano date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339nano-timestamp)) the run was manually requested.' + description: "The time ([RFC3339Nano date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339nano-timestamp)) the run was manually requested." type: string format: date-time - example: '2006-01-02T15:04:05.999999999Z07:00' + example: "2006-01-02T15:04:05.999999999Z07:00" links: type: object readOnly: true @@ -13452,7 +13452,7 @@ components: additionalProperties: true ResourceMember: allOf: - - $ref: '#/components/schemas/UserResponse' + - $ref: "#/components/schemas/UserResponse" - type: object properties: role: @@ -13472,10 +13472,10 @@ components: users: type: array items: - $ref: '#/components/schemas/ResourceMember' + $ref: "#/components/schemas/ResourceMember" ResourceOwner: allOf: - - $ref: '#/components/schemas/UserResponse' + - $ref: "#/components/schemas/UserResponse" - type: object properties: role: @@ -13495,14 +13495,14 @@ components: users: type: array items: - $ref: '#/components/schemas/ResourceOwner' + $ref: "#/components/schemas/ResourceOwner" FluxSuggestions: type: object properties: funcs: type: array items: - $ref: '#/components/schemas/FluxSuggestion' + $ref: "#/components/schemas/FluxSuggestion" FluxSuggestion: type: object properties: @@ -13680,7 +13680,7 @@ components: description: value is the value of the field. Meaning of the value is implied by the `type` key type: string type: - description: '`type` describes the field type. `func` is a function. `field` is a field reference.' + description: "`type` describes the field type. `func` is a function. `field` is a field reference." type: string enum: - func @@ -13696,7 +13696,7 @@ components: description: Args are the arguments to the function type: array items: - $ref: '#/components/schemas/Field' + $ref: "#/components/schemas/Field" BuilderConfig: type: object properties: @@ -13707,11 +13707,11 @@ components: tags: type: array items: - $ref: '#/components/schemas/BuilderTagsType' + $ref: "#/components/schemas/BuilderTagsType" functions: type: array items: - $ref: '#/components/schemas/BuilderFunctionsType' + $ref: "#/components/schemas/BuilderFunctionsType" aggregateWindow: type: object properties: @@ -13729,7 +13729,7 @@ components: items: type: string aggregateFunctionType: - $ref: '#/components/schemas/BuilderAggregateFunctionType' + $ref: "#/components/schemas/BuilderAggregateFunctionType" BuilderAggregateFunctionType: type: string enum: @@ -13747,11 +13747,11 @@ components: type: string description: The text of the Flux query. editMode: - $ref: '#/components/schemas/QueryEditMode' + $ref: "#/components/schemas/QueryEditMode" name: type: string builderConfig: - $ref: '#/components/schemas/BuilderConfig' + $ref: "#/components/schemas/BuilderConfig" QueryEditMode: type: string enum: @@ -13765,7 +13765,7 @@ components: type: array minItems: 0 maxItems: 2 - description: 'The extents of the axis in the form [lower, upper]. Clients determine whether bounds are inclusive or exclusive of their limits.' + description: "The extents of the axis in the form [lower, upper]. Clients determine whether bounds are inclusive or exclusive of their limits." items: type: string label: @@ -13781,11 +13781,11 @@ components: description: Radix for formatting axis values. type: string enum: - - '' - - '2' - - '10' + - "" + - "2" + - "10" scale: - $ref: '#/components/schemas/AxisScale' + $ref: "#/components/schemas/AxisScale" AxisScale: description: 'Scale is the axis formatting scale. Supported: "log", "linear"' type: string @@ -13865,15 +13865,15 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" colorMapping: description: An object that contains information about the color mapping - $ref: '#/components/schemas/ColorMapping' + $ref: "#/components/schemas/ColorMapping" shape: type: string enum: @@ -13881,12 +13881,12 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean axes: - $ref: '#/components/schemas/Axes' + $ref: "#/components/schemas/Axes" staticLegend: - $ref: '#/components/schemas/StaticLegend' + $ref: "#/components/schemas/StaticLegend" xColumn: type: string generateXAxisTicks: @@ -13922,7 +13922,7 @@ components: enum: - auto - x - - 'y' + - "y" - xy position: type: string @@ -13930,7 +13930,7 @@ components: - overlaid - stacked geom: - $ref: '#/components/schemas/XYGeom' + $ref: "#/components/schemas/XYGeom" legendColorizeRows: type: boolean legendHide: @@ -13973,12 +13973,12 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" shape: type: string enum: @@ -13986,12 +13986,12 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean axes: - $ref: '#/components/schemas/Axes' + $ref: "#/components/schemas/Axes" staticLegend: - $ref: '#/components/schemas/StaticLegend' + $ref: "#/components/schemas/StaticLegend" xColumn: type: string generateXAxisTicks: @@ -14031,10 +14031,10 @@ components: enum: - auto - x - - 'y' + - "y" - xy geom: - $ref: '#/components/schemas/XYGeom' + $ref: "#/components/schemas/XYGeom" legendColorizeRows: type: boolean legendHide: @@ -14070,12 +14070,12 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" shape: type: string enum: @@ -14083,12 +14083,12 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean axes: - $ref: '#/components/schemas/Axes' + $ref: "#/components/schemas/Axes" staticLegend: - $ref: '#/components/schemas/StaticLegend' + $ref: "#/components/schemas/StaticLegend" xColumn: type: string generateXAxisTicks: @@ -14124,7 +14124,7 @@ components: enum: - auto - x - - 'y' + - "y" - xy position: type: string @@ -14136,7 +14136,7 @@ components: suffix: type: string decimalPlaces: - $ref: '#/components/schemas/DecimalPlaces' + $ref: "#/components/schemas/DecimalPlaces" legendColorizeRows: type: boolean legendHide: @@ -14176,7 +14176,7 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array @@ -14189,7 +14189,7 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean xColumn: type: string @@ -14246,7 +14246,7 @@ components: enum: - auto - x - - 'y' + - "y" - xy legendColorizeRows: type: boolean @@ -14290,7 +14290,7 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array @@ -14303,7 +14303,7 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean xColumn: type: string @@ -14404,7 +14404,7 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array @@ -14417,7 +14417,7 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean xColumn: type: string @@ -14502,12 +14502,12 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" shape: type: string enum: @@ -14515,7 +14515,7 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean prefix: type: string @@ -14526,9 +14526,9 @@ components: tickSuffix: type: string staticLegend: - $ref: '#/components/schemas/StaticLegend' + $ref: "#/components/schemas/StaticLegend" decimalPlaces: - $ref: '#/components/schemas/DecimalPlaces' + $ref: "#/components/schemas/DecimalPlaces" HistogramViewProperties: type: object required: @@ -14552,12 +14552,12 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" shape: type: string enum: @@ -14565,7 +14565,7 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean xColumn: type: string @@ -14618,12 +14618,12 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" shape: type: string enum: @@ -14631,7 +14631,7 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean prefix: type: string @@ -14642,7 +14642,7 @@ components: tickSuffix: type: string decimalPlaces: - $ref: '#/components/schemas/DecimalPlaces' + $ref: "#/components/schemas/DecimalPlaces" TableViewProperties: type: object required: @@ -14664,12 +14664,12 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" shape: type: string enum: @@ -14677,7 +14677,7 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean tableOptions: type: object @@ -14686,7 +14686,7 @@ components: description: verticalTimeAxis describes the orientation of the table by indicating whether the time axis will be displayed vertically type: boolean sortBy: - $ref: '#/components/schemas/RenamableField' + $ref: "#/components/schemas/RenamableField" wrapping: description: Wrapping describes the text wrapping style to be used in table views type: string @@ -14701,12 +14701,12 @@ components: description: fieldOptions represent the fields retrieved by the query with customization options type: array items: - $ref: '#/components/schemas/RenamableField' + $ref: "#/components/schemas/RenamableField" timeFormat: description: timeFormat describes the display format for time values according to moment.js date formatting type: string decimalPlaces: - $ref: '#/components/schemas/DecimalPlaces' + $ref: "#/components/schemas/DecimalPlaces" SimpleTableViewProperties: type: object required: @@ -14726,7 +14726,7 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" shape: type: string enum: @@ -14734,7 +14734,7 @@ components: note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean MarkdownViewProperties: type: object @@ -14775,16 +14775,16 @@ components: checkID: type: string check: - $ref: '#/components/schemas/Check' + $ref: "#/components/schemas/Check" queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" legendColorizeRows: type: boolean legendHide: @@ -14797,10 +14797,10 @@ components: GeoViewLayer: type: object oneOf: - - $ref: '#/components/schemas/GeoCircleViewLayer' - - $ref: '#/components/schemas/GeoHeatMapViewLayer' - - $ref: '#/components/schemas/GeoPointMapViewLayer' - - $ref: '#/components/schemas/GeoTrackMapViewLayer' + - $ref: "#/components/schemas/GeoCircleViewLayer" + - $ref: "#/components/schemas/GeoHeatMapViewLayer" + - $ref: "#/components/schemas/GeoPointMapViewLayer" + - $ref: "#/components/schemas/GeoTrackMapViewLayer" GeoViewLayerProperties: type: object required: @@ -14815,7 +14815,7 @@ components: - trackMap GeoCircleViewLayer: allOf: - - $ref: '#/components/schemas/GeoViewLayerProperties' + - $ref: "#/components/schemas/GeoViewLayerProperties" - type: object required: - radiusField @@ -14828,17 +14828,17 @@ components: type: string description: Radius field radiusDimension: - $ref: '#/components/schemas/Axis' + $ref: "#/components/schemas/Axis" colorField: type: string description: Circle color field colorDimension: - $ref: '#/components/schemas/Axis' + $ref: "#/components/schemas/Axis" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" radius: description: Maximum radius size in pixels type: integer @@ -14847,7 +14847,7 @@ components: type: boolean GeoPointMapViewLayer: allOf: - - $ref: '#/components/schemas/GeoViewLayerProperties' + - $ref: "#/components/schemas/GeoViewLayerProperties" - type: object required: - colorField @@ -14858,12 +14858,12 @@ components: type: string description: Marker color field colorDimension: - $ref: '#/components/schemas/Axis' + $ref: "#/components/schemas/Axis" colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" isClustered: description: Cluster close markers together type: boolean @@ -14874,7 +14874,7 @@ components: type: string GeoTrackMapViewLayer: allOf: - - $ref: '#/components/schemas/GeoViewLayerProperties' + - $ref: "#/components/schemas/GeoViewLayerProperties" - type: object required: - trackWidth @@ -14895,10 +14895,10 @@ components: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" GeoHeatMapViewLayer: allOf: - - $ref: '#/components/schemas/GeoViewLayerProperties' + - $ref: "#/components/schemas/GeoViewLayerProperties" - type: object required: - intensityField @@ -14911,7 +14911,7 @@ components: type: string description: Intensity field intensityDimension: - $ref: '#/components/schemas/Axis' + $ref: "#/components/schemas/Axis" radius: description: Radius size in pixels type: integer @@ -14922,7 +14922,7 @@ components: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" GeoViewProperties: type: object required: @@ -14944,7 +14944,7 @@ components: queries: type: array items: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" shape: type: string enum: @@ -14971,39 +14971,39 @@ components: minimum: 1 maximum: 28 allowPanAndZoom: - description: 'If true, map zoom and pan controls are enabled on the dashboard view' + description: "If true, map zoom and pan controls are enabled on the dashboard view" type: boolean default: true detectCoordinateFields: - description: 'If true, search results get automatically regroupped so that lon,lat and value are treated as columns' + description: "If true, search results get automatically regroupped so that lon,lat and value are treated as columns" type: boolean default: true useS2CellID: - description: 'If true, S2 column is used to calculate lat/lon' + description: "If true, S2 column is used to calculate lat/lon" type: boolean s2Column: description: String to define the column type: string latLonColumns: - $ref: '#/components/schemas/LatLonColumns' + $ref: "#/components/schemas/LatLonColumns" mapStyle: - description: 'Define map type - regular, satellite etc.' + description: "Define map type - regular, satellite etc." type: string note: type: string showNoteWhenEmpty: - description: 'If true, will display note when empty' + description: "If true, will display note when empty" type: boolean colors: description: Colors define color encoding of data into a visualization type: array items: - $ref: '#/components/schemas/DashboardColor' + $ref: "#/components/schemas/DashboardColor" layers: description: List of individual layers shown in the map type: array items: - $ref: '#/components/schemas/GeoViewLayer' + $ref: "#/components/schemas/GeoViewLayer" LatLonColumns: description: Object type to define lat/lon columns type: object @@ -15012,9 +15012,9 @@ components: - lon properties: lat: - $ref: '#/components/schemas/LatLonColumn' + $ref: "#/components/schemas/LatLonColumn" lon: - $ref: '#/components/schemas/LatLonColumn' + $ref: "#/components/schemas/LatLonColumn" LatLonColumn: description: Object type for key and column definitions type: object @@ -15033,12 +15033,12 @@ components: type: object required: - x - - 'y' + - "y" properties: x: - $ref: '#/components/schemas/Axis' - 'y': - $ref: '#/components/schemas/Axis' + $ref: "#/components/schemas/Axis" + "y": + $ref: "#/components/schemas/Axis" StaticLegend: description: StaticLegend represents the options specific to the static legend type: object @@ -15061,7 +15061,7 @@ components: type: number format: float DecimalPlaces: - description: 'Indicates whether decimal places should be enforced, and how many digits it should show.' + description: "Indicates whether decimal places should be enforced, and how many digits it should show." type: object properties: isEnforced: @@ -15107,25 +15107,25 @@ components: VariableProperties: type: object oneOf: - - $ref: '#/components/schemas/QueryVariableProperties' - - $ref: '#/components/schemas/ConstantVariableProperties' - - $ref: '#/components/schemas/MapVariableProperties' + - $ref: "#/components/schemas/QueryVariableProperties" + - $ref: "#/components/schemas/ConstantVariableProperties" + - $ref: "#/components/schemas/MapVariableProperties" ViewProperties: oneOf: - - $ref: '#/components/schemas/LinePlusSingleStatProperties' - - $ref: '#/components/schemas/XYViewProperties' - - $ref: '#/components/schemas/SingleStatViewProperties' - - $ref: '#/components/schemas/HistogramViewProperties' - - $ref: '#/components/schemas/GaugeViewProperties' - - $ref: '#/components/schemas/TableViewProperties' - - $ref: '#/components/schemas/SimpleTableViewProperties' - - $ref: '#/components/schemas/MarkdownViewProperties' - - $ref: '#/components/schemas/CheckViewProperties' - - $ref: '#/components/schemas/ScatterViewProperties' - - $ref: '#/components/schemas/HeatmapViewProperties' - - $ref: '#/components/schemas/MosaicViewProperties' - - $ref: '#/components/schemas/BandViewProperties' - - $ref: '#/components/schemas/GeoViewProperties' + - $ref: "#/components/schemas/LinePlusSingleStatProperties" + - $ref: "#/components/schemas/XYViewProperties" + - $ref: "#/components/schemas/SingleStatViewProperties" + - $ref: "#/components/schemas/HistogramViewProperties" + - $ref: "#/components/schemas/GaugeViewProperties" + - $ref: "#/components/schemas/TableViewProperties" + - $ref: "#/components/schemas/SimpleTableViewProperties" + - $ref: "#/components/schemas/MarkdownViewProperties" + - $ref: "#/components/schemas/CheckViewProperties" + - $ref: "#/components/schemas/ScatterViewProperties" + - $ref: "#/components/schemas/HeatmapViewProperties" + - $ref: "#/components/schemas/MosaicViewProperties" + - $ref: "#/components/schemas/BandViewProperties" + - $ref: "#/components/schemas/GeoViewProperties" View: required: - name @@ -15143,7 +15143,7 @@ components: name: type: string properties: - $ref: '#/components/schemas/ViewProperties' + $ref: "#/components/schemas/ViewProperties" Views: type: object properties: @@ -15155,14 +15155,14 @@ components: views: type: array items: - $ref: '#/components/schemas/View' + $ref: "#/components/schemas/View" CellUpdate: type: object properties: x: type: integer format: int32 - 'y': + "y": type: integer format: int32 w: @@ -15179,7 +15179,7 @@ components: x: type: integer format: int32 - 'y': + "y": type: integer format: int32 w: @@ -15210,13 +15210,13 @@ components: CellWithViewProperties: type: object allOf: - - $ref: '#/components/schemas/Cell' + - $ref: "#/components/schemas/Cell" - type: object properties: name: type: string properties: - $ref: '#/components/schemas/ViewProperties' + $ref: "#/components/schemas/ViewProperties" Cell: type: object properties: @@ -15232,7 +15232,7 @@ components: x: type: integer format: int32 - 'y': + "y": type: integer format: int32 w: @@ -15247,11 +15247,11 @@ components: CellsWithViewProperties: type: array items: - $ref: '#/components/schemas/CellWithViewProperties' + $ref: "#/components/schemas/CellWithViewProperties" Cells: type: array items: - $ref: '#/components/schemas/Cell' + $ref: "#/components/schemas/Cell" Secrets: additionalProperties: type: string @@ -15266,7 +15266,7 @@ components: type: string SecretKeysResponse: allOf: - - $ref: '#/components/schemas/SecretKeys' + - $ref: "#/components/schemas/SecretKeys" - type: object properties: links: @@ -15294,7 +15294,7 @@ components: DashboardWithViewProperties: type: object allOf: - - $ref: '#/components/schemas/CreateDashboardRequest' + - $ref: "#/components/schemas/CreateDashboardRequest" - type: object properties: links: @@ -15308,17 +15308,17 @@ components: org: /api/v2/labels/1 properties: self: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" cells: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" org: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" id: readOnly: true type: string @@ -15332,13 +15332,13 @@ components: type: string format: date-time cells: - $ref: '#/components/schemas/CellsWithViewProperties' + $ref: "#/components/schemas/CellsWithViewProperties" labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" Dashboard: type: object allOf: - - $ref: '#/components/schemas/CreateDashboardRequest' + - $ref: "#/components/schemas/CreateDashboardRequest" - type: object properties: links: @@ -15352,17 +15352,17 @@ components: org: /api/v2/labels/1 properties: self: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" cells: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" org: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" id: readOnly: true type: string @@ -15376,18 +15376,18 @@ components: type: string format: date-time cells: - $ref: '#/components/schemas/Cells' + $ref: "#/components/schemas/Cells" labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" Dashboards: type: object properties: links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" dashboards: type: array items: - $ref: '#/components/schemas/Dashboard' + $ref: "#/components/schemas/Dashboard" TelegrafRequest: type: object properties: @@ -15442,7 +15442,7 @@ components: Telegraf: type: object allOf: - - $ref: '#/components/schemas/TelegrafRequest' + - $ref: "#/components/schemas/TelegrafRequest" - type: object properties: id: @@ -15458,23 +15458,23 @@ components: members: /api/v2/telegrafs/1/members properties: self: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: readOnly: true - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" Telegrafs: type: object properties: configurations: type: array items: - $ref: '#/components/schemas/Telegraf' + $ref: "#/components/schemas/Telegraf" TelegrafPlugin: type: object properties: @@ -15496,7 +15496,7 @@ components: plugins: type: array items: - $ref: '#/components/schemas/TelegrafPlugin' + $ref: "#/components/schemas/TelegrafPlugin" IsOnboarding: type: object properties: @@ -15534,7 +15534,7 @@ components: started: type: string format: date-time - example: '2019-03-13T10:09:33.891196-04:00' + example: "2019-03-13T10:09:33.891196-04:00" up: type: string example: 14m45.911966424s @@ -15551,7 +15551,7 @@ components: checks: type: array items: - $ref: '#/components/schemas/HealthCheck' + $ref: "#/components/schemas/HealthCheck" status: type: string enum: @@ -15564,7 +15564,7 @@ components: Labels: type: array items: - $ref: '#/components/schemas/Label' + $ref: "#/components/schemas/Label" Label: type: object properties: @@ -15635,22 +15635,22 @@ components: type: object properties: labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" LabelResponse: type: object properties: label: - $ref: '#/components/schemas/Label' + $ref: "#/components/schemas/Label" links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" ASTResponse: description: Contains the AST for the supplied Flux query type: object properties: ast: - $ref: '#/components/schemas/Package' + $ref: "#/components/schemas/Package" WritePrecision: type: string enum: @@ -15677,29 +15677,29 @@ components: - inactive CheckDiscriminator: oneOf: - - $ref: '#/components/schemas/DeadmanCheck' - - $ref: '#/components/schemas/ThresholdCheck' - - $ref: '#/components/schemas/CustomCheck' + - $ref: "#/components/schemas/DeadmanCheck" + - $ref: "#/components/schemas/ThresholdCheck" + - $ref: "#/components/schemas/CustomCheck" discriminator: propertyName: type mapping: - deadman: '#/components/schemas/DeadmanCheck' - threshold: '#/components/schemas/ThresholdCheck' - custom: '#/components/schemas/CustomCheck' + deadman: "#/components/schemas/DeadmanCheck" + threshold: "#/components/schemas/ThresholdCheck" + custom: "#/components/schemas/CustomCheck" Check: allOf: - - $ref: '#/components/schemas/CheckDiscriminator' + - $ref: "#/components/schemas/CheckDiscriminator" PostCheck: allOf: - - $ref: '#/components/schemas/CheckDiscriminator' + - $ref: "#/components/schemas/CheckDiscriminator" Checks: properties: checks: type: array items: - $ref: '#/components/schemas/Check' + $ref: "#/components/schemas/Check" links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" CheckBase: properties: id: @@ -15726,15 +15726,15 @@ components: format: date-time readOnly: true query: - $ref: '#/components/schemas/DashboardQuery' + $ref: "#/components/schemas/DashboardQuery" status: - $ref: '#/components/schemas/TaskStatusType' + $ref: "#/components/schemas/TaskStatusType" description: description: An optional description of the check. type: string latestCompleted: type: string - description: 'A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp)) of the latest scheduled and completed run.' + description: "A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp)) of the latest scheduled and completed run." format: date-time readOnly: true lastRunStatus: @@ -15748,7 +15748,7 @@ components: readOnly: true type: string labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" links: type: object readOnly: true @@ -15761,26 +15761,26 @@ components: properties: self: description: URL for this check - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: description: URL to retrieve labels for this check - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: description: URL to retrieve members for this check - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: description: URL to retrieve owners for this check - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" query: description: URL to retrieve flux script for this check - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" required: - name - orgID - query ThresholdCheck: allOf: - - $ref: '#/components/schemas/CheckBase' + - $ref: "#/components/schemas/CheckBase" - type: object required: - type @@ -15792,12 +15792,12 @@ components: thresholds: type: array items: - $ref: '#/components/schemas/Threshold' + $ref: "#/components/schemas/Threshold" every: description: Check repetition interval. type: string offset: - description: 'Duration to delay after the schedule, before executing check.' + description: "Duration to delay after the schedule, before executing check." type: string tags: description: List of tags to write to each status. @@ -15814,18 +15814,18 @@ components: type: string Threshold: oneOf: - - $ref: '#/components/schemas/GreaterThreshold' - - $ref: '#/components/schemas/LesserThreshold' - - $ref: '#/components/schemas/RangeThreshold' + - $ref: "#/components/schemas/GreaterThreshold" + - $ref: "#/components/schemas/LesserThreshold" + - $ref: "#/components/schemas/RangeThreshold" discriminator: propertyName: type mapping: - greater: '#/components/schemas/GreaterThreshold' - lesser: '#/components/schemas/LesserThreshold' - range: '#/components/schemas/RangeThreshold' + greater: "#/components/schemas/GreaterThreshold" + lesser: "#/components/schemas/LesserThreshold" + range: "#/components/schemas/RangeThreshold" DeadmanCheck: allOf: - - $ref: '#/components/schemas/CheckBase' + - $ref: "#/components/schemas/CheckBase" - type: object required: - type @@ -15841,15 +15841,15 @@ components: description: String duration for time that a series is considered stale and should not trigger deadman. type: string reportZero: - description: 'If only zero values reported since time, trigger an alert' + description: "If only zero values reported since time, trigger an alert" type: boolean level: - $ref: '#/components/schemas/CheckStatusLevel' + $ref: "#/components/schemas/CheckStatusLevel" every: description: Check repetition interval. type: string offset: - description: 'Duration to delay after the schedule, before executing check.' + description: "Duration to delay after the schedule, before executing check." type: string tags: description: List of tags to write to each status. @@ -15866,7 +15866,7 @@ components: type: string CustomCheck: allOf: - - $ref: '#/components/schemas/CheckBase' + - $ref: "#/components/schemas/CheckBase" - type: object properties: type: @@ -15878,13 +15878,13 @@ components: ThresholdBase: properties: level: - $ref: '#/components/schemas/CheckStatusLevel' + $ref: "#/components/schemas/CheckStatusLevel" allValues: - description: 'If true, only alert if all values meet threshold.' + description: "If true, only alert if all values meet threshold." type: boolean GreaterThreshold: allOf: - - $ref: '#/components/schemas/ThresholdBase' + - $ref: "#/components/schemas/ThresholdBase" - type: object required: - type @@ -15899,7 +15899,7 @@ components: format: float LesserThreshold: allOf: - - $ref: '#/components/schemas/ThresholdBase' + - $ref: "#/components/schemas/ThresholdBase" - type: object required: - type @@ -15914,7 +15914,7 @@ components: format: float RangeThreshold: allOf: - - $ref: '#/components/schemas/ThresholdBase' + - $ref: "#/components/schemas/ThresholdBase" - type: object required: - type @@ -15967,33 +15967,33 @@ components: - inactive NotificationRuleDiscriminator: oneOf: - - $ref: '#/components/schemas/SlackNotificationRule' - - $ref: '#/components/schemas/SMTPNotificationRule' - - $ref: '#/components/schemas/PagerDutyNotificationRule' - - $ref: '#/components/schemas/HTTPNotificationRule' - - $ref: '#/components/schemas/TelegramNotificationRule' + - $ref: "#/components/schemas/SlackNotificationRule" + - $ref: "#/components/schemas/SMTPNotificationRule" + - $ref: "#/components/schemas/PagerDutyNotificationRule" + - $ref: "#/components/schemas/HTTPNotificationRule" + - $ref: "#/components/schemas/TelegramNotificationRule" discriminator: propertyName: type mapping: - slack: '#/components/schemas/SlackNotificationRule' - smtp: '#/components/schemas/SMTPNotificationRule' - pagerduty: '#/components/schemas/PagerDutyNotificationRule' - http: '#/components/schemas/HTTPNotificationRule' - telegram: '#/components/schemas/TelegramNotificationRule' + slack: "#/components/schemas/SlackNotificationRule" + smtp: "#/components/schemas/SMTPNotificationRule" + pagerduty: "#/components/schemas/PagerDutyNotificationRule" + http: "#/components/schemas/HTTPNotificationRule" + telegram: "#/components/schemas/TelegramNotificationRule" NotificationRule: allOf: - - $ref: '#/components/schemas/NotificationRuleDiscriminator' + - $ref: "#/components/schemas/NotificationRuleDiscriminator" PostNotificationRule: allOf: - - $ref: '#/components/schemas/NotificationRuleDiscriminator' + - $ref: "#/components/schemas/NotificationRuleDiscriminator" NotificationRules: properties: notificationRules: type: array items: - $ref: '#/components/schemas/NotificationRule' + $ref: "#/components/schemas/NotificationRule" links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" NotificationRuleBase: type: object required: @@ -16004,7 +16004,7 @@ components: - endpointID properties: latestCompleted: - description: 'A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp)) of the latest scheduled and completed run.' + description: "A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#rfc3339-timestamp)) of the latest scheduled and completed run." type: string format: date-time readOnly: true @@ -16042,7 +16042,7 @@ components: format: date-time readOnly: true status: - $ref: '#/components/schemas/TaskStatusType' + $ref: "#/components/schemas/TaskStatusType" name: description: Human-readable name describing the notification rule. type: string @@ -16052,21 +16052,21 @@ components: description: The notification repetition interval. type: string offset: - description: 'Duration to delay after the schedule, before executing check.' + description: "Duration to delay after the schedule, before executing check." type: string runbookLink: type: string limitEvery: - description: 'Don''t notify me more than times every seconds. If set, limit cannot be empty.' + description: "Don't notify me more than times every seconds. If set, limit cannot be empty." type: integer limit: - description: 'Don''t notify me more than times every seconds. If set, limitEvery cannot be empty.' + description: "Don't notify me more than times every seconds. If set, limitEvery cannot be empty." type: integer tagRules: description: List of tag rules the notification rule attempts to match. type: array items: - $ref: '#/components/schemas/TagRule' + $ref: "#/components/schemas/TagRule" description: description: An optional description of the notification rule. type: string @@ -16075,9 +16075,9 @@ components: type: array minItems: 1 items: - $ref: '#/components/schemas/StatusRule' + $ref: "#/components/schemas/StatusRule" labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" links: type: object readOnly: true @@ -16090,19 +16090,19 @@ components: properties: self: description: URL for this endpoint. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: description: URL to retrieve labels for this notification rule. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: description: URL to retrieve members for this notification rule. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: description: URL to retrieve owners for this notification rule. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" query: description: URL to retrieve flux script for this notification rule. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" TagRule: type: object properties: @@ -16121,9 +16121,9 @@ components: type: object properties: currentLevel: - $ref: '#/components/schemas/RuleStatusLevel' + $ref: "#/components/schemas/RuleStatusLevel" previousLevel: - $ref: '#/components/schemas/RuleStatusLevel' + $ref: "#/components/schemas/RuleStatusLevel" count: type: integer period: @@ -16141,8 +16141,8 @@ components: type: string HTTPNotificationRule: allOf: - - $ref: '#/components/schemas/NotificationRuleBase' - - $ref: '#/components/schemas/HTTPNotificationRuleBase' + - $ref: "#/components/schemas/NotificationRuleBase" + - $ref: "#/components/schemas/HTTPNotificationRuleBase" SlackNotificationRuleBase: type: object required: @@ -16159,12 +16159,12 @@ components: type: string SlackNotificationRule: allOf: - - $ref: '#/components/schemas/NotificationRuleBase' - - $ref: '#/components/schemas/SlackNotificationRuleBase' + - $ref: "#/components/schemas/NotificationRuleBase" + - $ref: "#/components/schemas/SlackNotificationRuleBase" SMTPNotificationRule: allOf: - - $ref: '#/components/schemas/NotificationRuleBase' - - $ref: '#/components/schemas/SMTPNotificationRuleBase' + - $ref: "#/components/schemas/NotificationRuleBase" + - $ref: "#/components/schemas/SMTPNotificationRuleBase" SMTPNotificationRuleBase: type: object required: @@ -16184,8 +16184,8 @@ components: type: string PagerDutyNotificationRule: allOf: - - $ref: '#/components/schemas/NotificationRuleBase' - - $ref: '#/components/schemas/PagerDutyNotificationRuleBase' + - $ref: "#/components/schemas/NotificationRuleBase" + - $ref: "#/components/schemas/PagerDutyNotificationRuleBase" PagerDutyNotificationRuleBase: type: object required: @@ -16200,8 +16200,8 @@ components: type: string TelegramNotificationRule: allOf: - - $ref: '#/components/schemas/NotificationRuleBase' - - $ref: '#/components/schemas/TelegramNotificationRuleBase' + - $ref: "#/components/schemas/NotificationRuleBase" + - $ref: "#/components/schemas/TelegramNotificationRuleBase" TelegramNotificationRuleBase: type: object required: @@ -16241,31 +16241,31 @@ components: - inactive NotificationEndpointDiscriminator: oneOf: - - $ref: '#/components/schemas/SlackNotificationEndpoint' - - $ref: '#/components/schemas/PagerDutyNotificationEndpoint' - - $ref: '#/components/schemas/HTTPNotificationEndpoint' - - $ref: '#/components/schemas/TelegramNotificationEndpoint' + - $ref: "#/components/schemas/SlackNotificationEndpoint" + - $ref: "#/components/schemas/PagerDutyNotificationEndpoint" + - $ref: "#/components/schemas/HTTPNotificationEndpoint" + - $ref: "#/components/schemas/TelegramNotificationEndpoint" discriminator: propertyName: type mapping: - slack: '#/components/schemas/SlackNotificationEndpoint' - pagerduty: '#/components/schemas/PagerDutyNotificationEndpoint' - http: '#/components/schemas/HTTPNotificationEndpoint' - telegram: '#/components/schemas/TelegramNotificationEndpoint' + slack: "#/components/schemas/SlackNotificationEndpoint" + pagerduty: "#/components/schemas/PagerDutyNotificationEndpoint" + http: "#/components/schemas/HTTPNotificationEndpoint" + telegram: "#/components/schemas/TelegramNotificationEndpoint" NotificationEndpoint: allOf: - - $ref: '#/components/schemas/NotificationEndpointDiscriminator' + - $ref: "#/components/schemas/NotificationEndpointDiscriminator" PostNotificationEndpoint: allOf: - - $ref: '#/components/schemas/NotificationEndpointDiscriminator' + - $ref: "#/components/schemas/NotificationEndpointDiscriminator" NotificationEndpoints: properties: notificationEndpoints: type: array items: - $ref: '#/components/schemas/NotificationEndpoint' + $ref: "#/components/schemas/NotificationEndpoint" links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" NotificationEndpointBase: type: object required: @@ -16299,7 +16299,7 @@ components: - active - inactive labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" links: type: object readOnly: true @@ -16311,22 +16311,22 @@ components: properties: self: description: URL for this endpoint. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: description: URL to retrieve labels for this endpoint. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: description: URL to retrieve members for this endpoint. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: description: URL to retrieve owners for this endpoint. - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" type: - $ref: '#/components/schemas/NotificationEndpointType' + $ref: "#/components/schemas/NotificationEndpointType" SlackNotificationEndpoint: type: object allOf: - - $ref: '#/components/schemas/NotificationEndpointBase' + - $ref: "#/components/schemas/NotificationEndpointBase" - type: object properties: url: @@ -16338,7 +16338,7 @@ components: PagerDutyNotificationEndpoint: type: object allOf: - - $ref: '#/components/schemas/NotificationEndpointBase' + - $ref: "#/components/schemas/NotificationEndpointBase" - type: object required: - routingKey @@ -16350,7 +16350,7 @@ components: HTTPNotificationEndpoint: type: object allOf: - - $ref: '#/components/schemas/NotificationEndpointBase' + - $ref: "#/components/schemas/NotificationEndpointBase" - type: object required: - url @@ -16387,17 +16387,17 @@ components: TelegramNotificationEndpoint: type: object allOf: - - $ref: '#/components/schemas/NotificationEndpointBase' + - $ref: "#/components/schemas/NotificationEndpointBase" - type: object required: - token - channel properties: token: - description: 'Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot .' + description: "Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot ." type: string channel: - description: 'The ID of the telegram channel; a chat_id in https://core.telegram.org/bots/api#sendmessage .' + description: "The ID of the telegram channel; a chat_id in https://core.telegram.org/bots/api#sendmessage ." type: string NotificationEndpointType: type: string @@ -16430,9 +16430,9 @@ components: description: Mapping represents the default retention policy for the database specified. virtual: type: boolean - description: 'Indicates an autogenerated, virtual mapping based on the bucket name. Currently only available in OSS.' + description: "Indicates an autogenerated, virtual mapping based on the bucket name. Currently only available in OSS." links: - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" required: - id - orgID @@ -16445,7 +16445,7 @@ components: content: type: array items: - $ref: '#/components/schemas/DBRP' + $ref: "#/components/schemas/DBRP" DBRPUpdate: properties: retention_policy: @@ -16482,7 +16482,7 @@ components: type: object properties: content: - $ref: '#/components/schemas/DBRP' + $ref: "#/components/schemas/DBRP" required: true SchemaType: type: string @@ -16495,16 +16495,16 @@ components: additionalProperties: type: string example: - series_id_1: '#edf529' - series_id_2: '#edf529' - measurement_birdmigration_europe: '#663cd0' - configcat_deployments-autopromotionblocker: '#663cd0' + series_id_1: "#edf529" + series_id_2: "#edf529" + measurement_birdmigration_europe: "#663cd0" + configcat_deployments-autopromotionblocker: "#663cd0" Authorization: required: - orgID - permissions allOf: - - $ref: '#/components/schemas/AuthorizationUpdateRequest' + - $ref: "#/components/schemas/AuthorizationUpdateRequest" - type: object properties: createdAt: @@ -16525,7 +16525,7 @@ components: A list of permissions for an authorization. An authorization must have at least one permission. items: - $ref: '#/components/schemas/Permission' + $ref: "#/components/schemas/Permission" id: readOnly: true type: string @@ -16555,26 +16555,26 @@ components: properties: self: readOnly: true - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" user: readOnly: true - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" Authorizations: type: object properties: links: readOnly: true - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" authorizations: type: array items: - $ref: '#/components/schemas/Authorization' + $ref: "#/components/schemas/Authorization" AuthorizationPostRequest: required: - orgID - permissions allOf: - - $ref: '#/components/schemas/AuthorizationUpdateRequest' + - $ref: "#/components/schemas/AuthorizationUpdateRequest" - type: object properties: orgID: @@ -16592,7 +16592,7 @@ components: A list of permissions for an authorization. An authorization must have at least one permission. items: - $ref: '#/components/schemas/Permission' + $ref: "#/components/schemas/Permission" Permission: required: - action @@ -16604,7 +16604,7 @@ components: - read - write resource: - $ref: '#/components/schemas/Resource' + $ref: "#/components/schemas/Resource" Resource: type: object required: @@ -16688,7 +16688,7 @@ components: users: type: array items: - $ref: '#/components/schemas/UserResponse' + $ref: "#/components/schemas/UserResponse" OnboardingRequest: type: object properties: @@ -16720,13 +16720,13 @@ components: type: object properties: user: - $ref: '#/components/schemas/UserResponse' + $ref: "#/components/schemas/UserResponse" org: - $ref: '#/components/schemas/Organization' + $ref: "#/components/schemas/Organization" bucket: - $ref: '#/components/schemas/Bucket' + $ref: "#/components/schemas/Bucket" auth: - $ref: '#/components/schemas/Authorization' + $ref: "#/components/schemas/Authorization" Variable: type: object required: @@ -16761,9 +16761,9 @@ components: items: type: string labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" arguments: - $ref: '#/components/schemas/VariableProperties' + $ref: "#/components/schemas/VariableProperties" createdAt: type: string format: date-time @@ -16774,8 +16774,8 @@ components: type: object example: variables: - - id: '1221432' - name: ':ok:' + - id: "1221432" + name: ":ok:" selected: - hello arguments: @@ -16786,8 +16786,8 @@ components: - hi - yo - oy - - id: '1221432' - name: ':ok:' + - id: "1221432" + name: ":ok:" selected: - c arguments: @@ -16796,8 +16796,8 @@ components: a: fdjaklfdjkldsfjlkjdsa b: dfaksjfkljekfajekdljfas c: fdjksajfdkfeawfeea - - id: '1221432' - name: ':ok:' + - id: "1221432" + name: ":ok:" selected: - host arguments: @@ -16808,7 +16808,7 @@ components: variables: type: array items: - $ref: '#/components/schemas/Variable' + $ref: "#/components/schemas/Variable" Source: type: object properties: @@ -16877,7 +16877,7 @@ components: sources: type: array items: - $ref: '#/components/schemas/Source' + $ref: "#/components/schemas/Source" ScraperTargetRequest: type: object properties: @@ -16892,7 +16892,7 @@ components: url: type: string description: The URL of the metrics endpoint. - example: 'http://localhost:9090/metrics' + example: "http://localhost:9090/metrics" orgID: type: string description: The organization ID. @@ -16906,7 +16906,7 @@ components: ScraperTargetResponse: type: object allOf: - - $ref: '#/components/schemas/ScraperTargetRequest' + - $ref: "#/components/schemas/ScraperTargetRequest" - type: object properties: id: @@ -16929,22 +16929,22 @@ components: organization: /api/v2/orgs/1 properties: self: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" bucket: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" organization: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" ScraperTargetResponses: type: object properties: configurations: type: array items: - $ref: '#/components/schemas/ScraperTargetResponse' + $ref: "#/components/schemas/ScraperTargetResponse" MetadataBackup: type: object properties: @@ -16955,7 +16955,7 @@ components: type: string format: binary buckets: - $ref: '#/components/schemas/BucketMetadataManifests' + $ref: "#/components/schemas/BucketMetadataManifests" required: - kv - sql @@ -16963,7 +16963,7 @@ components: BucketMetadataManifests: type: array items: - $ref: '#/components/schemas/BucketMetadataManifest' + $ref: "#/components/schemas/BucketMetadataManifest" BucketMetadataManifest: type: object properties: @@ -16980,7 +16980,7 @@ components: defaultRetentionPolicy: type: string retentionPolicies: - $ref: '#/components/schemas/RetentionPolicyManifests' + $ref: "#/components/schemas/RetentionPolicyManifests" required: - organizationID - organizationName @@ -16991,7 +16991,7 @@ components: RetentionPolicyManifests: type: array items: - $ref: '#/components/schemas/RetentionPolicyManifest' + $ref: "#/components/schemas/RetentionPolicyManifest" RetentionPolicyManifest: type: object properties: @@ -17006,9 +17006,9 @@ components: type: integer format: int64 shardGroups: - $ref: '#/components/schemas/ShardGroupManifests' + $ref: "#/components/schemas/ShardGroupManifests" subscriptions: - $ref: '#/components/schemas/SubscriptionManifests' + $ref: "#/components/schemas/SubscriptionManifests" required: - name - replicaN @@ -17019,7 +17019,7 @@ components: ShardGroupManifests: type: array items: - $ref: '#/components/schemas/ShardGroupManifest' + $ref: "#/components/schemas/ShardGroupManifest" ShardGroupManifest: type: object properties: @@ -17039,7 +17039,7 @@ components: type: string format: date-time shards: - $ref: '#/components/schemas/ShardManifests' + $ref: "#/components/schemas/ShardManifests" required: - id - startTime @@ -17048,7 +17048,7 @@ components: ShardManifests: type: array items: - $ref: '#/components/schemas/ShardManifest' + $ref: "#/components/schemas/ShardManifest" ShardManifest: type: object properties: @@ -17056,14 +17056,14 @@ components: type: integer format: int64 shardOwners: - $ref: '#/components/schemas/ShardOwners' + $ref: "#/components/schemas/ShardOwners" required: - id - shardOwners ShardOwners: type: array items: - $ref: '#/components/schemas/ShardOwner' + $ref: "#/components/schemas/ShardOwner" ShardOwner: type: object properties: @@ -17076,7 +17076,7 @@ components: SubscriptionManifests: type: array items: - $ref: '#/components/schemas/SubscriptionManifest' + $ref: "#/components/schemas/SubscriptionManifest" SubscriptionManifest: type: object properties: @@ -17101,7 +17101,7 @@ components: name: type: string shardMappings: - $ref: '#/components/schemas/BucketShardMappings' + $ref: "#/components/schemas/BucketShardMappings" required: - id - name @@ -17109,7 +17109,7 @@ components: BucketShardMappings: type: array items: - $ref: '#/components/schemas/BucketShardMapping' + $ref: "#/components/schemas/BucketShardMapping" BucketShardMapping: type: object properties: @@ -17159,7 +17159,7 @@ components: remotes: type: array items: - $ref: '#/components/schemas/RemoteConnection' + $ref: "#/components/schemas/RemoteConnection" RemoteConnectionCreationRequest: type: object properties: @@ -17248,7 +17248,7 @@ components: replications: type: array items: - $ref: '#/components/schemas/Replication' + $ref: "#/components/schemas/Replication" ReplicationCreationRequest: type: object properties: @@ -17314,11 +17314,11 @@ components: properties: links: readOnly: true - $ref: '#/components/schemas/Links' + $ref: "#/components/schemas/Links" tasks: type: array items: - $ref: '#/components/schemas/Task' + $ref: "#/components/schemas/Task" Task: type: object properties: @@ -17341,9 +17341,9 @@ components: description: The description of the task. type: string status: - $ref: '#/components/schemas/TaskStatusType' + $ref: "#/components/schemas/TaskStatusType" labels: - $ref: '#/components/schemas/Labels' + $ref: "#/components/schemas/Labels" authorizationID: description: The ID of the authorization used when the task communicates with the query engine. type: string @@ -17351,18 +17351,18 @@ components: description: The Flux script that the task runs. type: string every: - description: 'An interval ([duration literal](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals))) at which the task runs. `every` also determines when the task first runs, depending on the specified time.' + description: "An interval ([duration literal](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals))) at which the task runs. `every` also determines when the task first runs, depending on the specified time." type: string format: duration cron: - description: '[Cron expression](https://en.wikipedia.org/wiki/Cron#Overview) that defines the schedule on which the task runs. InfluxDB bases cron runs on the system time.' + description: "[Cron expression](https://en.wikipedia.org/wiki/Cron#Overview) that defines the schedule on which the task runs. InfluxDB bases cron runs on the system time." type: string offset: - description: 'A [duration](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals) to delay execution of the task after the scheduled time has elapsed. `0` removes the offset.' + description: "A [duration](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals) to delay execution of the task after the scheduled time has elapsed. `0` removes the offset." type: string format: duration latestCompleted: - description: 'A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/flux/v0.x/data-types/basic/time/#time-syntax)) of the latest scheduled and completed run.' + description: "A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/flux/v0.x/data-types/basic/time/#time-syntax)) of the latest scheduled and completed run." type: string format: date-time readOnly: true @@ -17396,17 +17396,17 @@ components: logs: /api/v2/tasks/1/logs properties: self: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" owners: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" members: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" runs: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" logs: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" labels: - $ref: '#/components/schemas/Link' + $ref: "#/components/schemas/Link" required: - id - name @@ -17422,7 +17422,7 @@ components: description: The name of the organization that owns this Task. type: string status: - $ref: '#/components/schemas/TaskStatusType' + $ref: "#/components/schemas/TaskStatusType" flux: description: The Flux script to run for this task. type: string @@ -17435,7 +17435,7 @@ components: type: object properties: status: - $ref: '#/components/schemas/TaskStatusType' + $ref: "#/components/schemas/TaskStatusType" flux: description: The Flux script that the task runs. type: string @@ -17494,19 +17494,19 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: orgProvidedNotFound: summary: The org or orgID passed doesn't own the token passed in the header value: code: invalid - message: 'failed to decode request body: organization not found' + message: "failed to decode request body: organization not found" GeneralServerError: description: Non 2XX error response from server. content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" InternalServerError: description: | Internal server error. @@ -17514,7 +17514,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" ResourceNotFoundError: description: | Not found. @@ -17528,7 +17528,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" examples: org-not-found: summary: Organization name not found diff --git a/domain/templates/client-with-responses.tmpl b/domain/templates/client-with-responses.tmpl index 50929d7c..c1d7b90d 100644 --- a/domain/templates/client-with-responses.tmpl +++ b/domain/templates/client-with-responses.tmpl @@ -153,7 +153,7 @@ func (c *Client) {{$opid}}(ctx context.Context, {{if $hasBodyOrPathParams}}param return {{if $hasResponse}}nil, {{end}}err } {{if $hasResponse -}} - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) {{end}} defer func() { _ = rsp.Body.Close() }() {{if $hasResponse -}} @@ -174,7 +174,7 @@ func (c *Client) {{$opid}}(ctx context.Context, {{if $hasBodyOrPathParams}}param return response, nil {{else}} if rsp.StatusCode > 299 { - bodyBytes, err := ioutil.ReadAll(rsp.Body) + bodyBytes, err := io.ReadAll(rsp.Body) if err != nil { return err } diff --git a/domain/templates/imports.tmpl b/domain/templates/imports.tmpl index f09c173c..a440c778 100644 --- a/domain/templates/imports.tmpl +++ b/domain/templates/imports.tmpl @@ -14,7 +14,6 @@ import ( "fmt" "gopkg.in/yaml.v3" "io" - "io/ioutil" "net/http" "net/url" "path" diff --git a/internal/gzip/gzip_test.go b/internal/gzip/gzip_test.go index 407df9f1..75da8f31 100644 --- a/internal/gzip/gzip_test.go +++ b/internal/gzip/gzip_test.go @@ -7,7 +7,7 @@ package gzip_test import ( "bytes" egzip "compress/gzip" - "io/ioutil" + "io" "testing" "github.com/influxdata/influxdb-client-go/v2/internal/gzip" @@ -24,7 +24,7 @@ func TestGzip(t *testing.T) { if err != nil { t.Fatal(err) } - res, err := ioutil.ReadAll(ur) + res, err := io.ReadAll(ur) if err != nil { t.Fatal(err) } diff --git a/internal/test/http_service.go b/internal/test/http_service.go index 6f35f686..8094d1ea 100644 --- a/internal/test/http_service.go +++ b/internal/test/http_service.go @@ -10,7 +10,6 @@ import ( "context" "fmt" "io" - "io/ioutil" "net/http" "strings" "sync" @@ -102,7 +101,6 @@ func (t *HTTPService) ReplyError() *http2.Error { // SetAuthorization sets authorization string func (t *HTTPService) SetAuthorization(_ string) { - } // GetRequest does nothing for this service @@ -157,7 +155,7 @@ func (t *HTTPService) DoPostRequest(_ context.Context, url string, body io.Reade // DecodeLines parses request body for lines func (t *HTTPService) DecodeLines(body io.Reader) error { - bytes, err := ioutil.ReadAll(body) + bytes, err := io.ReadAll(body) if err != nil { return err }