LogAnalytics Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. LogAnalytics
- com.
Implements
public final class LogAnalytics
implements JsonSerializable<LogAnalytics>
Container group log analytics information.
Constructor Summary
Constructor | Description |
---|---|
LogAnalytics() |
Creates an instance of Log |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Log |
fromJson(JsonReader jsonReader)
Reads an instance of Log |
Log |
logType()
Get the log |
Map<String,String> |
metadata()
Get the metadata property: Metadata for log analytics. |
Json |
toJson(JsonWriter jsonWriter) |
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
fromJson
public static LogAnalytics fromJson(JsonReader jsonReader)
Reads an instance of LogAnalytics from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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