Documentation ¶
Index ¶
- Constants
- func Default() string
- func EventHeatMap3Query(params url.Values, t typed.Tables, queryStartTime time.Time, ...) ([]byte, error)
- func GetEventData(params url.Values, t typed.Tables, startTime time.Time, endTime time.Time, ...) ([]byte, error)
- func GetNamesOfQueries() []string
- func GetResPayload(params url.Values, t typed.Tables, startTime time.Time, endTime time.Time, ...) ([]byte, error)
- func GetResSummaryData(params url.Values, t typed.Tables, startTime time.Time, endTime time.Time, ...) ([]byte, error)
- func GetSeekKey(keyComparator *typed.WatchTableKey, startTime time.Time) *typed.WatchTableKey
- func KindQuery(params url.Values, tables typed.Tables, startTime time.Time, endTime time.Time, ...) ([]byte, error)
- func NamespaceQuery(params url.Values, tables typed.Tables, startTime time.Time, endTime time.Time, ...) ([]byte, error)
- func QueryAvailableQueries(params url.Values, tables typed.Tables, startTime time.Time, endTime time.Time, ...) ([]byte, error)
- func RunQuery(queryName string, params url.Values, tables typed.Tables, ...) ([]byte, error)
- type EventOutput
- type EventsData
- type Overlay
- type PayloadOuput
- type ResPayLoadData
- type ResSummaryOutput
- type TimelineRoot
- type TimelineRow
- type ViewOptions
Constants ¶
View Source
const ( LookbackParam = "lookback" NamespaceParam = "namespace" KindParam = "kind" NameParam = "name" NameMatchParam = "namematch" // substring match on name UuidParam = "uuid" StartTimeParam = "start_time" EndTimeParam = "end_time" ClickTimeParam = "click_time" QueryParam = "query" SortParam = "sort" )
Parameters are shared between webserver and here Keep this in sync with pkg/sloop/webserver/webfiles/filter.js
View Source
const ( AllKinds = "_all" AllNamespaces = "_all" DefaultNamespace = "default" )
View Source
const EmptyPartition = ""
Variables ¶
This section is empty.
Functions ¶
func EventHeatMap3Query ¶
func GetEventData ¶
func GetNamesOfQueries ¶
func GetNamesOfQueries() []string
func GetResPayload ¶
func GetResSummaryData ¶
func GetSeekKey ¶
func GetSeekKey(keyComparator *typed.WatchTableKey, startTime time.Time) *typed.WatchTableKey
func KindQuery ¶
func KindQuery(params url.Values, tables typed.Tables, startTime time.Time, endTime time.Time, requestId string) ([]byte, error)
TODO: Only return kinds for the specified namespace
func NamespaceQuery ¶
func NamespaceQuery(params url.Values, tables typed.Tables, startTime time.Time, endTime time.Time, requestId string) ([]byte, error)
Consider: Make use of resources to limit what namespaces we return. For example, if kind == ConfigMap, only return namespaces that contain a ConfigMap
func QueryAvailableQueries ¶
Types ¶
type EventOutput ¶
type EventOutput struct { PartitionId string `json:"partitionId"` Namespace string `json:"namespace"` Name string `json:"name"` WatchTimestamp time.Time `json:"watchTimestamp,omitempty"` Kind string `json:"kind,omitempty"` WatchType typed.KubeWatchResult_WatchType `json:"watchType,omitempty"` Payload string `json:"payload,omitempty"` EventKey string `json:"eventKey"` }
type EventsData ¶
type EventsData struct {
EventsList []EventOutput `json:"eventsList"`
}
type PayloadOuput ¶
type ResPayLoadData ¶
type ResPayLoadData struct {
PayloadList []PayloadOuput `json:"payloadList"`
}
type ResSummaryOutput ¶
type ResSummaryOutput struct { typed.ResourceSummaryKey typed.ResourceSummary }
func (ResSummaryOutput) IsEmpty ¶
func (r ResSummaryOutput) IsEmpty() bool
type TimelineRoot ¶
type TimelineRoot struct { ViewOpt ViewOptions `json:"view_options"` Rows []TimelineRow `json:"rows"` }
type TimelineRow ¶
type TimelineRow struct { Text string `json:"text"` Duration int64 `json:"duration"` Kind string `json:"kind"` Namespace string `json:"namespace"` Overlays []Overlay `json:"overlays"` ChangedAt []int64 `json:"changedat"` NoChangeAt []int64 `json:"nochangeat"` StartDate int64 `json:"start_date"` EndDate int64 `json:"end_date"` }
type ViewOptions ¶
type ViewOptions struct {
Sort string `json:"sort"`
}
Click to show internal directories.
Click to hide internal directories.