openapi: 3.2.0 info: title: Optum Prometheus API version: 1.0.0 description: 'Operations tagged Prometheus across 2 of this provider''s published API definitions: optum-prometheus-analytics-api-job-submission-openapi.yml, optum-prometheus-analytics-checkjob-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://sandbox-apigw.optum.com/ tags: - name: Prometheus paths: /prometheus/jobsubmission/v1: post: summary: Triggers a Prometheus job initialization and returns the JobId for users' reference. requestBody: description: Sends the control file name and triggers a job initialization content: '*/*': schema: $ref: '#/components/schemas/JobSummission_Request' required: true responses: '200': description: Successful Job Initialization response content: '*/*': schema: $ref: '#/components/schemas/JobSubmission_Response_Success' '400': description: The request was not properly formatted content: '*/*': schema: $ref: '#/components/schemas/JobSubmission_Response_Failure_400' '500': description: The request has encountered an Internal Error content: '*/*': schema: $ref: '#/components/schemas/JobSubmission_Response_Failure_500' x-codegen-request-body-name: JobSubmission_Request tags: - Prometheus servers: - url: https://sandbox-apigw.optum.com/ /prometheus/checkjob/v1: post: summary: Checks and returns the current status of a job and additional details such as job process completion date and data purging date parameters: - name: Authorization in: header description: 'null' required: true schema: {} requestBody: description: Checks and returns the current status of a job and additional details such as job process completion date and data purging date. content: '*/*': schema: $ref: '#/components/schemas/CheckJob_Request' required: true responses: '200': description: Successful CheckJob Response content: '*/*': schema: $ref: '#/components/schemas/CheckJob_Response_Success' '400': description: The request was not properly formatted content: '*/*': schema: $ref: '#/components/schemas/CheckJob_Response_Failure_400' '500': description: The request has encountered an Internal Error content: '*/*': schema: $ref: '#/components/schemas/CheckJob_Response_Failure_500' x-codegen-request-body-name: CheckJob_Request tags: - Prometheus servers: - url: https://sandbox-apigw.optum.com/ components: schemas: JobSubmission_Response_Failure_500: type: object properties: error: type: string description: Short description of the error encountered example: Internal error occurred error_description: type: string description: Long description of the error that further explains why the request was unsuccessful example: Internal error occurred. Support has been notified. JobSubmission_Response_Failure_400: type: object properties: error: type: string description: Short description of the error encountered example: Invalid Request error_description: type: string description: Long description of the error that further explains why the request was unsuccessful example: The request was not properly formatted. JobSubmission_Response_Success: type: object properties: JobId: type: string description: Field that provides the Job identifier for this initialized job example: '729' BatchName: type: string description: Field that returns the name of the batch defined in the configuration file sent example: HQXclaims0421 Status: type: string description: Field that provides the status of the initialized job example: Processing Message: type: string description: Field that provides successful or non-error messages example: Job has queued for processing. JobSummission_Request: type: object properties: controlFileName: type: string example: control.tsv.gz CheckJob_Request: type: object properties: JobId: type: string example: '729' CheckJob_Response_Success: type: object properties: JobId: type: string description: Field that provides the unique id used to identyify this job example: '729' BatchName: type: string description: Field that returns the name of the batch for this job example: HQXclaims0421 APIStatus: type: string description: Field that provides the current status of this job. This field may return "Processing", "Finished" or "Failed" example: Finished ControlFileName: type: string description: Field that provides the inbound control file name for this job example: controlfile.tsv.gz StartDate: type: string description: Field that provides the actual processing date and time for this job example: 03/23/2021 13:34:54 EndDate: type: string description: Field that provides the actual processing end/ completion date for this job example: 03/23/2021 142823 DateToPurge: type: string description: Field that provides the anticipated date of purge for this job example: 03/27/2021 133454 PurgeDate: type: string description: Field that provides the actual purging date for this job example: 04/27/2021 135567 Message: type: string description: Field that provides successful or non-error messages example: 'Current batch status: Finished' CheckJob_Response_Failure_500: type: object properties: error: type: string description: Short description of the error encountered example: Internal error occurred error_description: type: string description: Long description of the error that further explains why the request was unsuccessful example: Internal error occurred. Support has been notified. CheckJob_Response_Failure_400: type: object properties: error: type: string description: Short description of the error encountered example: Invalid Request error_description: type: string description: Long description of the error that further explains why the request was unsuccessful example: The request was not properly formatted. x-refined-from: - optum-prometheus-analytics-api-job-submission-openapi.yml - optum-prometheus-analytics-checkjob-openapi.yml x-readme: explorer-enabled: true proxy-enabled: true