Show / Hide Table of Contents

    Class LogProfileResourcePatch

    The log profile resource for patch operations.

    Inheritance
    Object
    LogProfileResourcePatch
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class LogProfileResourcePatch

    Constructors

    LogProfileResourcePatch()

    Initializes a new instance of the LogProfileResourcePatch class.

    Declaration
    public LogProfileResourcePatch ();

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

    Initializes a new instance of the LogProfileResourcePatch class.

    Declaration
    public LogProfileResourcePatch (System.Collections.Generic.IList<string> locations, System.Collections.Generic.IList<string> categories, Microsoft.Azure.Management.Monitor.Models.RetentionPolicy retentionPolicy, System.Collections.Generic.IDictionary<string,string> tags = null, string storageAccountId = null, string serviceBusRuleId = null);
    Parameters
    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.

    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

    Tags

    Gets or sets resource tags

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="tags")]
    public System.Collections.Generic.IDictionary<string,string> Tags { get; set; }
    Property Value
    IDictionary<String,String>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net