LogProfileResourceInner Class
public class LogProfileResourceInner implements Resource
The log profile resource.
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
categories()
Get the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'. |
List<String> |
locations()
Get list of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location. |
Retention |
retentionPolicy()
Get the retention policy for the events in the log. |
String |
serviceBusRuleId()
Get the service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'. |
String |
storageAccountId()
Get the resource id of the storage account to which you would like to send the Activity Log. |
Log |
withCategories(List<String> categories)
Set the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'. |
Log |
withLocations(List<String> locations)
Set list of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location. |
Log |
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retention policy for the events in the log. |
Log |
withServiceBusRuleId(String serviceBusRuleId)
Set the service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'. |
Log |
withStorageAccountId(String storageAccountId)
Set the resource id of the storage account to which you would like to send the Activity Log. |
Inherited Members
Method Details
categories
public List
Get the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.
Returns:
locations
public List
Get list of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
Returns:
retentionPolicy
public RetentionPolicy retentionPolicy()
Get the retention policy for the events in the log.
Returns:
serviceBusRuleId
public String serviceBusRuleId()
Get the service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
Returns:
storageAccountId
public String storageAccountId()
Get the resource id of the storage account to which you would like to send the Activity Log.
Returns:
withCategories
public LogProfileResourceInner withCategories(List
Set the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.
Parameters:
Returns:
withLocations
public LogProfileResourceInner withLocations(List
Set list of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
Parameters:
Returns:
withRetentionPolicy
public LogProfileResourceInner withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retention policy for the events in the log.
Parameters:
Returns:
withServiceBusRuleId
public LogProfileResourceInner withServiceBusRuleId(String serviceBusRuleId)
Set the service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
Parameters:
Returns:
withStorageAccountId
public LogProfileResourceInner withStorageAccountId(String storageAccountId)
Set the resource id of the storage account to which you would like to send the Activity Log.
Parameters:
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