Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
Returns a counter. If 'cumalative=true' then setting the counter value is assumed to be a cumalative value and will be determined using the last accumlated value.
func NewCounterWithAttribs ¶
func (*Counter) AddAttribute ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func (*Monitor) AddCounter ¶
func (*Monitor) DeleteCounter ¶
type MonitorService ¶
type MonitorService struct {
// contains filtered or unexported fields
}
func NewMonitorService ¶
func NewMonitorService(sender Sender, collectCount, collectInterval int) *MonitorService
Creates a new monitor services with a 'sender' that will post monitor events to an upstream service. The monitor collects metrics from all counters every 'collectInterval' milliseconds and publishes these metrics after 'collectCount' collections.
func (*MonitorService) NewMonitor ¶
func (ms *MonitorService) NewMonitor(name string) *Monitor
func (*MonitorService) Start ¶
func (ms *MonitorService) Start() error
func (*MonitorService) Stop ¶
func (ms *MonitorService) Stop()
type Sender ¶
type Sender interface {
PostMeasurementEvents(events []*cloudevents.Event) ([]events.CloudEventError, error)
}
Click to show internal directories.
Click to hide internal directories.