Class LogSearchRuleResourceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.monitor.fluent.models.LogSearchRuleResourceInner
public class LogSearchRuleResourceInner
extends com.azure.core.management.Resource
The Log Search Rule resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: Action needs to be taken on rule execution.Get the autoMitigate property: The flag that indicates whether the alert should be automatically resolved or not.Get the createdWithApiVersion property: The api-version used when creating this alert rule.Get the description property: The description of the Log Search rule.Get the displayName property: The display name of the alert rule.enabled()Get the enabled property: The flag which indicates whether the Log Search rule is enabled.etag()Get the etag property: The etag field is *not* required.Get the isLegacyLogAnalyticsRule property: True if alert rule is legacy Log Analytic rule.kind()Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.Get the lastUpdatedTime property: Last time the rule was updated in IS08601 format.Get the provisioningState property: Provisioning state of the scheduled query rule.schedule()Get the schedule property: Schedule (Frequency, Time Window) for rule.source()Get the source property: Data Source against which rule will Query Data.voidvalidate()Validates the instance.withAction(Action action) Set the action property: Action needs to be taken on rule execution.withAutoMitigate(Boolean autoMitigate) Set the autoMitigate property: The flag that indicates whether the alert should be automatically resolved or not.withDescription(String description) Set the description property: The description of the Log Search rule.withDisplayName(String displayName) Set the displayName property: The display name of the alert rule.withEnabled(Enabled enabled) Set the enabled property: The flag which indicates whether the Log Search rule is enabled.withLocation(String location) withSchedule(Schedule schedule) Set the schedule property: Schedule (Frequency, Time Window) for rule.withSource(Source source) Set the source property: Data Source against which rule will Query Data.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
LogSearchRuleResourceInner
public LogSearchRuleResourceInner()
-
-
Method Details
-
createdWithApiVersion
Get the createdWithApiVersion property: The api-version used when creating this alert rule.- Returns:
- the createdWithApiVersion value.
-
isLegacyLogAnalyticsRule
Get the isLegacyLogAnalyticsRule property: True if alert rule is legacy Log Analytic rule.- Returns:
- the isLegacyLogAnalyticsRule value.
-
description
Get the description property: The description of the Log Search rule.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the Log Search rule.- Parameters:
description- the description value to set.- Returns:
- the LogSearchRuleResourceInner object itself.
-
displayName
Get the displayName property: The display name of the alert rule.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name of the alert rule.- Parameters:
displayName- the displayName value to set.- Returns:
- the LogSearchRuleResourceInner object itself.
-
autoMitigate
Get the autoMitigate property: The flag that indicates whether the alert should be automatically resolved or not. The default is false.- Returns:
- the autoMitigate value.
-
withAutoMitigate
Set the autoMitigate property: The flag that indicates whether the alert should be automatically resolved or not. The default is false.- Parameters:
autoMitigate- the autoMitigate value to set.- Returns:
- the LogSearchRuleResourceInner object itself.
-
enabled
Get the enabled property: The flag which indicates whether the Log Search rule is enabled. Value should be true or false.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: The flag which indicates whether the Log Search rule is enabled. Value should be true or false.- Parameters:
enabled- the enabled value to set.- Returns:
- the LogSearchRuleResourceInner object itself.
-
lastUpdatedTime
Get the lastUpdatedTime property: Last time the rule was updated in IS08601 format.- Returns:
- the lastUpdatedTime value.
-
provisioningState
Get the provisioningState property: Provisioning state of the scheduled query rule.- Returns:
- the provisioningState value.
-
source
Get the source property: Data Source against which rule will Query Data.- Returns:
- the source value.
-
withSource
Set the source property: Data Source against which rule will Query Data.- Parameters:
source- the source value to set.- Returns:
- the LogSearchRuleResourceInner object itself.
-
schedule
Get the schedule property: Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction.- Returns:
- the schedule value.
-
withSchedule
Set the schedule property: Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction.- Parameters:
schedule- the schedule value to set.- Returns:
- the LogSearchRuleResourceInner object itself.
-
action
Get the action property: Action needs to be taken on rule execution.- Returns:
- the action value.
-
withAction
Set the action property: Action needs to be taken on rule execution.- Parameters:
action- the action value to set.- Returns:
- the LogSearchRuleResourceInner object itself.
-
kind
Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.- Returns:
- the kind value.
-
etag
Get the etag property: The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.- Returns:
- the etag value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-