LogSearchRuleResourceInner Class
public class LogSearchRuleResourceInner implements Resource
The Log Search Rule resource.
Method Summary
Modifier and Type | Method and Description |
---|---|
Action |
action()
Get action needs to be taken on rule execution. |
String |
description()
Get the description of the Log Search rule. |
Enabled |
enabled()
Get the flag which indicates whether the Log Search rule is enabled. Value should be true or false. Possible values include: 'true', 'false'. |
DateTime |
lastUpdatedTime()
Get last time the rule was updated in IS08601 format. |
Provisioning |
provisioningState()
Get provisioning state of the scheduled query rule. Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed'. |
Schedule |
schedule()
Get schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction. |
Source |
source()
Get data Source against which rule will Query Data. |
Log |
withAction(Action action)
Set action needs to be taken on rule execution. |
Log |
withDescription(String description)
Set the description of the Log Search rule. |
Log |
withEnabled(Enabled enabled)
Set the flag which indicates whether the Log Search rule is enabled. Value should be true or false. Possible values include: 'true', 'false'. |
Log |
withSchedule(Schedule schedule)
Set schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction. |
Log |
withSource(Source source)
Set data Source against which rule will Query Data. |
Inherited Members
Method Details
action
public Action action()
Get action needs to be taken on rule execution.
Returns:
description
public String description()
Get the description of the Log Search rule.
Returns:
enabled
public Enabled enabled()
Get the flag which indicates whether the Log Search rule is enabled. Value should be true or false. Possible values include: 'true', 'false'.
Returns:
lastUpdatedTime
public DateTime lastUpdatedTime()
Get last time the rule was updated in IS08601 format.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get provisioning state of the scheduled query rule. Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed'.
Returns:
schedule
public Schedule schedule()
Get schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction.
Returns:
source
public Source source()
Get data Source against which rule will Query Data.
Returns:
withAction
public LogSearchRuleResourceInner withAction(Action action)
Set action needs to be taken on rule execution.
Parameters:
Returns:
withDescription
public LogSearchRuleResourceInner withDescription(String description)
Set the description of the Log Search rule.
Parameters:
Returns:
withEnabled
public LogSearchRuleResourceInner withEnabled(Enabled enabled)
Set the flag which indicates whether the Log Search rule is enabled. Value should be true or false. Possible values include: 'true', 'false'.
Parameters:
Returns:
withSchedule
public LogSearchRuleResourceInner withSchedule(Schedule schedule)
Set schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction.
Parameters:
Returns:
withSource
public LogSearchRuleResourceInner withSource(Source source)
Set data Source against which rule will Query Data.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for