Class LogAnalytics
java.lang.Object
com.azure.resourcemanager.containerinstance.models.LogAnalytics
Container group log analytics information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlogType()Get the logType property: The log type to be used.metadata()Get the metadata property: Metadata for log analytics.voidvalidate()Validates the instance.withLogType(LogAnalyticsLogType logType) Set the logType property: The log type to be used.withMetadata(Map<String, String> metadata) Set the metadata property: Metadata for log analytics.withWorkspaceId(String workspaceId) Set the workspaceId property: The workspace id for log analytics.withWorkspaceKey(String workspaceKey) Set the workspaceKey property: The workspace key for log analytics.withWorkspaceResourceId(String workspaceResourceId) Set the workspaceResourceId property: The workspace resource id for log analytics.Get the workspaceId property: The workspace id for log analytics.Get the workspaceKey property: The workspace key for log analytics.Get the workspaceResourceId property: The workspace resource id for log analytics.
-
Constructor Details
-
LogAnalytics
public LogAnalytics()Creates an instance of LogAnalytics class.
-
-
Method Details
-
workspaceId
Get the workspaceId property: The workspace id for log analytics.- Returns:
- the workspaceId value.
-
withWorkspaceId
Set the workspaceId property: The workspace id for log analytics.- Parameters:
workspaceId- the workspaceId value to set.- Returns:
- the LogAnalytics object itself.
-
workspaceKey
Get the workspaceKey property: The workspace key for log analytics.- Returns:
- the workspaceKey value.
-
withWorkspaceKey
Set the workspaceKey property: The workspace key for log analytics.- Parameters:
workspaceKey- the workspaceKey value to set.- Returns:
- the LogAnalytics object itself.
-
logType
Get the logType property: The log type to be used.- Returns:
- the logType value.
-
withLogType
Set the logType property: The log type to be used.- Parameters:
logType- the logType value to set.- Returns:
- the LogAnalytics object itself.
-
metadata
Get the metadata property: Metadata for log analytics.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: Metadata for log analytics.- Parameters:
metadata- the metadata value to set.- Returns:
- the LogAnalytics object itself.
-
workspaceResourceId
Get the workspaceResourceId property: The workspace resource id for log analytics.- Returns:
- the workspaceResourceId value.
-
withWorkspaceResourceId
Set the workspaceResourceId property: The workspace resource id for log analytics.- Parameters:
workspaceResourceId- the workspaceResourceId value to set.- Returns:
- the LogAnalytics object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-