Class StreamAction
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.loganalytics.model.Action
-
- com.oracle.bmc.loganalytics.model.StreamAction
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20200601") public final class StreamAction extends Action
Stream action for scheduled task.
Note: Objects should always be created or deserialized using theStreamAction.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theStreamAction.Builder
, which maintain a set of all explicitly set fields calledStreamAction.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StreamAction.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.loganalytics.model.Action
Action.Type
-
-
Constructor Summary
Constructors Constructor Description StreamAction(String savedSearchId, MetricExtraction metricExtraction, String savedSearchDuration)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamAction.Builder
builder()
Create a new builder.boolean
equals(Object o)
MetricExtraction
getMetricExtraction()
String
getSavedSearchDuration()
The duration of data to be searched for SAVED_SEARCH tasks, used when the task fires to calculate the query time range.String
getSavedSearchId()
The ManagementSavedSearch id [OCID] utilized in the action.int
hashCode()
StreamAction.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
StreamAction
@Deprecated public StreamAction(String savedSearchId, MetricExtraction metricExtraction, String savedSearchDuration)
Deprecated.
-
-
Method Detail
-
builder
public static StreamAction.Builder builder()
Create a new builder.
-
toBuilder
public StreamAction.Builder toBuilder()
-
getSavedSearchId
public String getSavedSearchId()
The ManagementSavedSearch id [OCID] utilized in the action.- Returns:
- the value
-
getMetricExtraction
public MetricExtraction getMetricExtraction()
-
getSavedSearchDuration
public String getSavedSearchDuration()
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".
- Returns:
- the value
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-