Wrapps around the ServiceDiagnosticSettings
Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PSLogProfile"/> class.
        /// </summary>
        /// <param name="logProfile">The input logProfile</param>
        public PSLogProfile(LogProfileResource logProfile) : base(id: logProfile.Id, location: logProfile.Location)
        {
            base.RetentionPolicy = logProfile.RetentionPolicy;

            this.Name             = logProfile.Name;
            this.Categories       = logProfile.Categories;
            this.Locations        = logProfile.Locations;
            this.RetentionPolicy  = new PSRetentionPolicy(logProfile.RetentionPolicy);
            this.ServiceBusRuleId = logProfile.ServiceBusRuleId;
            this.StorageAccountId = logProfile.StorageAccountId;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PSLogProfile"/> class.
        /// </summary>
        /// <param name="logProfile">The input logProfile</param>
        public PSLogProfile(LogProfileResource logProfile) : base(id: logProfile.Id, location: logProfile.Location)
        {
            base.RetentionPolicy = logProfile.RetentionPolicy;

            this.Name = logProfile.Name;
            this.Categories = logProfile.Categories;
            this.Locations = logProfile.Locations;
            this.RetentionPolicy = new PSRetentionPolicy(logProfile.RetentionPolicy);
            this.ServiceBusRuleId = logProfile.ServiceBusRuleId;
            this.StorageAccountId = logProfile.StorageAccountId;
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the PSLogSettings class.
 /// </summary>
 public PSLogSettings(LogSettings logSettings)
 {
     this.Enabled         = logSettings.Enabled;
     this.Category        = logSettings.Category;
     this.RetentionPolicy = new PSRetentionPolicy(logSettings.RetentionPolicy);
 }
 /// <summary>
 /// Initializes a new instance of the PSMetricSettings class.
 /// </summary>
 public PSMetricSettings(MetricSettings metricSettings)
 {
     this.Enabled = metricSettings.Enabled;
     this.Timegrain = XmlConvert.ToString(metricSettings.TimeGrain);
     this.RetentionPolicy = new PSRetentionPolicy(metricSettings.RetentionPolicy);
 }
 /// <summary>
 /// Initializes a new instance of the PSLogSettings class.
 /// </summary>
 public PSLogSettings(LogSettings logSettings)
 {
     this.Enabled = logSettings.Enabled;
     this.Category = logSettings.Category;
     this.RetentionPolicy = new PSRetentionPolicy(logSettings.RetentionPolicy);
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the PSMetricSettings class.
 /// </summary>
 public PSMetricSettings(MetricSettings metricSettings)
 {
     this.Enabled         = metricSettings.Enabled;
     this.Timegrain       = XmlConvert.ToString(metricSettings.TimeGrain);
     this.RetentionPolicy = new PSRetentionPolicy(metricSettings.RetentionPolicy);
 }