/// <summary>
 /// Initializes a new instance of the LogSettings class.
 /// </summary>
 /// <param name="enabled">a value indicating whether this log is
 /// enabled.</param>
 /// <param name="category">Name of a Diagnostic Log category for a
 /// resource type this setting is applied to. To obtain the list of
 /// Diagnostic Log categories for a resource, first perform a GET
 /// diagnostic settings operation.</param>
 /// <param name="retentionPolicy">the retention policy for this
 /// log.</param>
 public LogSettings(bool enabled, string category = default(string), RetentionPolicy retentionPolicy = default(RetentionPolicy))
 {
     Category        = category;
     Enabled         = enabled;
     RetentionPolicy = retentionPolicy;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the MetricSettings class.
 /// </summary>
 /// <param name="enabled">a value indicating whether this category is
 /// enabled.</param>
 /// <param name="timeGrain">the timegrain of the metric in ISO8601
 /// format.</param>
 /// <param name="category">Name of a Diagnostic Metric category for a
 /// resource type this setting is applied to. To obtain the list of
 /// Diagnostic metric categories for a resource, first perform a GET
 /// diagnostic settings operation.</param>
 /// <param name="retentionPolicy">the retention policy for this
 /// category.</param>
 public MetricSettings(bool enabled, System.TimeSpan?timeGrain = default(System.TimeSpan?), string category = default(string), RetentionPolicy retentionPolicy = default(RetentionPolicy))
 {
     TimeGrain       = timeGrain;
     Category        = category;
     Enabled         = enabled;
     RetentionPolicy = retentionPolicy;
     CustomInit();
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the LogProfileResource class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="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.</param>
 /// <param name="categories">the categories of the logs. These
 /// categories are created as is convenient to the user. Some values
 /// are: 'Write', 'Delete', and/or 'Action.'</param>
 /// <param name="retentionPolicy">the retention policy for the events
 /// in the log.</param>
 /// <param name="id">Azure resource Id</param>
 /// <param name="name">Azure resource name</param>
 /// <param name="type">Azure resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="kind">Metadata used by portal/tooling/etc to render
 /// different UX experiences for resources of the same type; e.g.
 /// ApiApps are a kind of Microsoft.Web/sites type.  If supported, the
 /// resource provider must validate and persist this value.</param>
 /// <param name="etag">The etag field is *not* required. If it is
 /// provided in the response body, it must also be provided as a header
 /// per the normal etag convention.  Entity tags are used for comparing
 /// two or more entities from the same requested resource. HTTP/1.1
 /// uses entity tags in the etag (section 14.19), If-Match (section
 /// 14.24), If-None-Match (section 14.26), and If-Range (section 14.27)
 /// header fields. </param>
 /// <param name="storageAccountId">the resource id of the storage
 /// account to which you would like to send the Activity Log.</param>
 /// <param name="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}'.</param>
 public LogProfileResource(string location, IList <string> locations, IList <string> categories, RetentionPolicy retentionPolicy, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string kind = default(string), string etag = default(string), string storageAccountId = default(string), string serviceBusRuleId = default(string))
     : base(location, id, name, type, tags, kind, etag)
 {
     StorageAccountId = storageAccountId;
     ServiceBusRuleId = serviceBusRuleId;
     Locations        = locations;
     Categories       = categories;
     RetentionPolicy  = retentionPolicy;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the LogProfileResourcePatch class.
 /// </summary>
 /// <param name="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.</param>
 /// <param name="categories">the categories of the logs. These
 /// categories are created as is convenient to the user. Some values
 /// are: 'Write', 'Delete', and/or 'Action.'</param>
 /// <param name="retentionPolicy">the retention policy for the events
 /// in the log.</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="storageAccountId">the resource id of the storage
 /// account to which you would like to send the Activity Log.</param>
 /// <param name="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}'.</param>
 public LogProfileResourcePatch(IList <string> locations, IList <string> categories, RetentionPolicy retentionPolicy, IDictionary <string, string> tags = default(IDictionary <string, string>), string storageAccountId = default(string), string serviceBusRuleId = default(string))
 {
     Tags             = tags;
     StorageAccountId = storageAccountId;
     ServiceBusRuleId = serviceBusRuleId;
     Locations        = locations;
     Categories       = categories;
     RetentionPolicy  = retentionPolicy;
     CustomInit();
 }