ManagedClusterAzureMonitorProfileContainerInsights Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterAzureMonitorProfileContainerInsights
- com.
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 Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Container |
containerNetworkLogs()
Get the container |
| Boolean |
disablePrometheusMetricsScraping()
Get the disable |
| Boolean |
enabled()
Get the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not. |
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
| String |
logAnalyticsWorkspaceResourceId()
Get the log |
| Long |
syslogPort()
Get the syslog |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Managed |
withContainerNetworkLogs(ContainerNetworkLogs containerNetworkLogs)
Set the container |
|
Managed |
withDisablePrometheusMetricsScraping(Boolean disablePrometheusMetricsScraping)
Set the disable |
|
Managed |
withEnabled(Boolean enabled)
Set the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not. |
|
Managed |
withLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId)
Set the log |
|
Managed |
withSyslogPort(Long syslogPort)
Set the syslog |
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:
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:
enabled
public Boolean enabled()
Get the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not.
Returns:
fromJson
public static ManagedClusterAzureMonitorProfileContainerInsights fromJson(JsonReader jsonReader)
Reads an instance of ManagedClusterAzureMonitorProfileContainerInsights from the JsonReader.
Parameters:
Returns:
Throws:
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:
syslogPort
public Long syslogPort()
Get the syslogPort property: The syslog host port. If not specified, the default port is 28330.
Returns:
toJson
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:
Returns:
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:
Returns:
withEnabled
public ManagedClusterAzureMonitorProfileContainerInsights withEnabled(Boolean enabled)
Set the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not.
Parameters:
Returns:
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:
Returns:
withSyslogPort
public ManagedClusterAzureMonitorProfileContainerInsights withSyslogPort(Long syslogPort)
Set the syslogPort property: The syslog host port. If not specified, the default port is 28330.
Parameters:
Returns: