api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by github.com/hasura/ndc-sdk-go/cmd/hasura-ndc-go, DO NOT EDIT.

Code generated by github.com/hasura/ndc-sdk-go/cmd/hasura-ndc-go, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FunctionLokiLabelValues

func FunctionLokiLabelValues(ctx context.Context, state *metadata.State, arguments *client.LabelValuesParams) ([]string, error)

FunctionLokiLabelValues retrieve the list of known values for a given label within a given time span.

func FunctionLokiLabels

func FunctionLokiLabels(ctx context.Context, state *metadata.State, arguments *client.LabelsParams) ([]string, error)

FunctionLokiLabels return the list of known labels within a given time span.

func FunctionLokiLogDeletionRequests

func FunctionLokiLogDeletionRequests(ctx context.Context, state *metadata.State) ([]client.LogDeletionRequest, error)

FunctionLokiLogDeletionRequests list the existing delete requests for the authenticated tenant

func FunctionLokiQuery

func FunctionLokiQuery(ctx context.Context, state *metadata.State, arguments *client.QueryParams) (client.QueryData, error)

FunctionLokiQuery allows for doing [queries against a single point in time]

func FunctionLokiQueryRange

func FunctionLokiQueryRange(ctx context.Context, state *metadata.State, arguments *client.QueryRangeParams) (client.QueryRangeData, error)

QueryRange queries logs within a range of time. This type of query is often referred to as a range query.

func GetConnectorSchema

func GetConnectorSchema() *schema.SchemaResponse

GetConnectorSchema gets the generated connector schema

func ProcedureLokiCancelLogDeletionRequest

func ProcedureLokiCancelLogDeletionRequest(ctx context.Context, state *metadata.State, arguments *LokiCancelLogDeletionRequestArguments) (bool, error)

ProcedureLokiCancelLogDeletionRequest cancels a new log deletion request for the authenticated tenant

func ProcedureLokiCreateLogDeletionRequest

func ProcedureLokiCreateLogDeletionRequest(ctx context.Context, state *metadata.State, arguments *client.CreateLogDeletionRequestParams) (bool, error)

ProcedureLokiCreateLogDeletionRequest creates a new log deletion request for the authenticated tenant

func ProcedureLokiPushLogLines

func ProcedureLokiPushLogLines(ctx context.Context, state *metadata.State, arguments *client.PushLogLineInput) (bool, error)

ProcedureLokiPushLogLines pushes log lines to Loki

Types

type DataConnectorHandler

type DataConnectorHandler struct{}

DataConnectorHandler implements the data connector handler

func (DataConnectorHandler) Mutation

func (DataConnectorHandler) MutationExists

func (dch DataConnectorHandler) MutationExists(name string) bool

MutationExists check if the mutation name exists

func (DataConnectorHandler) Query

func (dch DataConnectorHandler) Query(ctx context.Context, state *metadata.State, request *schema.QueryRequest, rawArgs map[string]any) (*schema.RowSet, error)

func (DataConnectorHandler) QueryExists

func (dch DataConnectorHandler) QueryExists(name string) bool

QueryExists check if the query name exists

type LokiCancelLogDeletionRequestArguments

type LokiCancelLogDeletionRequestArguments struct {
	RequestID string `json:"request_id"`
	Force     *bool  `json:"force"`
}

LokiCancelLogDeletionRequestArguments request arguments of the addDeleteRequest mutation

Jump to

Keyboard shortcuts

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