plans

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plan

type Plan struct {
	PlanID                  string  `json:"planId,omitempty"`
	ID                      string  `json:"id,omitempty"`
	Description             string  `json:"description,omitempty"`
	Name                    string  `json:"name,omitempty"`
	BucketSize              int     `json:"bucketSize,omitempty"`
	GrafanaGlobalUsers      int     `json:"grafanaGlobalUsers,omitempty"`
	GrafanaGlobalOrgs       int     `json:"grafanaGlobalOrgs,omitempty"`
	GrafanaGlobalDashboards int     `json:"grafanaGlobalDashboards,omitempty"`
	AlertRules              int     `json:"alertRules,omitempty"`
	TargetNumber            int     `json:"targetNumber,omitempty"`
	SamplesPerScrape        int     `json:"samplesPerScrape,omitempty"`
	GrafanaGlobalSessions   int     `json:"grafanaGlobalSessions,omitempty"`
	Amount                  float32 `json:"amount,omitempty"`
	AlertReceivers          int     `json:"alertReceivers,omitempty"`
	AlertMatchers           int     `json:"alertMatchers,omitempty"`
	TracesStorage           int     `json:"tracesStorage,omitempty"`
	LogsStorage             int     `json:"logsStorage,omitempty"`
	LogsAlert               int     `json:"logsAlert,omitempty"`
	IsFree                  bool    `json:"isFree,omitempty"`
	IsPublic                bool    `json:"isPublic,omitempty"`
	Schema                  string  `json:"schema,omitempty"`
}

type PlanList

type PlanList struct {
	Message string `json:"message"`
	Plans   []Plan `json:"plans"`
}

type PlansService

type PlansService common.Service

PlansService is the service that handles CRUD functionality for Argus Plans

func New

func New(c common.Client) *PlansService

New returns a new handler for the service

func (*PlansService) List

func (svc *PlansService) List(ctx context.Context, projectID string) (res PlanList, err error)

List returns a list of argus plans See also https://api.stackit.schwarz/argus-monitoring-service/openapi.v1.html#operation/v1_projects_plans_list

Jump to

Keyboard shortcuts

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