RelativeTimeRange🔗
RelativeTimeRange is the per query start and end time
for requests.
Definition🔗
class RelativeTimeRange:
"""
RelativeTimeRange is the per query start and end time
for requests.
"""
# A Duration represents the elapsed time between two instants
# as an int64 nanosecond count. The representation limits the
# largest representable duration to approximately 290 years.
from_val: typing.Optional[alerting.Duration]
# A Duration represents the elapsed time between two instants
# as an int64 nanosecond count. The representation limits the
# largest representable duration to approximately 290 years.
to: typing.Optional[alerting.Duration]
Methods🔗
to_json🔗
Converts this object into a representation that can easily be encoded to JSON.
from_json🔗
Builds this object from a JSON-decoded dict.