api

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func NewApi

func NewApi(cache *cache.Cache, db *db.DB, pricing *cloud_pricing.Manager, readOnly bool) *Api

func (*Api) App

func (api *Api) App(w http.ResponseWriter, r *http.Request)

func (*Api) Categories

func (api *Api) Categories(w http.ResponseWriter, r *http.Request)

func (*Api) Check

func (api *Api) Check(w http.ResponseWriter, r *http.Request)

func (*Api) Configs

func (api *Api) Configs(w http.ResponseWriter, r *http.Request)

func (*Api) Integration

func (api *Api) Integration(w http.ResponseWriter, r *http.Request)

func (*Api) Integrations

func (api *Api) Integrations(w http.ResponseWriter, r *http.Request)

func (*Api) Logs added in v0.20.0

func (api *Api) Logs(w http.ResponseWriter, r *http.Request)

func (*Api) Node

func (api *Api) Node(w http.ResponseWriter, r *http.Request)

func (*Api) Overview

func (api *Api) Overview(w http.ResponseWriter, r *http.Request)

func (*Api) Profile

func (api *Api) Profile(w http.ResponseWriter, r *http.Request)

func (*Api) Project

func (api *Api) Project(w http.ResponseWriter, r *http.Request)

func (*Api) Projects

func (api *Api) Projects(w http.ResponseWriter, _ *http.Request)

func (*Api) Prom

func (api *Api) Prom(w http.ResponseWriter, r *http.Request)

func (*Api) Status

func (api *Api) Status(w http.ResponseWriter, r *http.Request)

func (*Api) Tracing

func (api *Api) Tracing(w http.ResponseWriter, r *http.Request)

type Application added in v0.22.0

type Application struct {
	Id     model.ApplicationId `json:"id"`
	Status model.Status        `json:"status"`
}

type ApplicationExporter added in v0.22.0

type ApplicationExporter struct {
	Status       model.Status                 `json:"status"`
	Muted        bool                         `json:"muted"`
	Applications map[model.ApplicationId]bool `json:"applications"`
}

type Context added in v0.22.0

type Context struct {
	Status Status `json:"status"`
	Search Search `json:"search"`
}

type KubeStateMetrics added in v0.22.0

type KubeStateMetrics struct {
	Status       model.Status `json:"status"`
	Applications int          `json:"applications"`
}

type Node added in v0.22.0

type Node struct {
	Name   string       `json:"name"`
	Status model.Status `json:"status"`
}

type NodeAgent added in v0.22.0

type NodeAgent struct {
	Status model.Status `json:"status"`
	Nodes  int          `json:"nodes"`
}

type Prometheus added in v0.22.0

type Prometheus struct {
	Status  model.Status `json:"status"`
	Message string       `json:"message"`
	Error   string       `json:"error"`
	Action  string       `json:"action"`
}
type Search struct {
	Applications []Application `json:"applications"`
	Nodes        []Node        `json:"nodes"`
}

type Status added in v0.22.0

type Status struct {
	Status               model.Status                                  `json:"status"`
	Error                string                                        `json:"error"`
	Prometheus           Prometheus                                    `json:"prometheus"`
	NodeAgent            NodeAgent                                     `json:"node_agent"`
	KubeStateMetrics     *KubeStateMetrics                             `json:"kube_state_metrics"`
	ApplicationExporters map[model.ApplicationType]ApplicationExporter `json:"application_exporters"`
}

type WithContext added in v0.22.0

type WithContext struct {
	Context Context `json:"context"`
	Data    any     `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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