Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssembleDashboardTemplate ¶
AssembleDashboardTemplate concatenates the pieces in correct order to build the whole dashboard layout template
Types ¶
type ChartJSData ¶
type ChartJSData struct {
Label string `json:"label"`
Data []interface{} `json:"data"`
BackgroundColor RGBA `json:"backgroundColor"`
BorderColor RGBA `json:"borderColor"`
BorderWidth int `json:"borderWidth"`
}
ChartJSData bundles input to ChartJS rendering tool
type GlobalStats ¶
type GlobalStats struct {
BackendTotalRequests int64 `json:"backendTotalRequests"`
RequestsOk int64 `json:"requestsOk"`
RequestsErrored int64 `json:"requestsErrored"`
BackendRequestsOk int64 `json:"backendRequestsOk"`
BackendRequestsErrored int64 `json:"backendRequestsErrored"`
SdksTotalRequests int64 `json:"sdksTotalRequests"`
LoggedErrors int64 `json:"loggedErrors"`
LoggedMessages []string `json:"loggedMessages"`
Splits []SplitSummary `json:"splits"`
Segments []SegmentSummary `json:"segments"`
Latencies []ChartJSData `json:"latencies"`
BackendLatencies []ChartJSData `json:"backendLatencies"`
ImpressionsQueueSize int64 `json:"impressionsQueueSize"`
ImpressionsLambda float64 `json:"impressionsLambda"`
EventsQueueSize int64 `json:"eventsQueueSize"`
EventsLambda float64 `json:"eventsLambda"`
Uptime int64 `json:"uptime"`
}
GlobalStats runtime stats used to render the dashboard
type RGBA ¶
RGBA bundles input to CSS's rgba function
func (RGBA) MarshalJSON ¶
MarshalJSON encodes the RGBA struct into a CSS rgba call with the correct parameters
type RootObject ¶
type RootObject struct {
DashboardTitle string
Version string
ProxyMode bool
RefreshTime int64
Stats GlobalStats `json:"stats"`
Health application.HealthDto `json:"health"`
ServicesHealth services.HealthDto `json:"servicesHealth"`
}
RootObject is the main/root object used to render the dashboard
type SegmentKeySummary ¶
type SegmentKeySummary struct {
Name string `json:"name"`
Removed bool `json:"removed"`
ChangeNumber int64 `json:"cn"`
}
SegmentKeySummary encapsulates basic information associated to the key in proxy mode (fields other than name are empty when running as producer
type SegmentSummary ¶
type SegmentSummary struct {
Name string `json:"name"`
TotalKeys int `json:"totalKeys"`
RemovedKeys int `json:"removedKeys"`
ActiveKeys int `json:"activeKeys"`
LastModified string `json:"cn"`
}
SegmentSummary encapsulates a minimalistic view of segment properties to be presented in the dashboard
type SplitSummary ¶
type SplitSummary struct {
Name string `json:"name"`
Active bool `json:"active"`
Killed bool `json:"killed"`
DefaultTreatment string `json:"defaultTreatment"`
Treatments []string `json:"treatments"`
LastModified string `json:"cn"`
}
SplitSummary encapsulates a minimalistic view of split properties to be presented in the dashboard