Download OpenAPI specification:
CRUD Operation on repositories data
Default sort on status
(NEW,IN_PROGRESS,DONE), criticality
(HIGH,MEDIUM,LOW) and lastModificationDate
(reversed). It's possible to override it by sorting on other attributes.
If order is no provided when sort, the default is asc.
It's possible to filter on one or more criticalities, statuses, categories, sources, equipment entities or equipment families.
It's possible to search on event id, event name or equipment name.
page | integer Example: page=1 Page number requested, default to 1. Trigger an error if not specified or if 0. |
pageSize | integer Example: pageSize=20 Page size, default to 20. Return an empty list if not specified. |
creationDate | string Example: creationDate=2024-01-20T00:00:00Z The date must be set to midnight. The filter will return all events created on that day. |
closeDate | string Example: closeDate=2024-01-20T10:09:00Z Filter on closed events where closeDate is greater or equal than |
criticality | Array of strings (Criticality) Items Enum: "LOW" "MEDIUM" "HIGH" Example: criticality=LOW |
status | Array of strings (Status) Items Enum: "NEW" "IN_PROGRESS" "DONE" Example: status=NEW |
category | Array of strings Example: category=LIMIT Event category code. It must be known to the system |
entity | Array of strings Example: entity=CHALONS-COMMUN The equipment entity name. It must be known to the system. |
family | Array of strings Example: family=EP_ARMOIRE&family=VP_CAM The equipment family code. It must be known to the system. |
sort | string (EventSort) Enum: "creationDate" "lastModificationDate" "status" "procedureProgress" "criticality" "name" "category" "id" "source" |
order | string (SortOrder) Default: "ASC" Enum: "ASC" "DESC" |
name | string Example: name=00001 search on event name |
id | string Example: id=00001 search on event id |
equipment | string Example: equipment=c-A search on equipment name of event |
[- {
- "id": 1,
- "name": "Défaillance lampe",
- "domain": "EP",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0
}
]
Events may come from the Hypervisor (internal event), or from an external source (external event).
Internal events must have a creator
, and it's source is automatically 'Hyperviseur'.
External events must have an externalSourceRef
.
by default, InternalEventWriteDto is deserialized. If creator and externalSourceRef are presents, then the source is ignored,
and if none of these properties are present, then an error is raised, saying that the creator is missing.
It's possible to set an externalId
for external events, in order to update event if already exists instead of save it (used for nodered flows).
MANIFESTATION
category, startDate
and endDate
properties are necessary. endDate
can't be before startDate
.
ANOMALY
category requires sub categories.
id required | integer |
name required | string |
address | string |
description required | string |
domain | string |
criticality required | string (Criticality) Enum: "LOW" "MEDIUM" "HIGH" |
category required | string Value match one of category code |
subCategory | string required only if |
equipmentId | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
endDate | string <date-time> (DateTime) |
startDate | string <date-time> (DateTime) |
parent | integer Parent event |
creator | string Event creator, required if event is created from Hypervisor |
externalSourceRef | string Event source, required if event is external |
externalId | string If event is external, it's possible to provide an external id |
{- "id": 2,
- "name": "Dépôt sauvage",
- "address": "3 rue de Châlons",
- "description": "Il y a un dépôt sauvage ici",
- "domain": "EP",
- "criticality": "LOW",
- "category": "ANOMALY",
- "subCategory": "WILD_STORAGE",
- "equipmentId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "parent": 3,
- "creator": "toto",
- "externalSourceRef": "Citylinx",
- "externalId": "string"
}
{- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
{- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
It's possible to update any events, but events with an external source have non-modifiable properties:
category
, subCategory
, name
and externalId
.
id required | integer Example: 1 |
id required | integer |
name required | string |
address | string |
description required | string |
domain | string |
criticality required | string (Criticality) Enum: "LOW" "MEDIUM" "HIGH" |
category required | string Value match one of category code |
subCategory | string required only if |
equipmentId | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
endDate | string <date-time> (DateTime) |
startDate | string <date-time> (DateTime) |
parent | integer Parent event |
creator | string Event creator, required if event is created from Hypervisor |
externalSourceRef | string Event source, required if event is external |
externalId | string If event is external, it's possible to provide an external id |
{- "id": 2,
- "name": "Dépôt sauvage",
- "address": "3 rue de Châlons",
- "description": "Il y a un dépôt sauvage ici",
- "domain": "EP",
- "criticality": "LOW",
- "category": "ANOMALY",
- "subCategory": "WILD_STORAGE",
- "equipmentId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "parent": 3,
- "creator": "toto",
- "externalSourceRef": "Citylinx",
- "externalId": "string"
}
source required | string Example: Citylinx |
id required | string Example: 21ad9 |
{- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
It's possible to update any events, but events with an external source have non-modifiable properties:
category
, subCategory
, name
and externalId
.
id required | integer Example: 1 |
id required | integer |
name required | string |
address | string |
description required | string |
domain | string |
criticality required | string (Criticality) Enum: "LOW" "MEDIUM" "HIGH" |
category required | string Value match one of category code |
subCategory | string required only if |
equipmentId | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
endDate | string <date-time> (DateTime) |
startDate | string <date-time> (DateTime) |
parent | integer Parent event |
creator | string Event creator, required if event is created from Hypervisor |
externalSourceRef | string Event source, required if event is external |
externalId | string If event is external, it's possible to provide an external id |
{- "id": 2,
- "name": "Dépôt sauvage",
- "address": "3 rue de Châlons",
- "description": "Il y a un dépôt sauvage ici",
- "domain": "EP",
- "criticality": "LOW",
- "category": "ANOMALY",
- "subCategory": "WILD_STORAGE",
- "equipmentId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "parent": 3,
- "creator": "toto",
- "externalSourceRef": "Citylinx",
- "externalId": "string"
}
Set status to DONE and update closeDate
property.
Close date is not updated if event is already closed.
id required | integer Example: 22 |
id required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
message required | string comment message |
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "message": "Mon commentaire"
}
Comment can be edited by its creator only. It's not possible to add or update a comment on a DONE event.
id required | integer Example: 22 event id |
id required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
message required | string comment message |
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "message": "Mon commentaire"
}
id required | integer Example: 22 event id |
[- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}
]
Returns the last n summary events, sorted by last modification date and status. It is possible to sort these summary events by criticality
limit required | integer Example: limit=1 Limit of summary events by status. Default to 5. |
criticality | string (Criticality) Enum: "LOW" "MEDIUM" "HIGH" Example: criticality=HIGH Filter on the criticality required |
{- "NEW": {
- "counts": 0,
- "events": [
- {
- "id": 1,
- "proocedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "name": "Accident voiture",
- "criticality": "LOW",
- "status": "NEW",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "category": "Manifestation",
- "interventionRequestTitle": "string",
- "interventionRequestCount": 0,
- "startDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z"
}
]
}, - "IN_PROGRESS": {
- "counts": 0,
- "events": [
- {
- "id": 1,
- "proocedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "name": "Accident voiture",
- "criticality": "LOW",
- "status": "NEW",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "category": "Manifestation",
- "interventionRequestTitle": "string",
- "interventionRequestCount": 0,
- "startDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z"
}
]
}, - "DONE": {
- "counts": 0,
- "events": [
- {
- "id": 1,
- "proocedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "name": "Accident voiture",
- "criticality": "LOW",
- "status": "NEW",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "category": "Manifestation",
- "interventionRequestTitle": "string",
- "interventionRequestCount": 0,
- "startDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z"
}
]
}
}
Default sort on useCount
(reversed) and name
. It's possible to override it by sorting on other attributes.
If order is no provided when sort, the default is asc.
It's possible to filter on one or more domains, or search by name, creator or id by using search
filter
page | integer Example: page=1 Page number requested, default to 1. Trigger an error if not specified or if 0. |
pageSize | integer Example: pageSize=20 Page size, default to 20. Return an empty list if not specified. |
search | string Example: search=proc Returns all procedures whose value is contained in the |
domain | Array of strings Example: domain=EP The domain code. It must be known to the system. |
sort | string (ProcedureModelSort) Enum: "id" "useCount" "name" "creator" "creationDate" "lastModificationDate" "domain" |
order | string (SortOrder) Default: "ASC" Enum: "ASC" "DESC" |
[- {
- "id": 3,
- "useCount": 4,
- "name": "Ma procédure",
- "description": "Ma description",
- "domain": "EP",
- "creator": "Jess Mariano",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "actions": [
- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "type": "EMAIL",
- "status": "NEW",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "name": "Rory Gilmore",
- "email": "r.gilmore@chalons.com"
}
]
}
]
Save a procedure model and it's actions. Default actions types are EMAIL
, PHONE
, SMS
, ASKED_SERVICE
and OTHER
.
It's possible to insert custom action types that will not have specific properties.
id required | integer |
name required | string |
description required | string |
domain | string |
creator required | string |
Array of EmailActionWriteDto (object) or PhoneActionWriteDto (object) or OtherActionWriteDto (object) or AskedServiceWriteDto (object) |
{- "id": 2,
- "name": "Ma procédure",
- "description": "Description de ma procédure",
- "domain": "EP",
- "creator": "string",
- "actions": [
- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "type": "EMAIL",
- "status": "NEW",
- "name": "Rory Gilmore",
- "email": "r.gilmore@chalons.com"
}
]
}
{- "id": 2,
- "name": "Ma procédure",
- "description": "Description de ma procédure",
- "domain": "EP",
- "creator": "string",
- "actions": [
- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "type": "EMAIL",
- "status": "NEW",
- "name": "Rory Gilmore",
- "email": "r.gilmore@chalons.com"
}
]
}
id required | integer Example: 29 |
{- "id": 3,
- "useCount": 4,
- "name": "Ma procédure",
- "description": "Ma description",
- "domain": "EP",
- "creator": "Jess Mariano",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "actions": [
- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "type": "EMAIL",
- "status": "NEW",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "name": "Rory Gilmore",
- "email": "r.gilmore@chalons.com"
}
]
}
It's possible to update every properties, even actions order. But creator
must be the same.
id required | integer Example: 3 |
id required | integer |
name required | string |
description required | string |
domain | string |
creator required | string |
Array of EmailActionWriteDto (object) or PhoneActionWriteDto (object) or OtherActionWriteDto (object) or AskedServiceWriteDto (object) |
{- "id": 2,
- "name": "Ma procédure",
- "description": "Description de ma procédure",
- "domain": "EP",
- "creator": "string",
- "actions": [
- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "type": "EMAIL",
- "status": "NEW",
- "name": "Rory Gilmore",
- "email": "r.gilmore@chalons.com"
}
]
}
The procedure model association will generate a new Procedure instance.
This procedure is linked to events whose ids are in request body.
These events will automatically be set to IN_PROGRESS
status.
id required | integer Example: 3 |
events id
[- 1,
- 2,
- 3
]
{- "id": 5,
- "name": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "progress": 0,
- "events": [
- {
- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
], - "actions": [
- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "type": "EMAIL",
- "status": "NEW",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "name": "Rory Gilmore",
- "email": "r.gilmore@chalons.com"
}
]
}
Return procedure detail and its linked events.
id required | integer Example: 45 |
{- "id": 5,
- "name": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "progress": 0,
- "events": [
- {
- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
], - "actions": [
- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "type": "EMAIL",
- "status": "NEW",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "name": "Rory Gilmore",
- "email": "r.gilmore@chalons.com"
}
]
}
id required | integer Example: 3 |
id required | integer |
name required | string |
required | Array of objects (EventWriteDto) |
Array of EmailActionWriteDto (object) or PhoneActionWriteDto (object) or OtherActionWriteDto (object) or AskedServiceWriteDto (object) |
{- "id": 2,
- "name": "Ma procédure",
- "events": [
- {
- "id": 2,
- "name": "Dépôt sauvage",
- "address": "3 rue de Châlons",
- "description": "Il y a un dépôt sauvage ici",
- "domain": "EP",
- "criticality": "LOW",
- "category": "ANOMALY",
- "subCategory": "WILD_STORAGE",
- "equipmentId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "parent": 3,
- "creator": "toto",
- "externalSourceRef": "Citylinx",
- "externalId": "string"
}
], - "actions": [
- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "type": "EMAIL",
- "status": "NEW",
- "name": "Rory Gilmore",
- "email": "r.gilmore@chalons.com"
}
]
}
Set status to DONE. Close date is not updated if event is already closed
id required | integer Example: 50 |
id required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
message required | string comment message |
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "message": "Mon commentaire"
}
Comment can be edited by its creator only. It's not possible to add or update a comment on a DONE procedure.
id required | string Example: 30956c82-073f-4b51-8f79-b447ebe54c76 action id |
id required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
message required | string comment message |
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "message": "Mon commentaire"
}
id required | string Example: 30956c82-073f-4b51-8f79-b447ebe54c76 action id |
[- {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}
]
If one of external id entry exists, update equipment, else create it
id required | object Map of external ids |
code required | string |
name required | string |
family required | string Value must match one of |
domain required | string Value must match one of |
entity required | string Value must match one of |
city required | string Value must match one of |
district | string Value must match one of |
address required | string |
deleted | boolean Default: false if true then the equipment will not be counted in the metrics and will not be returned |
level required | integer Corresponds to the level to determine whether it will have a parent or not. If the value is 1, then it can be referenced in children equipments and will not itself have a parent equipment. |
parent | string The value must be the parent |
property name* additional property | any |
[- {
- "id": {
- "SOURCE1": "id1",
- "SOURCE2": "id2"
}, - "code": "string",
- "name": "A-001",
- "family": "Armoire",
- "domain": "EP",
- "entity": "CHALONS-COMMUN",
- "city": "CHALONS",
- "district": "CENTRE",
- "address": "24 rue de Châlons",
- "deleted": false,
- "level": 0,
- "parent": "string"
}
]
Returns all equipments without deleted
property.
It's possible to filter on entity, or search by equipment name or family name.
page | integer Example: page=1 Page number requested, default to 1. Trigger an error if not specified or if 0. |
pageSize | integer Example: pageSize=20 Page size, default to 20. Return an empty list if not specified. |
entity | Array of strings Example: entity=FAGNIERES-COMMUN must match one of |
search | string Example: search=armo search on equipment code and family name |
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "externalId": {
- "SOURCE1": "id1",
- "SOURCE2": "id2"
}, - "code": "A-001",
- "name": "A-001",
- "family": "EP_ARMOIRE",
- "domain": "EP",
- "entity": "CHALONS-COMMUN",
- "city": "CHALONS",
- "district": "CENTRE",
- "address": "24 rue de Châlons",
- "deleted": false,
- "parent": { },
- "events": [
- {
- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
]
}
id required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... Example: 01ffde9d-30d2-4273-b61f-c6addd8747c8 |
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "externalId": {
- "SOURCE1": "id1",
- "SOURCE2": "id2"
}, - "code": "A-001",
- "name": "A-001",
- "family": "EP_ARMOIRE",
- "domain": "EP",
- "entity": "CHALONS-COMMUN",
- "city": "CHALONS",
- "district": "CENTRE",
- "address": "24 rue de Châlons",
- "deleted": false,
- "parent": { },
- "events": [
- {
- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
]
}
name required | string Example: P-1000 |
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "externalId": {
- "SOURCE1": "id1",
- "SOURCE2": "id2"
}, - "code": "A-001",
- "name": "A-001",
- "family": "EP_ARMOIRE",
- "domain": "EP",
- "entity": "CHALONS-COMMUN",
- "city": "CHALONS",
- "district": "CENTRE",
- "address": "24 rue de Châlons",
- "deleted": false,
- "parent": { },
- "events": [
- {
- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
]
}
source required | string Example: GMAO |
id required | string Example: technical_unique_id |
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "externalId": {
- "SOURCE1": "id1",
- "SOURCE2": "id2"
}, - "code": "A-001",
- "name": "A-001",
- "family": "EP_ARMOIRE",
- "domain": "EP",
- "entity": "CHALONS-COMMUN",
- "city": "CHALONS",
- "district": "CENTRE",
- "address": "24 rue de Châlons",
- "deleted": false,
- "parent": { },
- "events": [
- {
- "id": 1,
- "name": "Défaillance lampe",
- "address": "Av. du Président Roosevelt, 51000 Châlons-en-Champagne",
- "description": "Défaillance au niveau de la lampe",
- "domain": "EP",
- "criticality": "LOW",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "status": "NEW",
- "category": "OUTOFORDER",
- "subCategory": "string",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "externalSourceRef": "Citylinx",
- "procedureId": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "linkedEvents": 0,
- "procedureProgress": 0,
- "lastComment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "creator": "string",
- "message": "Mon commentaire",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "creationDate": "2024-02-20T08:30:00.00Z"
}, - "commentsCount": 0,
- "parent": {
- "id": 3,
- "name": "Manifestation en cours"
}
}
]
}
startDate
and endDate
are required is status
at least ASKED
and
closeDate
is required if status
is DONE
id required | string |
additionalInfo | string |
description required | string |
equipment | string |
creationDate required | string <date-time> (DateTime) |
lastModificationDate required | string <date-time> (DateTime) |
startDate | string <date-time> (DateTime) |
endDate | string <date-time> (DateTime) |
closeDate | string <date-time> (DateTime) |
domain | string |
status required | string (ServiceStatus) Enum: "ASKED" "IN_PROGRESS" "DONE" "CANCELLED" |
category required | string Value match one of |
[- {
- "id": "DI00001938",
- "additionalInfo": "88",
- "description": "Demande d'intervention sur equipement camera N°1",
- "equipment": "CAM1",
- "creationDate": "2024-02-20T08:30:00.00Z",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "domain": "EP",
- "status": "ASKED",
- "category": "CURA"
}
]
{- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "externalId": "string",
- "additionalInfo": "string",
- "description": "string",
- "equipment": {
- "id": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "code": "A-001",
- "family": "EP_ARMOIRE",
- "entity": "CHALONS-COMMUN"
}, - "creationDate": "2024-02-20T08:30:00.00Z",
- "lastModificationDate": "2024-02-20T08:30:00.00Z",
- "startDate": "2024-02-20T08:30:00.00Z",
- "endDate": "2024-02-20T08:30:00.00Z",
- "closeDate": "2024-02-20T08:30:00.00Z",
- "domain": "EP",
- "status": "ASKED",
- "category": "CURA"
}
Generate External service and send it to external service application : Coswin.
It returns a service code which will be set in serviceExternalId
property in action.
actionId required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... Example: 01ffde9d-30d2-4273-b61f-c6addd8747c8 |
name required | string |
equipment | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
priority required | string (Priority) Enum: "1-MINEUR" "2-MAJEUR" "3-BLOQUANT" |
description required | string |
domain required | string |
[- {
- "name": "string",
- "equipment": "ebbfbbd1-b8de-467c-8a9b-88443a49f807",
- "priority": "1-MINEUR",
- "description": "string",
- "domain": "EP"
}
]
Returns the number of Armoires, Foyers lumineux and unmanaged equipments linked with
at least one event that has not been closed, the number of services ASKED
for this equipment,
and the number of services IN_PROGRESS
.
Filter on equipments without deleted
property.
entity | Array of strings |
criticality | Array of strings (Criticality) Items Enum: "LOW" "MEDIUM" "HIGH" Example: criticality=LOW |
category | Array of strings |
place | Array of strings Must match city or district value from equipment |
Similar to the endpoint /metrics/equipments-with-events/EP
but the number of events is grouped by category and includes the "MANIFESTATION" category.
Filter on equipments without deleted
property.
{- "nbEquipWithEvent_CF": 0,
- "totalEquipWithEvent_CF": 0,
- "nbServiceTodoWithEquip_CF": 0,
- "nbServiceInProgressWithEquip_CF": 0,
- "nbEquipWithEvent_unmanaged": 0,
- "totalEquipWithEvent_unmanaged": 0,
- "nbServiceTodoWithEquip_unmanaged": 0,
- "nbServiceInProgressWithEquip_unmanaged": 0,
- "manifestation": {
- "nbEquipWithEvent_A": 0,
- "nbEquipWithEvent_FL": 0,
- "nbEquipWithEvent_unmanaged": 0
}, - "outoforder": {
- "nbEquipWithEvent_A": 0,
- "nbEquipWithEvent_FL": 0,
- "nbEquipWithEvent_unmanaged": 0
}, - "anomaly": {
- "nbEquipWithEvent_A": 0,
- "nbEquipWithEvent_FL": 0,
- "nbEquipWithEvent_unmanaged": 0
}, - "limit": {
- "nbEquipWithEvent_A": 0,
- "nbEquipWithEvent_FL": 0,
- "nbEquipWithEvent_unmanaged": 0
}
}
Returns the number of Carrefours and unmanaged equipments linked with
at least one event that has not been closed, the number of services ASKED
for this equipment,
and the number of services IN_PROGRESS
.
Filter on equipments without deleted
property.
entity | Array of strings |
criticality | Array of strings (Criticality) Items Enum: "LOW" "MEDIUM" "HIGH" Example: criticality=LOW |
category | Array of strings |
place | Array of strings Must match city or district value from equipment |
Similar to the endpoint /metrics/equipments-with-events/Slt
but the number of events is grouped by category and includes the "MANIFESTATION" category.
Filter on equipments without deleted
property.
{- "nbEquipWithEvent_CF": 0,
- "totalEquipWithEvent_CF": 0,
- "nbServiceTodoWithEquip_CF": 0,
- "nbServiceInProgressWithEquip_CF": 0,
- "nbEquipWithEvent_unmanaged": 0,
- "totalEquipWithEvent_unmanaged": 0,
- "nbServiceTodoWithEquip_unmanaged": 0,
- "nbServiceInProgressWithEquip_unmanaged": 0,
- "manifestation": {
- "nbEquipWithEvent_A": 0,
- "nbEquipWithEvent_FL": 0,
- "nbEquipWithEvent_unmanaged": 0
}, - "outoforder": {
- "nbEquipWithEvent_A": 0,
- "nbEquipWithEvent_FL": 0,
- "nbEquipWithEvent_unmanaged": 0
}, - "anomaly": {
- "nbEquipWithEvent_A": 0,
- "nbEquipWithEvent_FL": 0,
- "nbEquipWithEvent_unmanaged": 0
}, - "limit": {
- "nbEquipWithEvent_A": 0,
- "nbEquipWithEvent_FL": 0,
- "nbEquipWithEvent_unmanaged": 0
}
}
Returns the number of Cameras linked with at least one event that has not been closed,
the number of services ASKED
for this equipment,
and the number of services IN_PROGRESS
.
Filter on equipments without deleted
property.
entity | Array of strings |
criticality | Array of strings (Criticality) Items Enum: "LOW" "MEDIUM" "HIGH" Example: criticality=LOW |
category | Array of strings |
place | Array of strings Must match city or district value from equipment |
Similar to the endpoint /metrics/equipments-with-events/VP
but the number of events is grouped by category and includes the "MANIFESTATION" category.
Filter on equipments without deleted
property.
{- "nbEquipWithEvent_C": 0,
- "totalEquipWithEvent_C": 0,
- "nbServiceTodoWithEquip_C": 0,
- "nbServiceInProgressWithEquip_C": 0,
- "manifestation": {
- "nbEquipWithEvent_C": 0
}, - "outoforder": {
- "nbEquipWithEvent_C": 0
}, - "anomaly": {
- "nbEquipWithEvent_C": 0
}, - "limit": {
- "nbEquipWithEvent_C": 0
}
}
Returns the number of equipments for EP
domain in a given family grouped by entity.
The number of managed equipments is separated from the number of unmanaged equipments.
Filter on equipments without deleted
property.
family required | string Example: EP_FL |
{- "CHA_managed": 0,
- "CHA_unmanaged": 0,
- "CH_managed": 0,
- "CH_unmanaged": 0,
- "FAGN_managed": 0,
- "FAGN_unmanaged": 0,
- "SMP_managed": 0,
- "SMP_unmanaged": 0
}
It's possible to filter on category, domain, and count events that was created after a specific date. Limit is set to 10 by default but can be changed.
Filter on equipments without deleted
property.
domain | string Example: domain=VP |
category | string Example: category=ANOMALY |
date | string <date-time> (DateTime) Example: date=2024-05-28T08:10:00Z |
limit | integer Default: 10 Example: limit=10 |
entity | Array of strings |
criticality | Array of strings (Criticality) Items Enum: "LOW" "MEDIUM" "HIGH" Example: criticality=LOW |
place | Array of strings Must match city or district value from equipment |
family | Array of strings Must match family from equipment |
[- {
- "code": "string",
- "address": "string",
- "city": "string",
- "count": 0
}
]
Aggregates the number of DONE
services over a given interval and over a number of buckets from a given date.
interval required | string Example: month must be one of |
date | string <date-time> (DateTime) Example: date=2024-05-28T08:10:00Z The timezoned reference date for building the aggregation over the last n intervals |
buckets | integer Example: buckets=12 Number of buckets. Default to |
domain | string |
entity | Array of strings |
family | Array of strings |
place | Array of strings Must match city or district value from equipment |
[- {
- "start": "2024-02-20T08:30:00.00Z",
- "count": 0
}
]
It's possible to filter on event creation date, event status. If creation date is set, then ignore Done events.
If a domain filter is set, count all events linked to a equipment with this domain.
Filter on equipments without deleted
property.
date | string <date-time> (DateTime) Example: date=2024-01-20T00:00:00Z event creation date |
domain | string domain from equipment linked to event |
status | string (Status) Enum: "NEW" "IN_PROGRESS" "DONE" Example: status=NEW event status |
entity | Array of strings |
criticality | Array of strings (Criticality) Items Enum: "LOW" "MEDIUM" "HIGH" Example: criticality=LOW |
place | Array of strings Must match city or district value from equipment |
family | Array of strings Must match family from equipment |
equipment | string Must match equipment name to get anomalies count for this equipment |
{- "UNUSUAL_FLOW": 0,
- "WILD_STORAGE": 0,
- "TRAFFIC_CONGESTION": 0
}
It's possible to filter on equipment domain and set start date to filter on events created from this date.
Filter on equipments without deleted
property.
startDate | string Example: startDate=2024-01-20T00:00:00Z filter on events created from this date |
domain | string domain from equipment linked to event |
[- {
- "entity": "string",
- "subCategory": "string",
- "count": 0
}
]
Aggregates the number of ANOMALY
events over a given interval and over a number of buckets from a given start date.
Results are grouped by subcategories
interval required | string Example: month must be one of |
startDate | integer Example: startDate=2024-05-28T08:10:00Z The timezoned reference date for building the aggregation over the last n intervals |
buckets | integer Example: buckets=12 Number of buckets. Default to |
domain | string |
entity | Array of strings |
criticality | Array of strings (Criticality) Items Enum: "LOW" "MEDIUM" "HIGH" Example: criticality=LOW |
place | Array of strings Must match city or district value from equipment |
family | Array of strings Must match family from equipment |
[- {
- "start": "2024-02-20T08:30:00.00Z",
- "count": 0
}
]