ManagedClusterAzureMonitorProfileContainerInsights Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfileContainerInsights

Implements

public final class ManagedClusterAzureMonitorProfileContainerInsights
implements JsonSerializable<ManagedClusterAzureMonitorProfileContainerInsights>

Azure Monitor Container Insights profile. Represents the configuration for collecting Kubernetes events, inventory, and container stdout & stderr logs. See aka.ms/AzureMonitorContainerInsights for an overview.

Constructor Summary

Constructor Description
ManagedClusterAzureMonitorProfileContainerInsights()

Creates an instance of ManagedClusterAzureMonitorProfileContainerInsights class.

Method Summary

Modifier and Type Method and Description
ContainerNetworkLogs containerNetworkLogs()

Get the containerNetworkLogs property: Configures container network logs ingestion with Azure Monitor.

Boolean disablePrometheusMetricsScraping()

Get the disablePrometheusMetricsScraping property: Indicates whether prometheus metrics scraping is disabled or not.

Boolean enabled()

Get the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not.

static ManagedClusterAzureMonitorProfileContainerInsights fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileContainerInsights from the JsonReader.

String logAnalyticsWorkspaceResourceId()

Get the logAnalyticsWorkspaceResourceId property: Fully Qualified ARM Resource Id of Azure Log Analytics Workspace for storing Azure Monitor Container Insights Logs.

Long syslogPort()

Get the syslogPort property: The syslog host port.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAzureMonitorProfileContainerInsights withContainerNetworkLogs(ContainerNetworkLogs containerNetworkLogs)

Set the containerNetworkLogs property: Configures container network logs ingestion with Azure Monitor.

ManagedClusterAzureMonitorProfileContainerInsights withDisablePrometheusMetricsScraping(Boolean disablePrometheusMetricsScraping)

Set the disablePrometheusMetricsScraping property: Indicates whether prometheus metrics scraping is disabled or not.

ManagedClusterAzureMonitorProfileContainerInsights withEnabled(Boolean enabled)

Set the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not.

ManagedClusterAzureMonitorProfileContainerInsights withLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId)

Set the logAnalyticsWorkspaceResourceId property: Fully Qualified ARM Resource Id of Azure Log Analytics Workspace for storing Azure Monitor Container Insights Logs.

ManagedClusterAzureMonitorProfileContainerInsights withSyslogPort(Long syslogPort)

Set the syslogPort property: The syslog host port.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAzureMonitorProfileContainerInsights

public ManagedClusterAzureMonitorProfileContainerInsights()

Creates an instance of ManagedClusterAzureMonitorProfileContainerInsights class.

Method Details

containerNetworkLogs

public ContainerNetworkLogs containerNetworkLogs()

Get the containerNetworkLogs property: Configures container network logs ingestion with Azure Monitor. The log types ingested are controlled by the associated CRD; if unspecified, defaults to `Disabled`. See https://aka.ms/ContainerNetworkLogsDoc and https://aka.ms/acns/howtoenablecnl for details.

Returns:

the containerNetworkLogs value.

disablePrometheusMetricsScraping

public Boolean disablePrometheusMetricsScraping()

Get the disablePrometheusMetricsScraping property: Indicates whether prometheus metrics scraping is disabled or not. If not specified the default is false i.e. the prometheus scraping is enabled.

Returns:

the disablePrometheusMetricsScraping value.

enabled

public Boolean enabled()

Get the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not.

Returns:

the enabled value.

fromJson

public static ManagedClusterAzureMonitorProfileContainerInsights fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileContainerInsights from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

logAnalyticsWorkspaceResourceId

public String logAnalyticsWorkspaceResourceId()

Get the logAnalyticsWorkspaceResourceId property: Fully Qualified ARM Resource Id of Azure Log Analytics Workspace for storing Azure Monitor Container Insights Logs.

Returns:

the logAnalyticsWorkspaceResourceId value.

syslogPort

public Long syslogPort()

Get the syslogPort property: The syslog host port. If not specified, the default port is 28330.

Returns:

the syslogPort value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContainerNetworkLogs

public ManagedClusterAzureMonitorProfileContainerInsights withContainerNetworkLogs(ContainerNetworkLogs containerNetworkLogs)

Set the containerNetworkLogs property: Configures container network logs ingestion with Azure Monitor. The log types ingested are controlled by the associated CRD; if unspecified, defaults to `Disabled`. See https://aka.ms/ContainerNetworkLogsDoc and https://aka.ms/acns/howtoenablecnl for details.

Parameters:

containerNetworkLogs - the containerNetworkLogs value to set.

Returns:

the ManagedClusterAzureMonitorProfileContainerInsights object itself.

withDisablePrometheusMetricsScraping

public ManagedClusterAzureMonitorProfileContainerInsights withDisablePrometheusMetricsScraping(Boolean disablePrometheusMetricsScraping)

Set the disablePrometheusMetricsScraping property: Indicates whether prometheus metrics scraping is disabled or not. If not specified the default is false i.e. the prometheus scraping is enabled.

Parameters:

disablePrometheusMetricsScraping - the disablePrometheusMetricsScraping value to set.

Returns:

the ManagedClusterAzureMonitorProfileContainerInsights object itself.

withEnabled

public ManagedClusterAzureMonitorProfileContainerInsights withEnabled(Boolean enabled)

Set the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterAzureMonitorProfileContainerInsights object itself.

withLogAnalyticsWorkspaceResourceId

public ManagedClusterAzureMonitorProfileContainerInsights withLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId)

Set the logAnalyticsWorkspaceResourceId property: Fully Qualified ARM Resource Id of Azure Log Analytics Workspace for storing Azure Monitor Container Insights Logs.

Parameters:

logAnalyticsWorkspaceResourceId - the logAnalyticsWorkspaceResourceId value to set.

Returns:

the ManagedClusterAzureMonitorProfileContainerInsights object itself.

withSyslogPort

public ManagedClusterAzureMonitorProfileContainerInsights withSyslogPort(Long syslogPort)

Set the syslogPort property: The syslog host port. If not specified, the default port is 28330.

Parameters:

syslogPort - the syslogPort value to set.

Returns:

the ManagedClusterAzureMonitorProfileContainerInsights object itself.

Applies to