/// <summary> /// Initializes a new instance of the EntityHealth class. /// </summary> /// <param name="aggregatedHealthState">The health state of a Service Fabric entity such as Cluster, Node, Application, /// Service, Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'</param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> public EntityHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics)) { this.AggregatedHealthState = aggregatedHealthState; this.HealthEvents = healthEvents; this.UnhealthyEvaluations = unhealthyEvaluations; this.HealthStatistics = healthStatistics; }
/// <summary> /// Initializes a new instance of the NodeHealth class. /// </summary> /// <param name="aggregatedHealthState">The health state of a Service Fabric entity such as Cluster, Node, Application, /// Service, Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'</param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="name">Name of the node whose health information is described by this object.</param> public NodeHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), NodeName name = default(NodeName)) : base( aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics) { this.Name = name; }
/// <summary> /// Initializes a new instance of the ReplicaHealth class. /// </summary> /// <param name="aggregatedHealthState">The HealthState representing the aggregated health state of the entity computed /// by Health Manager. /// The health evaluation of the entity reflects all events reported on the entity and its children (if any). /// The aggregation is done by applying the desired health policy. /// . Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' /// /// The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. /// </param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="partitionId">Id of the partition to which this replica belongs.</param> public ReplicaHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), PartitionId partitionId = default(PartitionId)) : base( aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics) { this.PartitionId = partitionId; }
/// <summary> /// Initializes a new instance of the ClusterHealth class. /// </summary> /// <param name="aggregatedHealthState">The health state of a Service Fabric entity such as Cluster, Node, Application, /// Service, Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'</param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="nodeHealthStates">Cluster node health states as found in the health store.</param> /// <param name="applicationHealthStates">Cluster application health states as found in the health store.</param> public ClusterHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), IEnumerable <NodeHealthState> nodeHealthStates = default(IEnumerable <NodeHealthState>), IEnumerable <ApplicationHealthState> applicationHealthStates = default(IEnumerable <ApplicationHealthState>)) : base( aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics) { this.NodeHealthStates = nodeHealthStates; this.ApplicationHealthStates = applicationHealthStates; }
/// <summary> /// Initializes a new instance of the StatefulServiceReplicaHealth class. /// </summary> /// <param name="aggregatedHealthState">The health state of a Service Fabric entity such as Cluster, Node, Application, /// Service, Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'</param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="partitionId">Id of the partition to which this replica belongs.</param> /// <param name="replicaId">Id of a stateful service replica. ReplicaId is used by Service Fabric to uniquely identify /// a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a /// replica gets dropped and another replica gets created on the same node for the same partition, it will get a /// different value for the id. Sometimes the id of a stateless service instance is also referred as a replica /// id.</param> public StatefulServiceReplicaHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), PartitionId partitionId = default(PartitionId), ReplicaId replicaId = default(ReplicaId)) : base( aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics, partitionId) { this.ReplicaId = replicaId; }
/// <summary> /// Initializes a new instance of the ServiceHealth class. /// </summary> /// <param name="aggregatedHealthState">The health state of a Service Fabric entity such as Cluster, Node, Application, /// Service, Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'</param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="name">The name of the service whose health information is described by this object.</param> /// <param name="partitionHealthStates">The list of partition health states associated with the service.</param> public ServiceHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), ServiceName name = default(ServiceName), IEnumerable <PartitionHealthState> partitionHealthStates = default(IEnumerable <PartitionHealthState>)) : base( aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics) { this.Name = name; this.PartitionHealthStates = partitionHealthStates; }
/// <summary> /// Initializes a new instance of the ReplicaHealth class. /// </summary> /// <param name="serviceKind">The kind of service (Stateless or Stateful).</param> /// <param name="aggregatedHealthState">The HealthState representing the aggregated health state of the entity computed /// by Health Manager. /// The health evaluation of the entity reflects all events reported on the entity and its children (if any). /// The aggregation is done by applying the desired health policy. /// . Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' /// /// The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. /// </param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="partitionId">Id of the partition to which this replica belongs.</param> public ReplicaHealth( ServiceKind?serviceKind, HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), PartitionId partitionId = default(PartitionId)) : base( aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics) { serviceKind.ThrowIfNull(nameof(serviceKind)); this.ServiceKind = serviceKind; this.PartitionId = partitionId; }
/// <summary> /// Initializes a new instance of the StatelessServiceInstanceHealth class. /// </summary> /// <param name="aggregatedHealthState">The HealthState representing the aggregated health state of the entity computed /// by Health Manager. /// The health evaluation of the entity reflects all events reported on the entity and its children (if any). /// The aggregation is done by applying the desired health policy. /// . Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' /// /// The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. /// </param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="partitionId">Id of the partition to which this replica belongs.</param> /// <param name="instanceId">Id of a stateless service instance. InstanceId is used by Service Fabric to uniquely /// identify an instance of a partition of a stateless service. It is unique within a partition and does not change for /// the lifetime of the instance. If the instance has failed over on the same or different node, it will get a /// different value for the InstanceId.</param> public StatelessServiceInstanceHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), PartitionId partitionId = default(PartitionId), ReplicaId instanceId = default(ReplicaId)) : base( Common.ServiceKind.Stateless, aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics, partitionId) { this.InstanceId = instanceId; }
/// <summary> /// Initializes a new instance of the DeployedApplicationHealth class. /// </summary> /// <param name="aggregatedHealthState">The health state of a Service Fabric entity such as Cluster, Node, Application, /// Service, Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'</param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="name">Name of the application deployed on the node whose health information is described by this /// object.</param> /// <param name="nodeName">Name of the node where this application is deployed.</param> /// <param name="deployedServicePackageHealthStates">Deployed service package health states for the current deployed /// application as found in the health store.</param> public DeployedApplicationHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), ApplicationName name = default(ApplicationName), NodeName nodeName = default(NodeName), IEnumerable <DeployedServicePackageHealthState> deployedServicePackageHealthStates = default(IEnumerable <DeployedServicePackageHealthState>)) : base( aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics) { this.Name = name; this.NodeName = nodeName; this.DeployedServicePackageHealthStates = deployedServicePackageHealthStates; }
/// <summary> /// Initializes a new instance of the DeployedServicePackageHealth class. /// </summary> /// <param name="aggregatedHealthState">The HealthState representing the aggregated health state of the entity computed /// by Health Manager. /// The health evaluation of the entity reflects all events reported on the entity and its children (if any). /// The aggregation is done by applying the desired health policy. /// . Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' /// /// The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. /// </param> /// <param name="healthEvents">The list of health events reported on the entity.</param> /// <param name="unhealthyEvaluations">The unhealthy evaluations that show why the current aggregated health state was /// returned by Health Manager.</param> /// <param name="healthStatistics">Shows the health statistics for all children types of the queried entity.</param> /// <param name="applicationName">The name of the application, including the 'fabric:' URI scheme.</param> /// <param name="serviceManifestName">Name of the service manifest.</param> /// <param name="nodeName">Name of the node where this service package is deployed.</param> public DeployedServicePackageHealth( HealthState?aggregatedHealthState = default(HealthState?), IEnumerable <HealthEvent> healthEvents = default(IEnumerable <HealthEvent>), IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations = default(IEnumerable <HealthEvaluationWrapper>), HealthStatistics healthStatistics = default(HealthStatistics), ApplicationName applicationName = default(ApplicationName), string serviceManifestName = default(string), NodeName nodeName = default(NodeName)) : base( aggregatedHealthState, healthEvents, unhealthyEvaluations, healthStatistics) { this.ApplicationName = applicationName; this.ServiceManifestName = serviceManifestName; this.NodeName = nodeName; }