TimeRange specifies the timestamp range or timestamp value to query.

Data structure

message TimeRange {
    optional int64 start_time = 1;
    optional int64 end_time = 2;
    optional int64 specific_time = 3;
}
			
start_time:
  • Type: int64

  • Description: the starting timestamp. Unit: milliseconds. Valid values: [0, INT64.MAX).

end_time:
  • Type: int64

  • Description: the ending timestamp. Unit: milliseconds. Valid values: [0, INT64.MAX).

specific_time:
  • Type: int64

  • Description: the specific timestamp. You can set one of specific_time and [start_time, end_time). Unit: milliseconds. Valid values: [0, INT64.MAX).
    Note [start_time, end_time) indicates a time range that starts from the start timestamp and ends at the end timestamp. The range includes the start timestamp and excludes the end timestamp.