traces

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Retention string `json:"retention,omitempty"`
}

type GetConfigResponse

type GetConfigResponse struct {
	Message string `json:"message,omitempty"`
	Config  Config `json:"config,omitempty"`
}

type TracesService

type TracesService common.Service

TracesService is the service that handles CRUD functionality for Argus traces

func New

func New(c common.Client) *TracesService

New returns a new handler for the service

func (*TracesService) GetConfig

func (svc *TracesService) GetConfig(ctx context.Context, projectID, instanceID string) (res GetConfigResponse, err error)

GetConfig returns argus grafana config See also https://api.stackit.schwarz/argus-monitoring-service/openapi.v1.html#tag/grafana-configs

func (*TracesService) UpdateConfig

func (svc *TracesService) UpdateConfig(ctx context.Context, projectID, instanceID string, config Config) (res UpdateConfigResponse, err error)

UpdateConfig updates argus grafana config See also https://api.stackit.schwarz/argus-monitoring-service/openapi.v1.html#operation/v1_projects_instances_traces-configs_update

type UpdateConfigResponse

type UpdateConfigResponse struct {
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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