You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A point's value columns and time interval. Each point has one or more// point values corresponding to the entries in `point_descriptors` field in// the TimeSeriesDescriptor associated with this object.typeTimeSeriesData_PointDatastruct {
state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields// The values that make up the point.Values []*TypedValue`protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`// The time interval associated with the point.TimeInterval*TimeInterval`protobuf:"bytes,2,opt,name=time_interval,json=timeInterval,proto3" json:"time_interval,omitempty"`
}
Client
Monitoring/MonitoringPB
Environment
N/A
Go Environment
go version go1.21.8 darwin/arm64
Code
Code taken directly from metric.pb.go:
Sample code:
Expected behavior
It is expected according to the documentation that
Values
will always have a length of 1 and above.Actual behavior
Due to some temporary issue with the GCP Metrics service, length of
Values
was zero. It also has theomitempty
tag which is confusing.I'd appreciate a clarification of what the intended behavior is. Thanks.
The text was updated successfully, but these errors were encountered: