Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricHandler ¶
type MetricHandler struct {
// contains filtered or unexported fields
}
MetricHandler handles metrics collections/writes to cloud monarch
func NewMetricHandler ¶
func NewMetricHandler(ctx context.Context, namespace string, backend string, AWSConfig aws.Config) (*MetricHandler, error)
NewMetricHandler instantiates a metric client for the purpose of writing metrics to cloud monarch
func (*MetricHandler) GetResponseCountMetricType ¶
func (h *MetricHandler) GetResponseCountMetricType() string
GetResponseCountMetricType constructs and returns a string representing the response_count metric type
func (*MetricHandler) WriteResponseCodeMetric ¶
func (h *MetricHandler) WriteResponseCodeMetric(statusCode int) error
WriteResponseCodeMetric will record observed response codes and emitResponseCodeMetric writes to cloud monarch
Click to show internal directories.
Click to hide internal directories.