a üÎòf`ã@sDddlmZddlmZmZmZddlmZeGdd„deƒƒZdS)é)ÚActioné)Úformatted_flat_dictÚ NONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc@s~eZdZdZdd„Zedd„ƒZejdd„ƒZedd„ƒZejd d„ƒZed d „ƒZ e jd d „ƒZ d d„Z dd„Z dd„Z dS)Ú StreamActionz+ Stream action for scheduled task. cKsBdddddœ|_dddddœ|_d|_d|_d|_d|_d |_dS) a- Initializes a new StreamAction object with values from keyword arguments. The default value of the :py:attr:`~oci.log_analytics.models.StreamAction.type` attribute of this class is ``STREAM`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this StreamAction. Allowed values for this property are: "STREAM", "PURGE" :type type: str :param saved_search_id: The value to assign to the saved_search_id property of this StreamAction. :type saved_search_id: str :param metric_extraction: The value to assign to the metric_extraction property of this StreamAction. :type metric_extraction: oci.log_analytics.models.MetricExtraction :param saved_search_duration: The value to assign to the saved_search_duration property of this StreamAction. :type saved_search_duration: str ÚstrZMetricExtraction)ÚtypeÚsaved_search_idÚmetric_extractionÚsaved_search_durationr Z savedSearchIdZmetricExtractionZsavedSearchDurationNZSTREAM)Z swagger_typesZ attribute_mapZ_typeÚ_saved_search_idÚ_metric_extractionÚ_saved_search_duration)ÚselfÚkwargs©rúJ/usr/lib/python3.9/site-packages/oci/log_analytics/models/stream_action.pyÚ__init__süüzStreamAction.__init__cCs|jS)zÕ Gets the saved_search_id of this StreamAction. The ManagementSavedSearch id [OCID] utilized in the action. :return: The saved_search_id of this StreamAction. :rtype: str ©r©rrrrr >s zStreamAction.saved_search_idcCs ||_dS)zã Sets the saved_search_id of this StreamAction. The ManagementSavedSearch id [OCID] utilized in the action. :param saved_search_id: The saved_search_id of this StreamAction. :type: str Nr)rr rrrr Js cCs|jS)zº Gets the metric_extraction of this StreamAction. :return: The metric_extraction of this StreamAction. :rtype: oci.log_analytics.models.MetricExtraction ©rrrrrr VszStreamAction.metric_extractioncCs ||_dS)zÊ Sets the metric_extraction of this StreamAction. :param metric_extraction: The metric_extraction of this StreamAction. :type: oci.log_analytics.models.MetricExtraction Nr)rr rrrr `scCs|jS)a£ Gets the saved_search_duration of this StreamAction. The duration of data to be searched for SAVED_SEARCH tasks, used when the task fires to calculate the query time range. Duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The value should be positive. The largest supported unit (as opposed to value) is D, e.g. P14D (not P2W). There are restrictions on the maximum duration value relative to the task schedule value as specified in the following table. Schedule Interval Range | Maximum Duration ----------------------------------- | ----------------- 5 Minutes to 30 Minutes | 1 hour "PT60M" 31 Minutes to 1 Hour | 12 hours "PT720M" 1 Hour+1Minute to 1 Day | 1 day "P1D" 1 Day+1Minute to 1 Week-1Minute | 7 days "P7D" 1 Week to 2 Weeks | 14 days "P14D" greater than 2 Weeks | 30 days "P30D" If not specified, the duration will be based on the schedule. For example, if the schedule is every 5 minutes then the savedSearchDuration will be "PT5M"; if the schedule is every 3 weeks then the savedSearchDuration will be "P21D". :return: The saved_search_duration of this StreamAction. :rtype: str ©rrrrrr jsz"StreamAction.saved_search_durationcCs ||_dS)a· Sets the saved_search_duration of this StreamAction. The duration of data to be searched for SAVED_SEARCH tasks, used when the task fires to calculate the query time range. Duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The value should be positive. The largest supported unit (as opposed to value) is D, e.g. P14D (not P2W). There are restrictions on the maximum duration value relative to the task schedule value as specified in the following table. Schedule Interval Range | Maximum Duration ----------------------------------- | ----------------- 5 Minutes to 30 Minutes | 1 hour "PT60M" 31 Minutes to 1 Hour | 12 hours "PT720M" 1 Hour+1Minute to 1 Day | 1 day "P1D" 1 Day+1Minute to 1 Week-1Minute | 7 days "P7D" 1 Week to 2 Weeks | 14 days "P14D" greater than 2 Weeks | 30 days "P30D" If not specified, the duration will be based on the schedule. For example, if the schedule is every 5 minutes then the savedSearchDuration will be "PT5M"; if the schedule is every 3 weeks then the savedSearchDuration will be "P21D". :param saved_search_duration: The saved_search_duration of this StreamAction. :type: str Nr)rr rrrr ‹scCst|ƒS©N)rrrrrÚ__repr__¬szStreamAction.__repr__cCs|dur dS|j|jkS)NF)Ú__dict__©rÚotherrrrÚ__eq__¯szStreamAction.__eq__cCs ||k SrrrrrrÚ__ne__µszStreamAction.__ne__N) Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyr Úsetterr r rrr rrrrr s",      rN) ÚactionrZoci.utilrrrZoci.decoratorsrrrrrrÚs