Skip to main content

Health

A Health object represents the health of Sync resources. It contains relevant information about the current connection of Sync to the resource webpages based on the last 100 processed vehicles per resource.

The data is organized by state and resource type. Each resource type of a state has a different health status based on the resources that belong to that state and resource type.

Methods

The API supports the following methods for Health objects:

HTTP requestDescription
GET resource healthReturns a collection with the current resources health per state.

Object representation

Health

{
"state": State ,
"resourceTypeHealth": ResourceTypeHealth[]
}

The following table defines the properties that appear in this object:

PropertiesTypeDescription
stateStateIndicates the state.
resourceTypeHealthResourceTypeHealthA collection representing the health of the different available resource types in Sync.

ResourceTypeHealth

{
"resourceType": ResourceType,
"avrgTimeSpan"?: number,
"successPercentage"?: number,
"dateTime"?: DateTime,
"resourceInfo"?: ResourceInfo[]
}

The following table defines the properties that appear in this object:

PropertiesTypeDescription
resourceTypeResourceTypeIndicates the resource type.
avrgTimeSpannumberThe current average time span for processing vehicles in the resource type.
successPercentagenumberThe current success percentage of processing vehicles in the resource type.
dateTimeDateTimeThe date and time of the last vehicle processed in the resource type.
ResourceInfoResourceInfoA collection representing the health of the different available resources in Sync.

ResourceInfo

{
"resource": Resource,
"avrgTimeSpan": number,
"successPercentage": number,
"dateTime"?: Date,
"portal": string
}

The following table defines the properties that appear in this object:

PropertiesTypeDescription
resourceResourceIndicates the resource.
avrgTimeSpannumberThe current average time span for processing vehicles in the resource.
successPercentagenumberThe current success percentage of processing vehicles in the resource.
dateTimeDateThe date and time of the last vehicle processed in the resource.
portalstringThe resource portal where vehicles are processed.