-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from trolie/dry-up-default-monitoringset
DRY up default monitoring set
- Loading branch information
Showing
3 changed files
with
17 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ properties: | |
required: | ||
- source | ||
- id | ||
- power-system-resources | ||
- power-system-resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,16 @@ | ||
get: | ||
operationId: getDefaultMonitoringSet | ||
description: &get_desc Obtain the logged in rating provider's default monitoring set. | ||
summary: *get_desc | ||
tags: | ||
- Monitoring Sets | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/vnd.trolie.monitoring-set.v1+json: | ||
schema: | ||
$ref: ../components/schemas/monitoring-set.yaml | ||
example: | ||
$ref: ../../example-narratives/examples/monitoring-set-get.json | ||
headers: | ||
$ref: '../openapi-split.yaml#/components/responses/204/headers' | ||
summary: Obtain your default monitoring set. | ||
description: | | ||
'304': | ||
$ref: '../openapi-split.yaml#/components/responses/304' | ||
'400': | ||
$ref: '../openapi-split.yaml#/components/responses/400-problem' | ||
'401': | ||
$ref: '../openapi-split.yaml#/components/responses/401-empty' | ||
'403': | ||
$ref: '../openapi-split.yaml#/components/responses/403-empty' | ||
'404': | ||
$ref: '../openapi-split.yaml#/components/responses/404-empty' | ||
'406': | ||
$ref: '../openapi-split.yaml#/components/responses/406-empty' | ||
'429': | ||
$ref: '../openapi-split.yaml#/components/responses/429-empty' | ||
'500': &unexpected-error-empty | ||
$ref: '../openapi-split.yaml#/components/responses/500-empty' | ||
default: *unexpected-error-empty | ||
Obtain the default monitoring set for the authorized principal. TROLIE | ||
implementations SHOULD provide a default monitoring set for each principal. | ||
The default monitoring set is the monitoring set that is used for limits | ||
snapshots when the `monitoring-set-id` query parameter is not supplied. | ||
tags: | ||
$ref: './monitoring-sets_{id}.yaml#/get/tags' | ||
responses: | ||
$ref: './monitoring-sets_{id}.yaml#/get/responses' | ||
security: | ||
- oauth2-primary-flow: | ||
- read:monitoring-sets | ||
$ref: './monitoring-sets_{id}.yaml#/get/security' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters