Class MonitoredResourceInner
java.lang.Object
com.azure.resourcemanager.logz.fluent.models.MonitoredResourceInner
The properties of a resource currently being monitored by the Logz monitor resource.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MonitoredResourceInner class. -
Method Summary
Modifier and TypeMethodDescriptionid()
Get the id property: The ARM id of the resource.Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).Get the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not sending).Get the sendingLogs property: Flag indicating if resource is sending logs to Logz.Get the sendingMetrics property: Flag indicating if resource is sending metrics to Logz.com.azure.core.management.SystemData
Get the systemData property: Metadata pertaining to creation and last modification of the resource.void
validate()
Validates the instance.Set the id property: The ARM id of the resource.withReasonForLogsStatus
(String reasonForLogsStatus) Set the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).withReasonForMetricsStatus
(String reasonForMetricsStatus) Set the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not sending).withSendingLogs
(Boolean sendingLogs) Set the sendingLogs property: Flag indicating if resource is sending logs to Logz.withSendingMetrics
(Boolean sendingMetrics) Set the sendingMetrics property: Flag indicating if resource is sending metrics to Logz.
-
Constructor Details
-
MonitoredResourceInner
public MonitoredResourceInner()Creates an instance of MonitoredResourceInner class.
-
-
Method Details
-
id
Get the id property: The ARM id of the resource.- Returns:
- the id value.
-
withId
Set the id property: The ARM id of the resource.- Parameters:
id
- the id value to set.- Returns:
- the MonitoredResourceInner object itself.
-
sendingMetrics
Get the sendingMetrics property: Flag indicating if resource is sending metrics to Logz.- Returns:
- the sendingMetrics value.
-
withSendingMetrics
Set the sendingMetrics property: Flag indicating if resource is sending metrics to Logz.- Parameters:
sendingMetrics
- the sendingMetrics value to set.- Returns:
- the MonitoredResourceInner object itself.
-
reasonForMetricsStatus
Get the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not sending).- Returns:
- the reasonForMetricsStatus value.
-
withReasonForMetricsStatus
Set the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not sending).- Parameters:
reasonForMetricsStatus
- the reasonForMetricsStatus value to set.- Returns:
- the MonitoredResourceInner object itself.
-
sendingLogs
Get the sendingLogs property: Flag indicating if resource is sending logs to Logz.- Returns:
- the sendingLogs value.
-
withSendingLogs
Set the sendingLogs property: Flag indicating if resource is sending logs to Logz.- Parameters:
sendingLogs
- the sendingLogs value to set.- Returns:
- the MonitoredResourceInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
reasonForLogsStatus
Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).- Returns:
- the reasonForLogsStatus value.
-
withReasonForLogsStatus
Set the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).- Parameters:
reasonForLogsStatus
- the reasonForLogsStatus value to set.- Returns:
- the MonitoredResourceInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-