Class RuleDefinition
java.lang.Object
com.azure.resourcemanager.loganalytics.models.RuleDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RuleDefinition>
public final class RuleDefinition
extends Object
implements com.azure.json.JsonSerializable<RuleDefinition>
Rule definition parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbinDelay()Get the binDelay property: The minimum delay in seconds before bin processing.binSize()Get the binSize property: Scheduled window in minutes.Get the binStartTime property: The start time (UTC) when Summary rule execution starts.Get the destinationTable property: The destination table used for the Summary rule results.static RuleDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RuleDefinition from the JsonReader.query()Get the query property: Summary rule query.Get the timeSelector property: The time cursor used in Summary rules bins processing, e.g.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withBinDelay(Integer binDelay) Set the binDelay property: The minimum delay in seconds before bin processing.withBinSize(Integer binSize) Set the binSize property: Scheduled window in minutes.withBinStartTime(OffsetDateTime binStartTime) Set the binStartTime property: The start time (UTC) when Summary rule execution starts.withDestinationTable(String destinationTable) Set the destinationTable property: The destination table used for the Summary rule results.Set the query property: Summary rule query.withTimeSelector(TimeSelectorEnum timeSelector) Set the timeSelector property: The time cursor used in Summary rules bins processing, e.g.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RuleDefinition
public RuleDefinition()Creates an instance of RuleDefinition class.
-
-
Method Details
-
query
-
withQuery
Set the query property: Summary rule query.- Parameters:
query- the query value to set.- Returns:
- the RuleDefinition object itself.
-
binSize
Get the binSize property: Scheduled window in minutes. Allowed values: 20, 30, 60, 120, 180, 360, 720, 1440.- Returns:
- the binSize value.
-
withBinSize
Set the binSize property: Scheduled window in minutes. Allowed values: 20, 30, 60, 120, 180, 360, 720, 1440.- Parameters:
binSize- the binSize value to set.- Returns:
- the RuleDefinition object itself.
-
binDelay
Get the binDelay property: The minimum delay in seconds before bin processing.- Returns:
- the binDelay value.
-
withBinDelay
Set the binDelay property: The minimum delay in seconds before bin processing.- Parameters:
binDelay- the binDelay value to set.- Returns:
- the RuleDefinition object itself.
-
binStartTime
Get the binStartTime property: The start time (UTC) when Summary rule execution starts.- Returns:
- the binStartTime value.
-
withBinStartTime
Set the binStartTime property: The start time (UTC) when Summary rule execution starts.- Parameters:
binStartTime- the binStartTime value to set.- Returns:
- the RuleDefinition object itself.
-
timeSelector
Get the timeSelector property: The time cursor used in Summary rules bins processing, e.g. TimeGenerated.- Returns:
- the timeSelector value.
-
withTimeSelector
Set the timeSelector property: The time cursor used in Summary rules bins processing, e.g. TimeGenerated.- Parameters:
timeSelector- the timeSelector value to set.- Returns:
- the RuleDefinition object itself.
-
destinationTable
Get the destinationTable property: The destination table used for the Summary rule results.- Returns:
- the destinationTable value.
-
withDestinationTable
Set the destinationTable property: The destination table used for the Summary rule results.- Parameters:
destinationTable- the destinationTable value to set.- Returns:
- the RuleDefinition object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RuleDefinition>- Throws:
IOException
-
fromJson
Reads an instance of RuleDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RuleDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RuleDefinition.
-