LogSearchRuleResourceInner Class

  • java.lang.Object
    • Indexable
      • Resource
        • com.microsoft.azure.management.monitor.implementation.LogSearchRuleResourceInner

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.

ProvisioningState 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.

LogSearchRuleResourceInner withAction(Action action)

Set action needs to be taken on rule execution.

LogSearchRuleResourceInner withDescription(String description)

Set the description of the Log Search rule.

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'.

LogSearchRuleResourceInner withSchedule(Schedule schedule)

Set schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction.

LogSearchRuleResourceInner 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:

the action value

description

public String description()

Get the description of the Log Search rule.

Returns:

the description value

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:

the enabled value

lastUpdatedTime

public DateTime lastUpdatedTime()

Get last time the rule was updated in IS08601 format.

Returns:

the lastUpdatedTime value

provisioningState

public ProvisioningState provisioningState()

Get provisioning state of the scheduled query rule. Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed'.

Returns:

the provisioningState value

schedule

public Schedule schedule()

Get schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction.

Returns:

the schedule value

source

public Source source()

Get data Source against which rule will Query Data.

Returns:

the source value

withAction

public LogSearchRuleResourceInner withAction(Action action)

Set action needs to be taken on rule execution.

Parameters:

action - the action value to set

Returns:

the LogSearchRuleResourceInner object itself.

withDescription

public LogSearchRuleResourceInner withDescription(String description)

Set the description of the Log Search rule.

Parameters:

description - the description value to set

Returns:

the LogSearchRuleResourceInner object itself.

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:

enabled - the enabled value to set

Returns:

the LogSearchRuleResourceInner object itself.

withSchedule

public LogSearchRuleResourceInner withSchedule(Schedule schedule)

Set schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction.

Parameters:

schedule - the schedule value to set

Returns:

the LogSearchRuleResourceInner object itself.

withSource

public LogSearchRuleResourceInner withSource(Source source)

Set data Source against which rule will Query Data.

Parameters:

source - the source value to set

Returns:

the LogSearchRuleResourceInner object itself.

Applies to