Esempio n. 1
0
        ///GENMHASH:61B5A645876D07C504C5B173DE0F3F4B:B458F7A8C0DBFEDF2F7A0B2B1732CBAA
        public IReadOnlyDictionary <string, Microsoft.Azure.Management.Monitor.Fluent.IAutoscaleProfile> Profiles()
        {
            var result = new Dictionary <string, Microsoft.Azure.Management.Monitor.Fluent.IAutoscaleProfile>();

            foreach (var profileInner in this.Inner.Profiles)
            {
                var profileImpl = new AutoscaleProfileImpl(profileInner.Name, profileInner, this);
                result.Add(profileImpl.Name(), profileImpl);
            }
            return(result);
        }
Esempio n. 2
0
 ///GENMHASH:A500018F3C27587F7A3CB038F02A534A:F0E0F7CC23E9DB4814F31FCFB33ED7BF
 internal ScaleRuleImpl(ScaleRuleInner innerObject, AutoscaleProfileImpl parent)
     : base(innerObject)
 {
     this.parent = parent;
     if (this.Inner.MetricTrigger == null)
     {
         this.Inner.MetricTrigger = new MetricTrigger();
     }
     if (this.Inner.ScaleAction == null)
     {
         this.Inner.ScaleAction = new ScaleAction();
     }
 }
Esempio n. 3
0
 ///GENMHASH:3AF50C65B0CC9B047E6C1E065D6BFBED:268594186991AA178F36385596B61033
 public AutoscaleSettingImpl AddNewAutoscaleProfile(AutoscaleProfileImpl profile)
 {
     this.Inner.Profiles.Add(profile.Inner);
     return(this);
 }