|
| 1 | +openapi: 3.0.2 |
| 2 | +info: |
| 3 | + title: aepublish.v1.yaml |
| 4 | + version: '1.0' |
| 5 | + contact: |
| 6 | + |
| 7 | + description: Analytics Engine Observation Publishing Service API |
| 8 | +servers: |
| 9 | + - url: 'https://api.global-services.global.alertlogic.com' |
| 10 | + description: production |
| 11 | + x-alertlogic-session-endpoint: true |
| 12 | + - url: 'https://api.global-integration.product.dev.alertlogic.com' |
| 13 | + description: integration |
| 14 | + x-alertlogic-session-endpoint: true |
| 15 | +paths: |
| 16 | + /aepublish/v1/{account_id}/observation: |
| 17 | + post: |
| 18 | + summary: Publish Observations |
| 19 | + operationId: publish_observations |
| 20 | + responses: |
| 21 | + '200': |
| 22 | + description: OK |
| 23 | + content: |
| 24 | + application/json: |
| 25 | + schema: |
| 26 | + type: object |
| 27 | + properties: |
| 28 | + observations: |
| 29 | + type: array |
| 30 | + items: |
| 31 | + type: object |
| 32 | + properties: |
| 33 | + outcome: |
| 34 | + type: string |
| 35 | + enum: |
| 36 | + - success |
| 37 | + - retry |
| 38 | + - error |
| 39 | + - suppressed |
| 40 | + - throttled |
| 41 | + - duplicate |
| 42 | + ingest_id: |
| 43 | + type: string |
| 44 | + delay: |
| 45 | + type: integer |
| 46 | + chkpt: |
| 47 | + type: string |
| 48 | + required: |
| 49 | + - outcome |
| 50 | + tags: |
| 51 | + - Observations Resources |
| 52 | + description: > |
| 53 | + Publishes observations to Ingest subsystem, and returns the publication outcome of |
| 54 | + each observation plus potentially various stats in an object. |
| 55 | +
|
| 56 | + This API expects the body to contain a JSON list of observations. |
| 57 | +
|
| 58 | + Outcomes are objects containing at least an `outcome` key. |
| 59 | +
|
| 60 | + Its value may be one of: |
| 61 | +
|
| 62 | + * `success`: |
| 63 | + The publication succeeded. |
| 64 | + The object also contain an `ingest_id` property with the observation ingest ID. |
| 65 | + The object may contain an additional `chkpt` property containing the checkpoint |
| 66 | + marker given to Ingest. |
| 67 | +
|
| 68 | + * `retry`: |
| 69 | + The publication of the observation may be retried. |
| 70 | + The object may contain an additional `delay` property with the recommended retry |
| 71 | + interval in second as an integer value. |
| 72 | +
|
| 73 | + * `error`: |
| 74 | + The publication of the observation failed due to a caller error. |
| 75 | + The object may contain an additional `details` property. |
| 76 | + The publication should not be retried. |
| 77 | +
|
| 78 | + * `suppressed`: |
| 79 | + The publication of the observation was suppressed as a similar observation has |
| 80 | + been published in recent past. See the observation definition's `unique` value. |
| 81 | + The object may contain an additional `ingest_id` property with the ingest ID of |
| 82 | + the previously published observation. |
| 83 | + The publication should not be retried. |
| 84 | +
|
| 85 | + * `throttled`: |
| 86 | + The publication of the observation was not sent as the allowed observation quota |
| 87 | + with that definition is reached. |
| 88 | + See the observation definition's `throttle_count` and `throttle_period` values. |
| 89 | + The publication should not be retried. |
| 90 | +
|
| 91 | + * `duplicate`: |
| 92 | + The observation's progress marker has already been processed. |
| 93 | + The object may contain an additional `ingest_id` property with the ingest ID |
| 94 | + issued the first time the progress marker was submitted. |
| 95 | + The publication should not be retried. |
| 96 | + security: |
| 97 | + - X-AIMS-Auth-Token: [] |
| 98 | + requestBody: |
| 99 | + content: |
| 100 | + application/json: |
| 101 | + schema: |
| 102 | + type: array |
| 103 | + items: |
| 104 | + type: object |
| 105 | + parameters: |
| 106 | + - name: account_id |
| 107 | + description: AIMS Account ID |
| 108 | + in: path |
| 109 | + required: true |
| 110 | + schema: |
| 111 | + type: string |
| 112 | +components: |
| 113 | + securitySchemes: |
| 114 | + X-AIMS-Auth-Token: |
| 115 | + name: X-AIMS-Auth-Token |
| 116 | + type: apiKey |
| 117 | + in: header |
| 118 | + description: AIMS Authentication Token |
| 119 | +tags: |
| 120 | + - name: Observations Resources |
| 121 | + description: Analytics Engine Observations Resources |
0 commit comments