ServiceProperties Class

Describes properties of a service resource.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
ServiceProperties

Constructor

ServiceProperties(*, description: Optional[str] = None, replica_count: Optional[int] = None, execution_policy=None, auto_scaling_policies=None, identity_refs=None, dns_name: Optional[str] = None, **kwargs)

Parameters

description
str
Required

User readable description of the service.

replica_count
int
Required

The number of replicas of the service to create. Defaults to 1 if not specified.

execution_policy
ExecutionPolicy
Required

The execution policy of the service

auto_scaling_policies
list[AutoScalingPolicy]
Required

Auto scaling policies

identity_refs
list[ServiceIdentity]
Required

The service identity list.

dns_name
str
Required

Dns name of the service.

Variables

status
str or ResourceStatus

Status of the service. Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'

status_details
str

Gives additional information about the current status of the service.

health_state
str or HealthState

Describes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'

unhealthy_evaluation
str

When the service's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.