LogAnalyticsDestination Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. LogAnalyticsDestination
- com.
Implements
public final class LogAnalyticsDestination
implements JsonSerializable<LogAnalyticsDestination>
Log Analytics destination.
Constructor Summary
Constructor | Description |
---|---|
LogAnalyticsDestination() |
Creates an instance of Log |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Log |
fromJson(JsonReader jsonReader)
Reads an instance of Log |
String |
name()
Get the name property: A friendly name for the destination. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Log |
withName(String name)
Set the name property: A friendly name for the destination. |
Log |
withWorkspaceResourceId(String workspaceResourceId)
Set the workspace |
String |
workspaceId()
Get the workspace |
String |
workspaceResourceId()
Get the workspace |
Methods inherited from java.lang.Object
Constructor Details
LogAnalyticsDestination
public LogAnalyticsDestination()
Creates an instance of LogAnalyticsDestination class.
Method Details
fromJson
public static LogAnalyticsDestination fromJson(JsonReader jsonReader)
Reads an instance of LogAnalyticsDestination from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public LogAnalyticsDestination withName(String name)
Set the name property: A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.
Parameters:
Returns:
withWorkspaceResourceId
public LogAnalyticsDestination withWorkspaceResourceId(String workspaceResourceId)
Set the workspaceResourceId property: The resource ID of the Log Analytics workspace.
Parameters:
Returns:
workspaceId
public String workspaceId()
Get the workspaceId property: The Customer ID of the Log Analytics workspace.
Returns:
workspaceResourceId
public String workspaceResourceId()
Get the workspaceResourceId property: The resource ID of the Log Analytics workspace.
Returns:
Applies to
Azure SDK for Java