LogAnalytics Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. LogAnalytics
- com.
public final class LogAnalytics
Container group log analytics information.
Constructor Summary
Constructor | Description |
---|---|
LogAnalytics() |
Creates an instance of Log |
Method Summary
Modifier and Type | Method and Description |
---|---|
Log |
logType()
Get the log |
Map<String,String> |
metadata()
Get the metadata property: Metadata for log analytics. |
void |
validate()
Validates the instance. |
Log |
withLogType(LogAnalyticsLogType logType)
Set the log |
Log |
withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata for log analytics. |
Log |
withWorkspaceId(String workspaceId)
Set the workspace |
Log |
withWorkspaceKey(String workspaceKey)
Set the workspace |
Log |
withWorkspaceResourceId(String workspaceResourceId)
Set the workspace |
String |
workspaceId()
Get the workspace |
String |
workspaceKey()
Get the workspace |
String |
workspaceResourceId()
Get the workspace |
Methods inherited from java.lang.Object
Constructor Details
LogAnalytics
public LogAnalytics()
Creates an instance of LogAnalytics class.
Method Details
logType
public LogAnalyticsLogType logType()
Get the logType property: The log type to be used.
Returns:
metadata
public Map
Get the metadata property: Metadata for log analytics.
Returns:
validate
public void validate()
Validates the instance.
withLogType
public LogAnalytics withLogType(LogAnalyticsLogType logType)
Set the logType property: The log type to be used.
Parameters:
Returns:
withMetadata
public LogAnalytics withMetadata(Map
Set the metadata property: Metadata for log analytics.
Parameters:
Returns:
withWorkspaceId
public LogAnalytics withWorkspaceId(String workspaceId)
Set the workspaceId property: The workspace id for log analytics.
Parameters:
Returns:
withWorkspaceKey
public LogAnalytics withWorkspaceKey(String workspaceKey)
Set the workspaceKey property: The workspace key for log analytics.
Parameters:
Returns:
withWorkspaceResourceId
public LogAnalytics withWorkspaceResourceId(String workspaceResourceId)
Set the workspaceResourceId property: The workspace resource id for log analytics.
Parameters:
Returns:
workspaceId
public String workspaceId()
Get the workspaceId property: The workspace id for log analytics.
Returns:
workspaceKey
public String workspaceKey()
Get the workspaceKey property: The workspace key for log analytics.
Returns:
workspaceResourceId
public String workspaceResourceId()
Get the workspaceResourceId property: The workspace resource id for log analytics.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for