Freigeben über


MonitoringSettingProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.MonitoringSettingProperties

Implements

public final class MonitoringSettingProperties
implements JsonSerializable<MonitoringSettingProperties>

Monitoring Setting properties payload.

Constructor Summary

Constructor Description
MonitoringSettingProperties()

Creates an instance of MonitoringSettingProperties class.

Method Summary

Modifier and Type Method and Description
ApplicationInsightsAgentVersions appInsightsAgentVersions()

Get the appInsightsAgentVersions property: Indicates the versions of application insight agent.

String appInsightsInstrumentationKey()

Get the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.

Double appInsightsSamplingRate()

Get the appInsightsSamplingRate property: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].

Error error()

Get the error property: Error when apply Monitoring Setting changes.

static MonitoringSettingProperties fromJson(JsonReader jsonReader)

Reads an instance of MonitoringSettingProperties from the JsonReader.

MonitoringSettingState provisioningState()

Get the provisioningState property: State of the Monitoring Setting.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean traceEnabled()

Get the traceEnabled property: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview.

void validate()

Validates the instance.

MonitoringSettingProperties withAppInsightsAgentVersions(ApplicationInsightsAgentVersions appInsightsAgentVersions)

Set the appInsightsAgentVersions property: Indicates the versions of application insight agent.

MonitoringSettingProperties withAppInsightsInstrumentationKey(String appInsightsInstrumentationKey)

Set the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.

MonitoringSettingProperties withAppInsightsSamplingRate(Double appInsightsSamplingRate)

Set the appInsightsSamplingRate property: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].

MonitoringSettingProperties withError(Error error)

Set the error property: Error when apply Monitoring Setting changes.

MonitoringSettingProperties withTraceEnabled(Boolean traceEnabled)

Set the traceEnabled property: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview.

Methods inherited from java.lang.Object

Constructor Details

MonitoringSettingProperties

public MonitoringSettingProperties()

Creates an instance of MonitoringSettingProperties class.

Method Details

appInsightsAgentVersions

public ApplicationInsightsAgentVersions appInsightsAgentVersions()

Get the appInsightsAgentVersions property: Indicates the versions of application insight agent.

Returns:

the appInsightsAgentVersions value.

appInsightsInstrumentationKey

public String appInsightsInstrumentationKey()

Get the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.

Returns:

the appInsightsInstrumentationKey value.

appInsightsSamplingRate

public Double appInsightsSamplingRate()

Get the appInsightsSamplingRate property: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].

Returns:

the appInsightsSamplingRate value.

error

public Error error()

Get the error property: Error when apply Monitoring Setting changes.

Returns:

the error value.

fromJson

public static MonitoringSettingProperties fromJson(JsonReader jsonReader)

Reads an instance of MonitoringSettingProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public MonitoringSettingState provisioningState()

Get the provisioningState property: State of the Monitoring Setting.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

traceEnabled

public Boolean traceEnabled()

Get the traceEnabled property: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not.

Returns:

the traceEnabled value.

validate

public void validate()

Validates the instance.

withAppInsightsAgentVersions

public MonitoringSettingProperties withAppInsightsAgentVersions(ApplicationInsightsAgentVersions appInsightsAgentVersions)

Set the appInsightsAgentVersions property: Indicates the versions of application insight agent.

Parameters:

appInsightsAgentVersions - the appInsightsAgentVersions value to set.

Returns:

the MonitoringSettingProperties object itself.

withAppInsightsInstrumentationKey

public MonitoringSettingProperties withAppInsightsInstrumentationKey(String appInsightsInstrumentationKey)

Set the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.

Parameters:

appInsightsInstrumentationKey - the appInsightsInstrumentationKey value to set.

Returns:

the MonitoringSettingProperties object itself.

withAppInsightsSamplingRate

public MonitoringSettingProperties withAppInsightsSamplingRate(Double appInsightsSamplingRate)

Set the appInsightsSamplingRate property: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].

Parameters:

appInsightsSamplingRate - the appInsightsSamplingRate value to set.

Returns:

the MonitoringSettingProperties object itself.

withError

public MonitoringSettingProperties withError(Error error)

Set the error property: Error when apply Monitoring Setting changes.

Parameters:

error - the error value to set.

Returns:

the MonitoringSettingProperties object itself.

withTraceEnabled

public MonitoringSettingProperties withTraceEnabled(Boolean traceEnabled)

Set the traceEnabled property: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not.

Parameters:

traceEnabled - the traceEnabled value to set.

Returns:

the MonitoringSettingProperties object itself.

Applies to