MonitoredResourceInner Class

  • java.lang.Object
    • com.azure.resourcemanager.datadog.fluent.models.MonitoredResourceInner

public final class MonitoredResourceInner

The properties of a resource currently being monitored by the Datadog monitor resource.

Constructor Summary

Constructor Description
MonitoredResourceInner()

Creates an instance of MonitoredResourceInner class.

Method Summary

Modifier and Type Method and Description
String id()

Get the id property: The ARM id of the resource.

String reasonForLogsStatus()

Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).

String reasonForMetricsStatus()

Get the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not sending).

Boolean sendingLogs()

Get the sendingLogs property: Flag indicating if resource is sending logs to Datadog.

Boolean sendingMetrics()

Get the sendingMetrics property: Flag indicating if resource is sending metrics to Datadog.

void validate()

Validates the instance.

MonitoredResourceInner withId(String id)

Set the id property: The ARM id of the resource.

MonitoredResourceInner withReasonForLogsStatus(String reasonForLogsStatus)

Set the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).

MonitoredResourceInner withReasonForMetricsStatus(String reasonForMetricsStatus)

Set the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not sending).

MonitoredResourceInner withSendingLogs(Boolean sendingLogs)

Set the sendingLogs property: Flag indicating if resource is sending logs to Datadog.

MonitoredResourceInner withSendingMetrics(Boolean sendingMetrics)

Set the sendingMetrics property: Flag indicating if resource is sending metrics to Datadog.

Methods inherited from java.lang.Object

Constructor Details

MonitoredResourceInner

public MonitoredResourceInner()

Creates an instance of MonitoredResourceInner class.

Method Details

id

public String id()

Get the id property: The ARM id of the resource.

Returns:

the id value.

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.

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.

sendingLogs

public Boolean sendingLogs()

Get the sendingLogs property: Flag indicating if resource is sending logs to Datadog.

Returns:

the sendingLogs value.

sendingMetrics

public Boolean sendingMetrics()

Get the sendingMetrics property: Flag indicating if resource is sending metrics to Datadog.

Returns:

the sendingMetrics value.

validate

public void validate()

Validates the instance.

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.

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.

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.

withSendingLogs

public MonitoredResourceInner withSendingLogs(Boolean sendingLogs)

Set the sendingLogs property: Flag indicating if resource is sending logs to Datadog.

Parameters:

sendingLogs - the sendingLogs value to set.

Returns:

the MonitoredResourceInner object itself.

withSendingMetrics

public MonitoredResourceInner withSendingMetrics(Boolean sendingMetrics)

Set the sendingMetrics property: Flag indicating if resource is sending metrics to Datadog.

Parameters:

sendingMetrics - the sendingMetrics value to set.

Returns:

the MonitoredResourceInner object itself.

Applies to