com.microsoft.azure.management.containerinstance.LogAnalytics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-containerinstance Show documentation
Show all versions of azure-mgmt-containerinstance Show documentation
This package contains Microsoft Azure Container Instance SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-containerinstance is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.containerinstance;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Container group log analytics information.
*/
public class LogAnalytics {
/**
* The workspace id for log analytics.
*/
@JsonProperty(value = "workspaceId", required = true)
private String workspaceId;
/**
* The workspace key for log analytics.
*/
@JsonProperty(value = "workspaceKey", required = true)
private String workspaceKey;
/**
* The log type to be used. Possible values include: 'ContainerInsights',
* 'ContainerInstanceLogs'.
*/
@JsonProperty(value = "logType")
private LogAnalyticsLogType logType;
/**
* Metadata for log analytics.
*/
@JsonProperty(value = "metadata")
private Map metadata;
/**
* Get the workspace id for log analytics.
*
* @return the workspaceId value
*/
public String workspaceId() {
return this.workspaceId;
}
/**
* Set the workspace id for log analytics.
*
* @param workspaceId the workspaceId value to set
* @return the LogAnalytics object itself.
*/
public LogAnalytics withWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
return this;
}
/**
* Get the workspace key for log analytics.
*
* @return the workspaceKey value
*/
public String workspaceKey() {
return this.workspaceKey;
}
/**
* Set the workspace key for log analytics.
*
* @param workspaceKey the workspaceKey value to set
* @return the LogAnalytics object itself.
*/
public LogAnalytics withWorkspaceKey(String workspaceKey) {
this.workspaceKey = workspaceKey;
return this;
}
/**
* Get the log type to be used. Possible values include: 'ContainerInsights', 'ContainerInstanceLogs'.
*
* @return the logType value
*/
public LogAnalyticsLogType logType() {
return this.logType;
}
/**
* Set the log type to be used. Possible values include: 'ContainerInsights', 'ContainerInstanceLogs'.
*
* @param logType the logType value to set
* @return the LogAnalytics object itself.
*/
public LogAnalytics withLogType(LogAnalyticsLogType logType) {
this.logType = logType;
return this;
}
/**
* Get metadata for log analytics.
*
* @return the metadata value
*/
public Map metadata() {
return this.metadata;
}
/**
* Set metadata for log analytics.
*
* @param metadata the metadata value to set
* @return the LogAnalytics object itself.
*/
public LogAnalytics withMetadata(Map metadata) {
this.metadata = metadata;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy