-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Release 197] manual service config api description #22
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Add a manual service configuration. | ||
|
||
**This is an experimental endpoint to workaround service mapping issues.** | ||
|
||
### Mandatory Parameters: | ||
|
||
**tagFilterExpression** A tag filter expression to match calls on which the manual service configuration will be applied. Only call tags are allowed in the expression. | ||
|
||
### Optional Parameters: | ||
**unmonitoredServiceName** Specify a service name if you want to map calls to an unmonitored service. | ||
|
||
**existingServiceId** Specify a service id if you want to map calls to an existing service. | ||
|
||
**description** A description of the configuration. | ||
|
||
**enabled** Enable or disable the configuration. | ||
|
||
Note: Either unmonitoredServiceName or existingServiceId should be specified in a configuration. | ||
|
||
### Defaults | ||
**enabled** `true` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Delete a manual service configuration. | ||
|
||
**This is an experimental endpoint to workaround service mapping issues.** |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Get all manual service configurations. | ||
|
||
**This is an experimental endpoint to workaround service mapping issues.** |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Replace all manual service configurations. | ||
|
||
**This is an experimental endpoint to workaround service mapping issues.** | ||
|
||
### Mandatory Parameters: | ||
|
||
**tagFilterExpression** A tag filter expression to match calls on which the manual service configuration will be applied. Only call tags are allowed in the expression. | ||
|
||
### Optional Parameters: | ||
**unmonitoredServiceName** Specify a service name if you want to map calls to an unmonitored service. | ||
|
||
**existingServiceId** Specify a service id if you want to map calls to an existing service. | ||
|
||
**description** A description of the configuration. | ||
|
||
**enabled** Enable or disable the configuration. | ||
|
||
Note: Either unmonitoredServiceName or existingServiceId should be specified in a configuration. | ||
|
||
### Defaults | ||
**enabled** `true` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Update a manual service configuration. | ||
|
||
**This is an experimental endpoint to workaround service mapping issues.** | ||
|
||
### Mandatory Parameters: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no rule id? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rule id is specified in the query parameter. I just realise that maybe these "Mandatory Parameters" or "Optional Parameters" are intended to specify the query parameters, not the fields in the query payload objects... Although we used it for describing QB2 |
||
|
||
**tagFilterExpression** A tag filter expression to match calls on which the manual service configuration will be applied. Only call tags are allowed in the expression. | ||
|
||
### Optional Parameters: | ||
**unmonitoredServiceName** Specify a service name if you want to map calls to an unmonitored service. | ||
|
||
**existingServiceId** Specify a service id if you want to map calls to an existing service. | ||
|
||
**description** A description of the configuration. | ||
|
||
**enabled** Enable or disable the configuration. | ||
|
||
Note: Either unmonitoredServiceName or existingServiceId should be specified in a configuration. | ||
|
||
### Defaults | ||
**enabled** `true` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be nice if we could express this in the API. In swagger there is
oneOf
if I remember correctly, maybe there is something similar in OpenAPI.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks to me that
oneOf
can only be applied to the request object schema, not to each parameter of the schema.I found https://stackoverflow.com/questions/29708505/swagger-2-0-how-to-make-one-or-the-other-parameter-required and it points to this open issue OAI/OpenAPI-Specification#256 which could eventually address this use case