TimeRange¶
-
class
oci.log_analytics.models.
TimeRange
(**kwargs)¶ Bases:
object
Specify time range. This paramter can be overwritten if time criteria is specified in the query string. If no time criteria are found in query string this time range is used.
Methods
__init__
(**kwargs)Initializes a new TimeRange object with values from keyword arguments. Attributes
time_end
[Required] Gets the time_end of this TimeRange. time_start
[Required] Gets the time_start of this TimeRange. time_zone
Gets the time_zone of this TimeRange. -
__init__
(**kwargs)¶ Initializes a new TimeRange object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - time_start (datetime) – The value to assign to the time_start property of this TimeRange.
- time_end (datetime) – The value to assign to the time_end property of this TimeRange.
- time_zone (str) – The value to assign to the time_zone property of this TimeRange.
-
time_end
¶ [Required] Gets the time_end of this TimeRange. Time for query to stop matching results to. End Time must be greater than or equal to start time otherwise it will result in error.
Returns: The time_end of this TimeRange. Return type: datetime
-
time_start
¶ [Required] Gets the time_start of this TimeRange. Time for query to start matching results from. Start time must be less than end time otherwise it will result in error.
Returns: The time_start of this TimeRange. Return type: datetime
-
time_zone
¶ Gets the time_zone of this TimeRange. Time zone for query.
Returns: The time_zone of this TimeRange. Return type: str
-