Skip to content

Commit

Permalink
prepare 3.8.0 release (#67)
Browse files Browse the repository at this point in the history
* [ch90498] Adding new REST funcationality for unbounded segments

* Move unbounded segment target list wrapper to its own object

* [ch90412] add relay auto config crud endpoints to openapi (#155)

* remove unnecessary files

* fix typo, indicate required fields on definition, remove 500 response

* missed a few 500s

* fix body name of relay post request

* fix typo in token path

* remove periods from descriptions, make configs plural where necessary

* [ch92014] add mobile key and SDK key reset endpoints (#156)

* add mobile key and SDK key reset endpoints

* fix formatting

* fix typo

* fix single quotes

* Indicate expiry param is deprecated for mobile key reset openapi spec (#158)

* edit mobile key reset endpoint and expiry param descriptions to indicate deprecation

* remove mention of mobile key in SDK key expiry param, rename SDK key expiry param

* Imiller/ch65698/update openapi with goaltender api endpoints (#159)

* add integration subscriptions to definitions

* clean up definitions

* add more parameters

* add integrations endpoints

* fix invalid definition

* remove slack url and datadog api key

* add paths

* fix some paths

* update description for config post field

* change from subscription to integrationSubscription

* add missing integrations tag to post

* remove apiKey from patch

* remove byId from getIntegrationSubscription

* use generic patch request param

* update summary

* update 200 responses for post and patch

Co-authored-by: Matt Wagner <[email protected]>
Co-authored-by: Henry Jacobs <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
  • Loading branch information
4 people authored Oct 28, 2020
1 parent 49e869f commit a49a894
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 0 deletions.
91 changes: 91 additions & 0 deletions spec/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1525,3 +1525,94 @@ RelayProxyConfig:
- displayKey
- creationDate
- lastModified
HierarchicalLinks:
type: object
properties:
"parent":
$ref: "#/definitions/Link"
"self":
$ref: "#/definitions/Link"
IntegrationSubscription:
type: object
properties:
_links:
$ref: "#/definitions/HierarchicalLinks"
_id:
$ref: "#/definitions/Id"
kind:
type: string
description: The type of integration associated with this configuration.
example: "datadog"
name:
type: string
description: The user-defined name associated with this configuration.
example: "V2"
config:
type: object
description: A key-value mapping of configuration fields.
example:
{
"apiKey": "582**************************116",
"hostURL": "https://api.datadoghq.com",
}
statements:
type: array
items:
$ref: "#/definitions/Statement"
on:
type: boolean
description: Whether or not the integration is currently active.
example: true
tags:
type: array
items:
type: string
description: An array of tags for this integration configuration.
_status:
type: object
properties:
successCount:
type: integer
example: 6
lastSuccess:
type: integer
format: int64
description: A unix epoch time in milliseconds specifying the last time this integration was successfully used.
example: 1443652232590
errorCount:
type: integer
example: 2
Integration:
type: object
properties:
_links:
type: object
properties:
"self":
$ref: "#/definitions/Link"
items:
type: array
items:
$ref: "#/definitions/IntegrationSubscription"
Integrations:
type: object
properties:
_links:
type: object
description: A mapping of integration types to their respective API endpoints.
example:
{
"appdynamics": {
"href":"/api/v2/integrations/appdynamics",
"type":"application/json"
},
"splunk": {
"href":"/api/v2/integrations/splunk",
"type":"application/json"
}
}
items:
type: array
items:
type: object
$ref: "#/definitions/IntegrationSubscription"
45 changes: 45 additions & 0 deletions spec/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -646,3 +646,48 @@ RelayProxyConfigsExpiry:
type: integer
format: int64
description: An expiration time for the old relay proxy configuration key, expressed as a Unix epoch time in milliseconds. By default, the relay proxy configuration will expire immediately
IntegrationKey:
name: integrationKey
in: path
required: true
description: The key used to specify the integration kind.
type: string
IntegrationId:
name: integrationId
in: path
required: true
description: The integration ID.
type: string
IntegrationPostRequest:
name: subscriptionBody
in: body
required: true
description: Create a new integration subscription.
schema:
type: object
properties:
name:
type: string
description: A human-readable name for your subscription configuration.
example: Example Datadog Integration
statements:
type: array
items:
$ref: "#/definitions/Statement"
config:
type: object
description: Integration-specific configuration fields.
example: { "apiKey": "582**************************116", "hostURL": "https://api.datadoghq.com" }
on:
type: boolean
example: true
description: Whether the integration subscription is active or not.
tags:
type: array
items:
type: string
example: []
description: Tags for the integration subscription.
required:
- name
- config
6 changes: 6 additions & 0 deletions spec/paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,9 @@
$ref: ./paths/relay.yaml#/Reset
/:
$ref: ./paths/root.yaml#/Root
/integrations:
$ref: ./paths/integrations.yaml#/IntegrationsRoot
/integrations/{integrationKey}:
$ref: ./paths/integrations.yaml#/Integrations
/integrations/{integrationKey}/{integrationId}:
$ref: ./paths/integrations.yaml#/Integration
102 changes: 102 additions & 0 deletions spec/paths/integrations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
IntegrationsRoot:
get:
summary: Get a list of all configured audit log event integrations associated with this account.
operationId: getIntegrations
responses:
'200':
description: Integrations response.
schema:
$ref: '#/definitions/Integrations'
'403':
$ref: '#/responses/BetaApi403'
tags:
- Integrations
Integrations:
get:
summary: Get a list of all configured integrations of a given kind.
operationId: getIntegrationSubscriptions
parameters:
- $ref: '#/parameters/IntegrationKey'
responses:
'200':
description: Integrations response.
schema:
$ref: '#/definitions/Integration'
'403':
$ref: '#/responses/BetaApi403'
'404':
$ref: '#/responses/Standard404'
tags:
- Integrations
post:
summary: Create a new integration subscription of a given kind.
operationId: postIntegrationSubscription
parameters:
- $ref: '#/parameters/IntegrationKey'
- $ref: '#/parameters/IntegrationPostRequest'
responses:
'201':
description: Integrations response.
schema:
$ref: '#/definitions/IntegrationSubscription'
'400':
$ref: '#/responses/Standard400'
'401':
$ref: '#/responses/Standard401'
'409':
$ref: '#/responses/Standard409'
tags:
- Integrations
Integration:
get:
summary: Get a single integration subscription by ID.
operationId: getIntegrationSubscription
parameters:
- $ref: '#/parameters/IntegrationKey'
- $ref: '#/parameters/IntegrationId'
responses:
'200':
description: Integrations response.
schema:
$ref: '#/definitions/IntegrationSubscription'
'403':
$ref: '#/responses/BetaApi403'
'404':
$ref: '#/responses/Standard404'
tags:
- Integrations
patch:
summary: Modify an integration subscription by ID.
operationId: patchIntegrationSubscription
parameters:
- $ref: '#/parameters/IntegrationKey'
- $ref: '#/parameters/IntegrationId'
- $ref: '#/parameters/PatchRequest'
responses:
'200':
description: Integrations response.
schema:
$ref: '#/definitions/IntegrationSubscription'
'400':
$ref: '#/responses/Standard400'
'401':
$ref: '#/responses/Standard401'
'404':
$ref: '#/responses/Standard404'
tags:
- Integrations
delete:
summary: Delete an integration subscription by ID.
operationId: deleteIntegrationSubscription
parameters:
- $ref: '#/parameters/IntegrationKey'
- $ref: '#/parameters/IntegrationId'
responses:
'204':
$ref: '#/responses/Standard204'
'401':
$ref: '#/responses/Standard401'
'404':
$ref: '#/responses/Standard404'
tags:
- Integrations

0 comments on commit a49a894

Please sign in to comment.