Documentation ¶
Index ¶
- Constants
- func Build(enableLogging bool, serviceOffering config.ServiceOffering, logger *log.Logger) broker.TelemetryLogger
- func NewTelemetryLogger(logger *log.Logger, serviceOffering config.ServiceOffering, timer Time) broker.TelemetryLogger
- type BaseLog
- type Event
- type NoopTelemetryLogger
- type PerPlanInstancesLog
- type RealTime
- type ServiceInstances
- type ServiceInstancesPerPlan
- type ServiceOffering
- type TelemetryLogger
- type Time
- type TotalInstancesLog
Constants ¶
View Source
const TelemetrySource = "on-demand-broker"
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(enableLogging bool, serviceOffering config.ServiceOffering, logger *log.Logger) broker.TelemetryLogger
func NewTelemetryLogger ¶
func NewTelemetryLogger(logger *log.Logger, serviceOffering config.ServiceOffering, timer Time) broker.TelemetryLogger
Types ¶
type BaseLog ¶
type BaseLog struct { TelemetryTime string `json:"telemetry-time"` TelemetrySource string `json:"telemetry-source"` ServiceOffering ServiceOffering `json:"service-offering"` Event Event `json:"event"` }
type NoopTelemetryLogger ¶
type NoopTelemetryLogger struct{}
func (*NoopTelemetryLogger) LogInstances ¶
func (t *NoopTelemetryLogger) LogInstances(instanceLister InstanceLister, item string, operation string)
type PerPlanInstancesLog ¶
type PerPlanInstancesLog struct { BaseLog ServiceInstancesPerPlan ServiceInstancesPerPlan `json:"service-instances-per-plan"` }
type ServiceInstances ¶
type ServiceInstances struct {
Total int `json:"total"`
}
type ServiceInstancesPerPlan ¶
type ServiceOffering ¶
type ServiceOffering struct {
Name string `json:"name"`
}
type TelemetryLogger ¶
type TelemetryLogger struct {
// contains filtered or unexported fields
}
func (*TelemetryLogger) LogInstances ¶
func (t *TelemetryLogger) LogInstances(instanceLister InstanceLister, item string, operation string)
type TotalInstancesLog ¶
type TotalInstancesLog struct { BaseLog ServiceInstances ServiceInstances `json:"service-instances"` }
Click to show internal directories.
Click to hide internal directories.