DataObjectQueryTimeFilters

class oci.opsi.models.DataObjectQueryTimeFilters(**kwargs)

Bases: object

Time filters to be applied in the data object query.

Methods

__init__(**kwargs) Initializes a new DataObjectQueryTimeFilters object with values from keyword arguments.

Attributes

time_end Gets the time_end of this DataObjectQueryTimeFilters.
time_period Gets the time_period of this DataObjectQueryTimeFilters.
time_start Gets the time_start of this DataObjectQueryTimeFilters.
__init__(**kwargs)

Initializes a new DataObjectQueryTimeFilters object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • time_period (str) – The value to assign to the time_period property of this DataObjectQueryTimeFilters.
  • time_start (datetime) – The value to assign to the time_start property of this DataObjectQueryTimeFilters.
  • time_end (datetime) – The value to assign to the time_end property of this DataObjectQueryTimeFilters.
time_end

Gets the time_end of this DataObjectQueryTimeFilters. End time in UTC in RFC3339 formatted datetime string. Example: 2021-10-30T00:00:00.000Z. timeStart and timeEnd are used together. If timePeriod is specified, this parameter is ignored. If timeEnd is not specified, current time is used as timeEnd.

Returns:The time_end of this DataObjectQueryTimeFilters.
Return type:datetime
time_period

Gets the time_period of this DataObjectQueryTimeFilters. Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timePeriod is specified, then timeStart and timeEnd will be ignored. Examples: P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months).

Returns:The time_period of this DataObjectQueryTimeFilters.
Return type:str
time_start

Gets the time_start of this DataObjectQueryTimeFilters. Start time in UTC in RFC3339 formatted datetime string. Example: 2021-10-30T00:00:00.000Z. timeStart and timeEnd are used together. If timePeriod is specified, this parameter is ignored.

Returns:The time_start of this DataObjectQueryTimeFilters.
Return type:datetime