Added status controller
Change-Id: I6ee63a6d9a0cb5b0003a8f2b907abdcc14374faf
Issue-ID: NONRTRIC-173
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
diff --git a/enrichment-coordinator-service/docs/api.yaml b/enrichment-coordinator-service/docs/api.yaml
index f3fa767..48a65dd 100644
--- a/enrichment-coordinator-service/docs/api.yaml
+++ b/enrichment-coordinator-service/docs/api.yaml
@@ -317,6 +317,26 @@
required: true
tags:
- Enrichment Data Producer API
+ /status:
+ get:
+ summary: Returns status and statistics of this service
+ deprecated: false
+ produces:
+ - application/json
+ operationId: getStatusUsingGET
+ responses:
+ '200':
+ schema:
+ $ref: '#/definitions/status_info'
+ description: Service is living
+ '401':
+ description: Unauthorized
+ '403':
+ description: Forbidden
+ '404':
+ description: Not Found
+ tags:
+ - Service status
/producer_simulator/job_created_error:
post:
summary: 'Callback for EI job creation, returns error'
@@ -599,7 +619,7 @@
- Producer Simulator
consumes:
- application/json
-host: 'localhost:43453'
+host: 'localhost:40973'
definitions:
EiType:
description: Information for an EI type
@@ -677,6 +697,25 @@
ei_job_data_schema:
description: Json schema for the job data
type: object
+ status_info:
+ type: object
+ title: status_info
+ properties:
+ no_of_producers:
+ format: int32
+ description: Number of EI producers
+ type: integer
+ no_of_jobs:
+ format: int32
+ description: Number of EI jobs
+ type: integer
+ no_of_types:
+ format: int32
+ description: Number of EI types
+ type: integer
+ status:
+ description: status text
+ type: string
EiJobStatus:
description: Status for an EI Job
type: object
@@ -761,4 +800,6 @@
description: Producer Controller
- name: Producer Simulator
description: Producer Simulator Controller
+ - name: Service status
+ description: Status Controller