datasource

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type CreateDatasourceInput

type CreateDatasourceInput struct {
	Project    string `json:"project" jsonschema:"Project name to create the datasource in"`
	Datasource string `json:"datasource" jsonschema:"Datasource JSON as string"`
}

type DeleteDatasourceInput

type DeleteDatasourceInput struct {
	Project string `json:"project" jsonschema:"Project name"`
	Name    string `json:"name" jsonschema:"Datasource name to delete"`
}

type GetProjectDatasourceByNameInput

type GetProjectDatasourceByNameInput struct {
	Project string `json:"project" jsonschema:"Project name"`
	Name    string `json:"name" jsonschema:"Datasource name"`
}

type ListProjectDatasourcesInput

type ListProjectDatasourcesInput struct {
	Project string `json:"project" jsonschema:"Project name"`
}

type QueryProjectDatasourceInput added in v0.2.0

type QueryProjectDatasourceInput struct {
	Project        string            `json:"project" jsonschema:"Project name"`
	DatasourceName string            `json:"datasource_name" jsonschema:"Datasource name"`
	Method         string            `json:"method,omitempty" jsonschema:"HTTP method (default GET)"`
	Path           string            `json:"path,omitempty" jsonschema:"Datasource endpoint path (e.g. /api/v1/query_range)"`
	QueryParams    map[string]string `json:"query_params,omitempty" jsonschema:"Query string parameters"`
	Body           string            `json:"body,omitempty" jsonschema:"Raw request body (JSON or form payload)"`
	Headers        map[string]string `json:"headers,omitempty" jsonschema:"Optional additional request headers"`
}

type UpdateDatasourceInput

type UpdateDatasourceInput struct {
	Project    string `json:"project" jsonschema:"Project name to update the datasource in"`
	Datasource string `json:"datasource" jsonschema:"Datasource JSON as string"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL