MonitoringSettingProperties Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. MonitoringSettingProperties
- com.
Implements
public final class MonitoringSettingProperties
implements JsonSerializable<MonitoringSettingProperties>
Monitoring Setting properties payload.
Constructor Summary
Constructor | Description |
---|---|
MonitoringSettingProperties() |
Creates an instance of Monitoring |
Method Summary
Modifier and Type | Method and Description |
---|---|
Application |
appInsightsAgentVersions()
Get the app |
String |
appInsightsInstrumentationKey()
Get the app |
Double |
appInsightsSamplingRate()
Get the app |
Error |
error()
Get the error property: Error when apply Monitoring Setting changes. |
static
Monitoring |
fromJson(JsonReader jsonReader)
Reads an instance of Monitoring |
Monitoring |
provisioningState()
Get the provisioning |
Json |
toJson(JsonWriter jsonWriter) |
Boolean |
traceEnabled()
Get the trace |
void |
validate()
Validates the instance. |
Monitoring |
withAppInsightsAgentVersions(ApplicationInsightsAgentVersions appInsightsAgentVersions)
Set the app |
Monitoring |
withAppInsightsInstrumentationKey(String appInsightsInstrumentationKey)
Set the app |
Monitoring |
withAppInsightsSamplingRate(Double appInsightsSamplingRate)
Set the app |
Monitoring |
withError(Error error)
Set the error property: Error when apply Monitoring Setting changes. |
Monitoring |
withTraceEnabled(Boolean traceEnabled)
Set the trace |
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:
appInsightsInstrumentationKey
public String appInsightsInstrumentationKey()
Get the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.
Returns:
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:
error
public Error error()
Get the error property: Error when apply Monitoring Setting changes.
Returns:
fromJson
public static MonitoringSettingProperties fromJson(JsonReader jsonReader)
Reads an instance of MonitoringSettingProperties from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public MonitoringSettingState provisioningState()
Get the provisioningState property: State of the Monitoring Setting.
Returns:
toJson
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:
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:
Returns:
withAppInsightsInstrumentationKey
public MonitoringSettingProperties withAppInsightsInstrumentationKey(String appInsightsInstrumentationKey)
Set the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.
Parameters:
Returns:
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:
Returns:
withError
public MonitoringSettingProperties withError(Error error)
Set the error property: Error when apply Monitoring Setting changes.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java