SamplePair pairs a SampleValue with a Timestamp.
| 65 | |
| 66 | // SamplePair pairs a SampleValue with a Timestamp. |
| 67 | type SamplePair struct { |
| 68 | Timestamp Time |
| 69 | Value SampleValue |
| 70 | } |
| 71 | |
| 72 | func (s SamplePair) MarshalJSON() ([]byte, error) { |
| 73 | t, err := json.Marshal(s.Timestamp) |
nothing calls this directly
no outgoing calls
no test coverage detected