Show / Hide Table of Contents

    Class LogProfileResource

    The log profile resource.

    Inheritance
    Object
    Resource
    LogProfileResource
    Inherited Members
    Resource.Id
    Resource.Location
    Resource.Name
    Resource.Tags
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class LogProfileResource : Microsoft.Azure.Management.Monitor.Models.Resource

    Constructors

    LogProfileResource()

    Initializes a new instance of the LogProfileResource class.

    Declaration
    public LogProfileResource ();

    LogProfileResource(String, IList<String>, IList<String>, RetentionPolicy, String, String, String, IDictionary<String,String>, String, String)

    Initializes a new instance of the LogProfileResource class.

    Declaration
    public LogProfileResource (string location, System.Collections.Generic.IList<string> locations, System.Collections.Generic.IList<string> categories, Microsoft.Azure.Management.Monitor.Models.RetentionPolicy retentionPolicy, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, string storageAccountId = null, string serviceBusRuleId = null);
    Parameters
    String location

    Resource location

    IList<String> locations

    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.

    IList<String> categories

    the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'

    RetentionPolicy retentionPolicy

    the retention policy for the events in the log.

    String id

    Azure resource Id

    String name

    Azure resource name

    String type

    Azure resource type

    IDictionary<String,String> tags

    Resource tags

    String storageAccountId

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

    String serviceBusRuleId

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

    Properties

    Categories

    Gets or sets the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.categories")]
    public System.Collections.Generic.IList<string> Categories { get; set; }
    Property Value
    IList<String>

    Locations

    Gets or sets 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.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.locations")]
    public System.Collections.Generic.IList<string> Locations { get; set; }
    Property Value
    IList<String>

    RetentionPolicy

    Gets or sets the retention policy for the events in the log.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.retentionPolicy")]
    public Microsoft.Azure.Management.Monitor.Models.RetentionPolicy RetentionPolicy { get; set; }
    Property Value
    RetentionPolicy

    ServiceBusRuleId

    Gets or sets 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}'.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.serviceBusRuleId")]
    public string ServiceBusRuleId { get; set; }
    Property Value
    String

    StorageAccountId

    Gets or sets the resource id of the storage account to which you would like to send the Activity Log.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.storageAccountId")]
    public string StorageAccountId { get; set; }
    Property Value
    String

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net