Class MonitoredResourceInner

java.lang.Object
com.azure.resourcemanager.dynatrace.fluent.models.MonitoredResourceInner

public final class MonitoredResourceInner extends Object
Details of resource being monitored by Dynatrace monitor resource.
  • Constructor Details

    • MonitoredResourceInner

      public MonitoredResourceInner()
  • Method Details

    • id

      public String id()
      Get the id property: The ARM id of the resource.
      Returns:
      the id value.
    • withId

      public MonitoredResourceInner withId(String id)
      Set the id property: The ARM id of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the MonitoredResourceInner object itself.
    • sendingMetrics

      public SendingMetricsStatus sendingMetrics()
      Get the sendingMetrics property: Flag indicating if resource is sending metrics to Dynatrace.
      Returns:
      the sendingMetrics value.
    • withSendingMetrics

      public MonitoredResourceInner withSendingMetrics(SendingMetricsStatus sendingMetrics)
      Set the sendingMetrics property: Flag indicating if resource is sending metrics to Dynatrace.
      Parameters:
      sendingMetrics - the sendingMetrics value to set.
      Returns:
      the MonitoredResourceInner object itself.
    • reasonForMetricsStatus

      public String reasonForMetricsStatus()
      Get the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not sending).
      Returns:
      the reasonForMetricsStatus value.
    • withReasonForMetricsStatus

      public MonitoredResourceInner withReasonForMetricsStatus(String reasonForMetricsStatus)
      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

      public SendingLogsStatus sendingLogs()
      Get the sendingLogs property: Flag indicating if resource is sending logs to Dynatrace.
      Returns:
      the sendingLogs value.
    • withSendingLogs

      public MonitoredResourceInner withSendingLogs(SendingLogsStatus sendingLogs)
      Set the sendingLogs property: Flag indicating if resource is sending logs to Dynatrace.
      Parameters:
      sendingLogs - the sendingLogs value to set.
      Returns:
      the MonitoredResourceInner object itself.
    • reasonForLogsStatus

      public String reasonForLogsStatus()
      Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
      Returns:
      the reasonForLogsStatus value.
    • withReasonForLogsStatus

      public MonitoredResourceInner withReasonForLogsStatus(String reasonForLogsStatus)
      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.