cloud

package
v1.17.9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	URL = "https://cloud.coroot.com"
)

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func API

func API(db *db.DB, deploymentUuid, instanceUuid, returnUrl string) *Api

func (*Api) GetSettings

func (api *Api) GetSettings() (Settings, error)

func (*Api) IntegrationInfo

func (api *Api) IntegrationInfo(ctx context.Context) (*IntegrationInfo, error)

func (*Api) RCA

func (api *Api) RCA(ctx context.Context, req RCARequest) (*model.RCA, error)

func (*Api) RCAStatus

func (api *Api) RCAStatus(ctx context.Context, incidentsAutoInvestigation bool) (string, error)

func (*Api) SaveSettings

func (api *Api) SaveSettings(settings Settings) error

type IntegrationInfo

type IntegrationInfo struct {
	RCA *IntegrationInfoRCA `json:"rca"`
}

type IntegrationInfoRCA

type IntegrationInfoRCA struct {
	CreditsTotal int    `json:"credits_total"`
	CreditsSpent int    `json:"credits_spent"`
	RenewsAt     int64  `json:"renews_at"`
	Plan         string `json:"plan"`
	Price        int64  `json:"price"`
	Currency     string `json:"currency"`
	Interval     string `json:"interval"`
}

type RCARequest

type RCARequest struct {
	Ctx timeseries.Context

	ApplicationId model.ApplicationId

	CheckConfigs                model.CheckConfigs
	ApplicationDeployments      map[model.ApplicationId][]*model.ApplicationDeployment
	ApplicationCategorySettings map[model.ApplicationCategory]*db.ApplicationCategorySettings
	CustomApplications          map[string]model.CustomApplication
	CustomCloudPricing          *db.CustomCloudPricing

	Metrics map[string][]*model.MetricValues

	KubernetesEvents []*model.LogEntry

	ErrorTrace *model.Trace
	SlowTrace  *model.Trace
}

type Settings

type Settings struct {
	ApiKey string      `json:"api_key" yaml:"apiKey"`
	RCA    SettingsRCA `json:"rca" yaml:"rca"`
}

func (*Settings) Validate

func (s *Settings) Validate() error

type SettingsRCA

type SettingsRCA struct {
	DisableIncidentsAutoInvestigation bool `json:"disable_incidents_auto_investigation" yaml:"disableIncidentsAutoInvestigation"`
}

Jump to

Keyboard shortcuts

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