Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricContext ¶
type MetricContext struct {
// contains filtered or unexported fields
}
MetricContext indicates the context for OpenStack metrics.
func NewMetricContext ¶
func NewMetricContext(resource string, request string) *MetricContext
NewMetricContext creates a new MetricContext.
func (*MetricContext) ObserveReconcile ¶
func (mc *MetricContext) ObserveReconcile(err error) error
ObserveReconcile records reconciliation duration, frequency and number of errors.
func (*MetricContext) ObserveRequest ¶
func (mc *MetricContext) ObserveRequest(err error) error
ObserveRequest records the request latency and counts the errors.
Click to show internal directories.
Click to hide internal directories.