explorer

package
v0.0.0-...-250ed9d Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StrideExists = iota
	StrideRead
	StrideProcessing
	StrideProcessed
	StrideRetrying
	StrideError
	StrideDeleted
)
View Source
const (
	MAX_GRAPH_SIZE = 1500
)
View Source
const (
	STRIDE_CACHE_SIZE = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CorrelatedResponse

type CorrelatedResponse struct {
	Rowid       string                               `json:"rowid"`
	Labels      map[model.LabelName]model.LabelValue `json:"labels"`
	LabelString string                               `json:"labelString"`
	Pearson     float32                              `json:"pearson"`
}

type CorrelationExplorer

type CorrelationExplorer struct {
	FilenameBase string
	// contains filtered or unexported fields
}

func (*CorrelationExplorer) DumpMetricCache

func (c *CorrelationExplorer) DumpMetricCache(w http.ResponseWriter, r *http.Request)

func (*CorrelationExplorer) GetCorrelatedSeries

func (c *CorrelationExplorer) GetCorrelatedSeries(w http.ResponseWriter, r *http.Request)

func (*CorrelationExplorer) GetMetricHistory

func (c *CorrelationExplorer) GetMetricHistory(w http.ResponseWriter, r *http.Request)

func (*CorrelationExplorer) GetMetricInfo

func (c *CorrelationExplorer) GetMetricInfo(w http.ResponseWriter, r *http.Request)

func (*CorrelationExplorer) GetStrides

func (c *CorrelationExplorer) GetStrides(w http.ResponseWriter, r *http.Request)

func (*CorrelationExplorer) GetSubgraphEdges

func (c *CorrelationExplorer) GetSubgraphEdges(w http.ResponseWriter, r *http.Request)

Get the edges list for one subgraph.

func (*CorrelationExplorer) GetSubgraphNodes

func (c *CorrelationExplorer) GetSubgraphNodes(w http.ResponseWriter, r *http.Request)

Get the nodes list for one subgraph.

func (*CorrelationExplorer) GetSubgraphs

func (c *CorrelationExplorer) GetSubgraphs(w http.ResponseWriter, r *http.Request)

func (*CorrelationExplorer) GetTimeline

func (c *CorrelationExplorer) GetTimeline(w http.ResponseWriter, r *http.Request)

func (*CorrelationExplorer) GetTimeseries

func (c *CorrelationExplorer) GetTimeseries(w http.ResponseWriter, r *http.Request)

func (*CorrelationExplorer) Initialize

func (c *CorrelationExplorer) Initialize(baseUrl string, maxAgeSeconds int, dropLabels []string) error

type Data

type Data struct {
	ResultType string   `json:"resultType"`
	Result     []Result `json:"result"`
}

Data contains the result type and the actual result.

type PromQueryResponse

type PromQueryResponse struct {
	Status string `json:"status"`
	Data   Data   `json:"data"`
}

type Result

type Result struct {
	Metric map[string]string `json:"metric"`
	Values [][]interface{}   `json:"values"`
}

Result represents each time series in the response.

type Stride

type Stride struct {
	ID              int
	StartTime       int64
	EndTime         int64
	StartTimeString string
	EndTimeString   string
	Status          StrideState
	Filename        string
	// contains filtered or unexported fields
}

Stride collects metadata about a stride.

type StrideState

type StrideState int

func (StrideState) String

func (s StrideState) String() string

type TimelineResponse

type TimelineResponse struct {
	Time   string `json:"time"` // This must be in YYYY-MM-DDTHH:MM:SSZ format
	Metric string `json:"metric"`
	State  string `json:"state"`
}

This is what the timeline panel wants.

type TimeseriesResponse

type TimeseriesResponse struct {
	Time  string `json:"time"` // This must be in YYYY-MM-DDTHH:MM:SSZ format
	Value int    `json:"value"`
}

Jump to

Keyboard shortcuts

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