definitions: model.EventModel: properties: etime: type: integer id_client: type: string name: type: string type: object model.EventSearchRequest: properties: from: type: integer id_client: type: string to: type: integer type: object model.MetricModel: properties: id_client: type: string mtime: type: integer name: type: string value: type: string type: object model.MetricSearchRequest: properties: from: type: integer id_client: type: string name: type: string to: type: integer type: object info: contact: {} paths: /event: post: consumes: - application/json description: store events parameters: - description: Event body data in: body name: data required: true schema: $ref: '#/definitions/model.EventModel' produces: - application/json responses: "202": description: Accepted schema: type: string summary: write event to db tags: - Events /event/get: post: consumes: - application/json description: retrieve events in the specified time window parameters: - description: Event query filters in: body name: data required: true schema: $ref: '#/definitions/model.EventSearchRequest' - description: Event response in: body name: data required: true schema: items: $ref: '#/definitions/model.EventModel' type: array produces: - application/json responses: "200": description: OK schema: type: string summary: Get the events From ... and To when present tags: - Events /metric: post: consumes: - application/json description: store metric parameters: - description: Metric request body in: body name: data required: true schema: $ref: '#/definitions/model.MetricModel' produces: - application/json responses: "202": description: Accepted schema: type: string summary: write metric to db tags: - Metrics /metric/get: post: consumes: - application/json description: retrieve metric in the specified time window parameters: - description: Metric query filters in: body name: data required: true schema: $ref: '#/definitions/model.MetricSearchRequest' - description: Metric response in: body name: data required: true schema: items: $ref: '#/definitions/model.MetricModel' type: array produces: - application/json responses: "200": description: OK schema: type: string summary: Get the metrics From ... and To when present tags: - Metrics swagger: "2.0"