Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit dbd1d88

Browse files
authored
Remove the StartTime Field in the Point (#18)
1 parent e236fa3 commit dbd1d88

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

stats.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,7 @@ func newGaugePoint(v *view.View, row *view.Row, end time.Time) *monitoringpb.Poi
330330
}
331331
return &monitoringpb.Point{
332332
Interval: &monitoringpb.TimeInterval{
333-
StartTime: gaugeTime,
334-
EndTime: gaugeTime,
333+
EndTime: gaugeTime,
335334
},
336335
Value: newTypedValue(v, row),
337336
}

stats_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,6 @@ func TestExporter_makeReq(t *testing.T) {
274274
Points: []*monitoringpb.Point{
275275
{
276276
Interval: &monitoringpb.TimeInterval{
277-
StartTime: &timestamp.Timestamp{
278-
Seconds: end.Unix(),
279-
Nanos: int32(start.Nanosecond()),
280-
},
281277
EndTime: &timestamp.Timestamp{
282278
Seconds: end.Unix(),
283279
Nanos: int32(end.Nanosecond()),
@@ -303,10 +299,6 @@ func TestExporter_makeReq(t *testing.T) {
303299
Points: []*monitoringpb.Point{
304300
{
305301
Interval: &monitoringpb.TimeInterval{
306-
StartTime: &timestamp.Timestamp{
307-
Seconds: end.Unix(),
308-
Nanos: int32(start.Nanosecond()),
309-
},
310302
EndTime: &timestamp.Timestamp{
311303
Seconds: end.Unix(),
312304
Nanos: int32(end.Nanosecond()),

0 commit comments

Comments
 (0)