AdvancedPlatformMetricsRuleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.AdvancedPlatformMetricsRuleProperties

Implements

public final class AdvancedPlatformMetricsRuleProperties
implements JsonSerializable<AdvancedPlatformMetricsRuleProperties>

An object that defines the advanced platform metrics rule.

Constructor Summary

Constructor Description
AdvancedPlatformMetricsRuleProperties()

Creates an instance of AdvancedPlatformMetricsRuleProperties class.

Method Summary

Modifier and Type Method and Description
boolean enabled()

Get the enabled property: A boolean flag which enables the advanced platform metrics rule.

static AdvancedPlatformMetricsRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of AdvancedPlatformMetricsRuleProperties from the JsonReader.

OffsetDateTime lastModifiedTime()

Get the lastModifiedTime property: Gets the last modification date and time of the advanced platform metrics rule in UTC.

List<MetricsEmitted> metricsEmitted()

Get the metricsEmitted property: The metrics emitted by the rule.

AdvancedPlatformMetricsRuleConfig ruleConfig()

Get the ruleConfig property: Configuration for the advanced platform metrics rule.

AdvancedPlatformMetricsRuleType ruleType()

Get the ruleType property: Indicates the type of the advanced platform metrics rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AdvancedPlatformMetricsRuleProperties withEnabled(boolean enabled)

Set the enabled property: A boolean flag which enables the advanced platform metrics rule.

AdvancedPlatformMetricsRuleProperties withRuleConfig(AdvancedPlatformMetricsRuleConfig ruleConfig)

Set the ruleConfig property: Configuration for the advanced platform metrics rule.

Methods inherited from java.lang.Object

Constructor Details

AdvancedPlatformMetricsRuleProperties

public AdvancedPlatformMetricsRuleProperties()

Creates an instance of AdvancedPlatformMetricsRuleProperties class.

Method Details

enabled

public boolean enabled()

Get the enabled property: A boolean flag which enables the advanced platform metrics rule.

Returns:

the enabled value.

fromJson

public static AdvancedPlatformMetricsRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of AdvancedPlatformMetricsRuleProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AdvancedPlatformMetricsRuleProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

lastModifiedTime

public OffsetDateTime lastModifiedTime()

Get the lastModifiedTime property: Gets the last modification date and time of the advanced platform metrics rule in UTC.

Returns:

the lastModifiedTime value.

metricsEmitted

public List<MetricsEmitted> metricsEmitted()

Get the metricsEmitted property: The metrics emitted by the rule. Metrics are mapped according to the rule type from RuleTypeProperty. Rule type to metrics mapping: ContainerLevelCapacityMetrics => {ContainerUsedSize, ContainerBlobCount}.

Returns:

the metricsEmitted value.

ruleConfig

public AdvancedPlatformMetricsRuleConfig ruleConfig()

Get the ruleConfig property: Configuration for the advanced platform metrics rule.

Returns:

the ruleConfig value.

ruleType

public AdvancedPlatformMetricsRuleType ruleType()

Get the ruleType property: Indicates the type of the advanced platform metrics rule. Possible values include: ContainerLevelCapacityMetrics.

Returns:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public AdvancedPlatformMetricsRuleProperties withEnabled(boolean enabled)

Set the enabled property: A boolean flag which enables the advanced platform metrics rule.

Parameters:

enabled - the enabled value to set.

Returns:

the AdvancedPlatformMetricsRuleProperties object itself.

withRuleConfig

public AdvancedPlatformMetricsRuleProperties withRuleConfig(AdvancedPlatformMetricsRuleConfig ruleConfig)

Set the ruleConfig property: Configuration for the advanced platform metrics rule.

Parameters:

ruleConfig - the ruleConfig value to set.

Returns:

the AdvancedPlatformMetricsRuleProperties object itself.

Applies to