Documentation
¶
Index ¶
Constants ¶
const (
ZeroBucket = int64(-32768)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrequencyMetric ¶
FrequencyMetric represents a metric that is a numeric value.
func NewFrequencyMetric ¶
func NewFrequencyMetric(name string) FrequencyMetric
NewFrequencyMetric will return a new metric with instantiated maps
func (*FrequencyMetric) CountSample ¶
func (m *FrequencyMetric) CountSample(k string)
CountSample will add all frequencies in the metric. If rhs is nil, we will return immediately with no error. We will treat nil as zero count.
type FrequencyMetrics ¶
type FrequencyMetrics map[string]FrequencyMetric
FrequencyMetrics is a collection of metrics
type Metric ¶
type Metric interface { GetFrequencyMetrics() []FrequencyMetric GetSEHMetrics() []SEHMetric GetTimestamp() time.Time GetKeys() map[string]string GetSamples() []map[string]interface{} }
Metric interface that is used to retrieve the necessary data to construct a PutRecord call to the voxdataplane service.
type SEHMetric ¶
type SEHMetric struct { Name string Stats StatisticSet Buckets map[int64]float64 }
Type for a metric backed by a sparse exponential histogram (Seh) distribution
func NewSEHMetric ¶
NewSEHMetric creates a new metric with an empty distribution
type StatisticSet ¶
func NewStatisticSet ¶
func NewStatisticSet(value float64) StatisticSet
func NewWeightedStatisticSet ¶
func NewWeightedStatisticSet(value float64, weight float64) StatisticSet
func (*StatisticSet) Merge ¶
func (this *StatisticSet) Merge(other StatisticSet) error
Merges two statistic set distributions
Based on the following assumptions about IEEE fp math/representations:
(1) All finite floating point numbers are exactly one of == 0, < 0, or > 0 (2) Adding a (representable) positive number to a non-negative number results in a positive number
we can use a SampleCount of 0 as a marker for an empty distribution since we only allow the merging of non-negative sample counts
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package csm provides the client and types for making API requests to Amazon Client-Side Monitoring.
|
Package csm provides the client and types for making API requests to Amazon Client-Side Monitoring. |
csmiface
Package csmiface provides an interface to enable mocking the Amazon Client-Side Monitoring service client for testing your code.
|
Package csmiface provides an interface to enable mocking the Amazon Client-Side Monitoring service client for testing your code. |
Package sdkmetricsdataplane provides the client and types for making API requests to AWS SDK Metrics Dataplane.
|
Package sdkmetricsdataplane provides the client and types for making API requests to AWS SDK Metrics Dataplane. |
sdkmetricsdataplaneiface
Package sdkmetricsdataplaneiface provides an interface to enable mocking the AWS SDK Metrics Dataplane service client for testing your code.
|
Package sdkmetricsdataplaneiface provides an interface to enable mocking the AWS SDK Metrics Dataplane service client for testing your code. |