Skip to content

Commit

Permalink
change segment-id / "primary identifier" -> resource-id for forecasts
Browse files Browse the repository at this point in the history
  • Loading branch information
caindy authored and catkins-miso committed Feb 8, 2024
1 parent 37906d5 commit 9c125a2
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions docs/_data/components/schemas/array-max-forecast-periods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ forecast-limit-item-detailed:
items:
$ref: 'forecast-limit-period.yaml#/forecast-period-snapshot-detailed'

forecast-proposal-for-segment:
resource-forecast-proposal:
type: object
additionalProperties: false
properties:
segment-id:
resource-id:
$ref: ./generic-identifier.yaml
periods:
<<: *max
items:
$ref: 'forecast-limit-period.yaml#/forecast-period-proposal'

required:
- segment-id
- resource-id
- periods

missing-forecast:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ named-power-system-objects:
items:
$ref: ./names.yaml

forecast-rating-proposal:
forecast-proposal:
type: object
properties:
forecast-header:
Expand All @@ -27,7 +27,7 @@ forecast-rating-proposal:
<<: *max
description: Forecasted Ratings
items:
$ref: 'array-max-forecast-periods.yaml#/forecast-proposal-for-segment'
$ref: 'array-max-forecast-periods.yaml#/resource-forecast-proposal'
required:
- forecast-header
- ratings
Expand Down
4 changes: 2 additions & 2 deletions docs/_data/components/schemas/names.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type: object
properties:
receiver-primary-identifier:
resource-id:
$ref: ./generic-identifier.yaml
alternate-identifiers:
type: array
Expand All @@ -19,4 +19,4 @@ properties:
- name
- authority
required:
- receiver-primary-identifier
- resource-id
10 changes: 5 additions & 5 deletions docs/_data/paths/rating-proposals_forecasts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ get:
content:
application/vnd.trolie.rating-forecast-proposal.v1+json:
schema: &forecast-rating-proposal
$ref: ../components/schemas/array-max-monitored-elements.yaml#/forecast-rating-proposal
$ref: ../components/schemas/array-max-monitored-elements.yaml#/forecast-proposal
example:
forecast-header:
last-updated: '2023-07-12T15:05:43.044267100-07:00'
Expand All @@ -46,7 +46,7 @@ get:
- name: dal
duration-minutes: 15
power-system-objects:
- receiver-primary-identifier: 8badf00d
- resource-id: 8badf00d
alternate-identifiers:
- name: segmentX
authority: TO-NERC-ID
Expand All @@ -55,7 +55,7 @@ get:
mrid: 8badf00d
ratings-provider: UTILITY-X
ratings:
- segment-id: segmentX
- resource-id: segmentX
periods:
- period-start: '2023-07-12T16:00:00-07:00'
period-end: '2023-07-12T17:00:00-07:00'
Expand Down Expand Up @@ -131,7 +131,7 @@ patch:
- name: dal
duration-minutes: 15
power-system-objects:
- receiver-primary-identifier: 8badf00d
- resource-id: 8badf00d
alternate-identifiers:
- name: segmentX
authority: TO-NERC-ID
Expand All @@ -140,7 +140,7 @@ patch:
mrid: 8badf00d
ratings-provider: UTILITY-X
ratings:
- segment-id: segmentX
- resource-id: segmentX
periods:
- period-start: '2023-07-12T16:00:00-07:00'
period-end: '2023-07-12T17:00:00-07:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ get:
content:
application/vnd.trolie.rating-forecast-proposal.v1+json:
schema: &forecast-rating-proposal
$ref: ../components/schemas/array-max-monitored-elements.yaml#/forecast-rating-proposal
$ref: ../components/schemas/array-max-monitored-elements.yaml#/forecast-proposal
example:
forecast-header:
last-updated: '2023-07-12T15:05:43.044267100-07:00'
Expand All @@ -29,15 +29,15 @@ get:
- name: dal
duration-minutes: 15
power-system-objects:
- receiver-primary-identifier: 8badf00d
- resource-id: 8badf00d
alternate-identifiers:
- name: segmentX
authority: TO-NERC-ID
- name: LINE1 SEG-X
authority: RC-NERC-ID
mrid: 8badf00d
ratings:
- segment-id: segmentX
- resource-id: segmentX
periods:
- period-start: '2023-07-12T16:00:00-07:00'
period-end: '2023-07-12T17:00:00-07:00'
Expand Down Expand Up @@ -104,15 +104,15 @@ patch:
- name: dal
duration-minutes: 15
power-system-objects:
- receiver-primary-identifier: 8badf00d
- resource-id: 8badf00d
alternate-identifiers:
- name: segmentX
authority: TO-NERC-ID
- name: LINE1 SEG-X
authority: RC-NERC-ID
mrid: 8badf00d
ratings:
- segment-id: segmentX
- resource-id: segmentX
periods:
- period-start: '2023-07-12T16:00:00-07:00'
period-end: '2023-07-12T17:00:00-07:00'
Expand Down Expand Up @@ -152,15 +152,15 @@ patch:
- name: dal
duration-minutes: 15
power-system-objects:
- receiver-primary-identifier: 8badf00d
- resource-id: 8badf00d
alternate-identifiers:
- name: segmentX
authority: TO-NERC-ID
- name: LINE1 SEG-X
authority: RC-NERC-ID
mrid: 8badf00d
ratings:
- segment-id: segmentX
- resource-id: segmentX
periods:
- period-start: '2023-07-12T16:00:00-07:00'
period-end: '2023-07-12T17:00:00-07:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{ "name": "emergency", "duration-minutes": 60}
],
"power-system-objects": [
{ "receiver-primary-identifier": "8badf00d",
{ "resource-id": "8badf00d",
"alternate-identifiers": [
{"name": "segmentX", "authority": "TO-NERC-ID"},
{"name": "LINE1 SEG-X", "authority": "RC-NERC-ID", "mrid": "8badf00d"}
Expand All @@ -14,7 +14,7 @@
},
"ratings": [
{
"segment-id": "segmentX",
"resource-id": "segmentX",
"periods": [
{
"period-start": "2025-11-02T01:00:00-05:00",
Expand Down

0 comments on commit 9c125a2

Please sign in to comment.