コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the RegionHealth class.
 /// </summary>
 /// <param name="id">Fully qualified resource Id for the
 /// resource</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="location">The Azure Region where the resource
 /// lives</param>
 /// <param name="alertSummary">Summary of alerts.</param>
 /// <param name="usageMetrics">List of usage metrics for the
 /// region.</param>
 public RegionHealth(string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string location = default(string), AlertSummary alertSummary = default(AlertSummary), IList <UsageMetrics> usageMetrics = default(IList <UsageMetrics>))
     : base(id, name, type, tags, location)
 {
     AlertSummary = alertSummary;
     UsageMetrics = usageMetrics;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the BaseHealth class.
 /// </summary>
 /// <param name="alertSummary">Alert summary.</param>
 /// <param name="healthState">Health state.</param>
 /// <param name="namespaceProperty">Namespace of the health
 /// resource.</param>
 /// <param name="registrationId">Registration ID.</param>
 /// <param name="routePrefix">Route prefix.</param>
 public BaseHealth(AlertSummary alertSummary = default(AlertSummary), string healthState = default(string), string namespaceProperty = default(string), string registrationId = default(string), string routePrefix = default(string))
 {
     AlertSummary      = alertSummary;
     HealthState       = healthState;
     NamespaceProperty = namespaceProperty;
     RegistrationId    = registrationId;
     RoutePrefix       = routePrefix;
     CustomInit();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the ServiceHealth class.
 /// </summary>
 /// <param name="id">Fully qualified resource Id for the
 /// resource</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="location">The Azure Region where the resource
 /// lives</param>
 /// <param name="alertSummary">Alert summary.</param>
 /// <param name="healthState">Health state.</param>
 /// <param name="namespaceProperty">Namespace of the health
 /// resource.</param>
 /// <param name="registrationId">Registration ID.</param>
 /// <param name="routePrefix">Route prefix.</param>
 /// <param name="displayName">Name of the service.</param>
 /// <param name="serviceLocation">Location of the service.</param>
 /// <param name="infraURI">The route prefix to the service.</param>
 public ServiceHealth(string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string location = default(string), AlertSummary alertSummary = default(AlertSummary), string healthState = default(string), string namespaceProperty = default(string), string registrationId = default(string), string routePrefix = default(string), string displayName = default(string), string serviceLocation = default(string), string infraURI = default(string))
     : base(id, name, type, tags, location)
 {
     AlertSummary      = alertSummary;
     HealthState       = healthState;
     NamespaceProperty = namespaceProperty;
     RegistrationId    = registrationId;
     RoutePrefix       = routePrefix;
     DisplayName       = displayName;
     ServiceLocation   = serviceLocation;
     InfraURI          = infraURI;
     CustomInit();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the ResourceHealth class.
 /// </summary>
 /// <param name="id">Fully qualified resource Id for the
 /// resource</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="location">The Azure Region where the resource
 /// lives</param>
 /// <param name="alertSummary">Alert summary.</param>
 /// <param name="healthState">Health state.</param>
 /// <param name="namespaceProperty">Namespace of the health
 /// resource.</param>
 /// <param name="registrationId">Registration ID.</param>
 /// <param name="routePrefix">Route prefix.</param>
 /// <param name="resourceLocation">Resource location.</param>
 /// <param name="resourceName">Resource name.</param>
 /// <param name="resourceDisplayName">Resource display name.</param>
 /// <param name="resourceType">Resource type.</param>
 /// <param name="resourceURI">Gets or sets the resource URI.</param>
 /// <param name="rpRegistrationId">Gets or sets the resource provider
 /// registration ID.</param>
 /// <param name="usageMetrics">Usage metrics.</param>
 public ResourceHealth(string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string location = default(string), AlertSummary alertSummary = default(AlertSummary), string healthState = default(string), string namespaceProperty = default(string), string registrationId = default(string), string routePrefix = default(string), string resourceLocation = default(string), string resourceName = default(string), string resourceDisplayName = default(string), string resourceType = default(string), string resourceURI = default(string), string rpRegistrationId = default(string), IList <UsageMetrics> usageMetrics = default(IList <UsageMetrics>))
     : base(id, name, type, tags, location)
 {
     AlertSummary        = alertSummary;
     HealthState         = healthState;
     NamespaceProperty   = namespaceProperty;
     RegistrationId      = registrationId;
     RoutePrefix         = routePrefix;
     ResourceLocation    = resourceLocation;
     ResourceName        = resourceName;
     ResourceDisplayName = resourceDisplayName;
     ResourceType        = resourceType;
     ResourceURI         = resourceURI;
     RpRegistrationId    = rpRegistrationId;
     UsageMetrics        = usageMetrics;
     CustomInit();
 }