LogProfileResourceInner Class

  • java.lang.Object
    • Indexable
      • Resource
        • com.microsoft.azure.management.monitor.implementation.LogProfileResourceInner

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.

RetentionPolicy 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.

LogProfileResourceInner 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.'.

LogProfileResourceInner 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.

LogProfileResourceInner withRetentionPolicy(RetentionPolicy retentionPolicy)

Set the retention policy for the events in the log.

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}'.

LogProfileResourceInner 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 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.'.

Returns:

the categories value

locations

public List 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.

Returns:

the locations value

retentionPolicy

public RetentionPolicy retentionPolicy()

Get the retention policy for the events in the log.

Returns:

the retentionPolicy value

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:

the serviceBusRuleId value

storageAccountId

public String storageAccountId()

Get the resource id of the storage account to which you would like to send the Activity Log.

Returns:

the storageAccountId value

withCategories

public LogProfileResourceInner withCategories(List 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.'.

Parameters:

categories - the categories value to set

Returns:

the LogProfileResourceInner object itself.

withLocations

public LogProfileResourceInner withLocations(List 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.

Parameters:

locations - the locations value to set

Returns:

the LogProfileResourceInner object itself.

withRetentionPolicy

public LogProfileResourceInner withRetentionPolicy(RetentionPolicy retentionPolicy)

Set the retention policy for the events in the log.

Parameters:

retentionPolicy - the retentionPolicy value to set

Returns:

the LogProfileResourceInner object itself.

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:

serviceBusRuleId - the serviceBusRuleId value to set

Returns:

the LogProfileResourceInner object itself.

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:

storageAccountId - the storageAccountId value to set

Returns:

the LogProfileResourceInner object itself.

Applies to