Aracılığıyla paylaş


ApplicationInsightsComponentProactiveDetectionConfigurationInner Class

  • java.lang.Object
    • com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentProactiveDetectionConfigurationInner

Implements

public final class ApplicationInsightsComponentProactiveDetectionConfigurationInner
implements JsonSerializable<ApplicationInsightsComponentProactiveDetectionConfigurationInner>

Properties that define a ProactiveDetection configuration.

Constructor Summary

Constructor Description
ApplicationInsightsComponentProactiveDetectionConfigurationInner()

Creates an instance of ApplicationInsightsComponentProactiveDetectionConfigurationInner class.

Method Summary

Modifier and Type Method and Description
List<String> customEmails()

Get the customEmails property: Custom email addresses for this rule notifications.

Boolean enabled()

Get the enabled property: A flag that indicates whether this rule is enabled by the user.

static ApplicationInsightsComponentProactiveDetectionConfigurationInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationInsightsComponentProactiveDetectionConfigurationInner from the JsonReader.

String lastUpdatedTime()

Get the lastUpdatedTime property: The last time this rule was updated.

String name()

Get the name property: The rule name.

ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions()

Get the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).

Boolean sendEmailsToSubscriptionOwners()

Get the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationInsightsComponentProactiveDetectionConfigurationInner withCustomEmails(List<String> customEmails)

Set the customEmails property: Custom email addresses for this rule notifications.

ApplicationInsightsComponentProactiveDetectionConfigurationInner withEnabled(Boolean enabled)

Set the enabled property: A flag that indicates whether this rule is enabled by the user.

ApplicationInsightsComponentProactiveDetectionConfigurationInner withLastUpdatedTime(String lastUpdatedTime)

Set the lastUpdatedTime property: The last time this rule was updated.

ApplicationInsightsComponentProactiveDetectionConfigurationInner withName(String name)

Set the name property: The rule name.

ApplicationInsightsComponentProactiveDetectionConfigurationInner withRuleDefinitions(ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions)

Set the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).

ApplicationInsightsComponentProactiveDetectionConfigurationInner withSendEmailsToSubscriptionOwners(Boolean sendEmailsToSubscriptionOwners)

Set the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.

Methods inherited from java.lang.Object

Constructor Details

ApplicationInsightsComponentProactiveDetectionConfigurationInner

public ApplicationInsightsComponentProactiveDetectionConfigurationInner()

Creates an instance of ApplicationInsightsComponentProactiveDetectionConfigurationInner class.

Method Details

customEmails

public List<String> customEmails()

Get the customEmails property: Custom email addresses for this rule notifications.

Returns:

the customEmails value.

enabled

public Boolean enabled()

Get the enabled property: A flag that indicates whether this rule is enabled by the user.

Returns:

the enabled value.

fromJson

public static ApplicationInsightsComponentProactiveDetectionConfigurationInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationInsightsComponentProactiveDetectionConfigurationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationInsightsComponentProactiveDetectionConfigurationInner 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 ApplicationInsightsComponentProactiveDetectionConfigurationInner.

lastUpdatedTime

public String lastUpdatedTime()

Get the lastUpdatedTime property: The last time this rule was updated.

Returns:

the lastUpdatedTime value.

name

public String name()

Get the name property: The rule name.

Returns:

the name value.

ruleDefinitions

public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions()

Get the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).

Returns:

the ruleDefinitions value.

sendEmailsToSubscriptionOwners

public Boolean sendEmailsToSubscriptionOwners()

Get the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.

Returns:

the sendEmailsToSubscriptionOwners value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomEmails

public ApplicationInsightsComponentProactiveDetectionConfigurationInner withCustomEmails(List<String> customEmails)

Set the customEmails property: Custom email addresses for this rule notifications.

Parameters:

customEmails - the customEmails value to set.

Returns:

the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.

withEnabled

public ApplicationInsightsComponentProactiveDetectionConfigurationInner withEnabled(Boolean enabled)

Set the enabled property: A flag that indicates whether this rule is enabled by the user.

Parameters:

enabled - the enabled value to set.

Returns:

the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.

withLastUpdatedTime

public ApplicationInsightsComponentProactiveDetectionConfigurationInner withLastUpdatedTime(String lastUpdatedTime)

Set the lastUpdatedTime property: The last time this rule was updated.

Parameters:

lastUpdatedTime - the lastUpdatedTime value to set.

Returns:

the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.

withName

public ApplicationInsightsComponentProactiveDetectionConfigurationInner withName(String name)

Set the name property: The rule name.

Parameters:

name - the name value to set.

Returns:

the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.

withRuleDefinitions

public ApplicationInsightsComponentProactiveDetectionConfigurationInner withRuleDefinitions(ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions)

Set the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).

Parameters:

ruleDefinitions - the ruleDefinitions value to set.

Returns:

the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.

withSendEmailsToSubscriptionOwners

public ApplicationInsightsComponentProactiveDetectionConfigurationInner withSendEmailsToSubscriptionOwners(Boolean sendEmailsToSubscriptionOwners)

Set the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.

Parameters:

sendEmailsToSubscriptionOwners - the sendEmailsToSubscriptionOwners value to set.

Returns:

the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.

Applies to