The package library in question is github.com.cloudfoundry.sonde-go.events.
The Envelope.GetValueMetric method returns a pointer to a Metric object contained within an Envelope. The Metric object represents a single monotonically-increasing value that may be a counter, gauge, or timer.
Example 1:
e := &events.Envelope{}
m := e.GetValueMetric()
value := m.Value
This code initializes an empty Envelope, gets the Metric contained within it, and retrieves the metric's value.
Example 2:
e := &events.Envelope{}
m := e.GetValueMetric()
name := m.Name
This code initializes an empty Envelope, gets the Metric contained within it, and retrieves the metric's name.
Golang Envelope.GetValueMetric - 15 examples found. These are the top rated real world Golang examples of github.com/cloudfoundry/sonde-go/events.Envelope.GetValueMetric extracted from open source projects. You can rate examples to help us improve the quality of examples.