class Azure::ServiceFabric::V6_5_0_36::Models::PartitionHealthStateFilter

Defines matching criteria to determine whether a partition should be included as a child of a service in the cluster health chunk. The partitions are only returned if the parent entities match a filter specified in the cluster health chunk query description. The parent service and application must be included in the cluster health chunk. One filter can match zero, one or multiple partitions, depending on its properties.

Attributes

health_state_filter[RW]

@return [Integer] The filter for the health state of the partitions. It allows selecting partitions if they match the desired health states. The possible values are integer value of one of the following health states. Only partitions that match the filter are returned. All partitions are used to evaluate the cluster aggregated health state. If not specified, default value is None, unless the partition ID is specified. If the filter has default value and partition ID is specified, the matching partition is returned. The state values are flag-based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. For example, if the provided value is 6, it matches partitions with HealthState value of OK (2) and Warning (4).

  • Default - Default value. Matches any HealthState. The value is zero.

  • None - Filter that doesn't match any HealthState value. Used in order

to return no results on a given collection of states. The value is 1.

  • Ok - Filter that matches input with HealthState value Ok. The value

is 2.

  • Warning - Filter that matches input with HealthState value Warning.

The value is 4.

  • Error - Filter that matches input with HealthState value Error. The

value is 8.

  • All - Filter that matches input with any HealthState value. The value

is 65535. Default value: 0 .

partition_id_filter[RW]

@return ID of the partition that matches the filter. The filter is applied only to the specified partition, if it exists. If the partition doesn't exist, no partition is returned in the cluster health chunk based on this filter. If the partition exists, it is included in the cluster health chunk if it respects the other filter properties. If not specified, all partitions that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter.

replica_filters[RW]

@return [Array<ReplicaHealthStateFilter>] Defines a list of filters that specify which replicas to be included in the returned cluster health chunk as children of the parent partition. The replicas are returned only if the parent partition matches a filter. If the list is empty, no replicas are returned. All the replicas are used to evaluate the parent partition aggregated health state, regardless of the input filters. The partition filter may specify multiple replica filters. For example, it can specify a filter to return all replicas with health state Error and another filter to always include a replica identified by its replica id.

Public Class Methods

mapper() click to toggle source

Mapper for PartitionHealthStateFilter class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/6.5.0.36/generated/azure_service_fabric/models/partition_health_state_filter.rb, line 76
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PartitionHealthStateFilter',
    type: {
      name: 'Composite',
      class_name: 'PartitionHealthStateFilter',
      model_properties: {
        partition_id_filter: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionIdFilter',
          type: {
            name: 'String'
          }
        },
        health_state_filter: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HealthStateFilter',
          default_value: 0,
          type: {
            name: 'Number'
          }
        },
        replica_filters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicaFilters',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ReplicaHealthStateFilterElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ReplicaHealthStateFilter'
                }
            }
          }
        }
      }
    }
  }
end