-
Notifications
You must be signed in to change notification settings - Fork 9
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
Review property requirements in Get Metrics schemas #345
Comments
Hi @nils-work you are correct, and this issue is considered to be a documentation defect. An early draft of the data standards used to have a query parameter allowing specific metrics to be requested which was later removed however the conditionality at the object-level for the Metrics API response was not updated. This will be corrected in the current iteration. The expectation has been that the DH will provide the full list of metrics when requested. The field-level properties of the primary objects are conditional because they are based on the |
This fix has been staged for review here: https://github.com/ConsumerDataStandardsAustralia/standards-staging/tree/maintenance/345 |
The last line of this issue relates to the fields highlighted below in the RejectionMetricsV2 schema all being optional, which is different to the other object requirements. |
Thank you @nils-work this is a documentation defect and will be corrected in the staged changes on standards-staging branch maintenance/345 |
These changes have been staged and they are available for review here: ConsumerDataStandardsAustralia/standards-staging@release/1.8.0...maintenance/345 |
Hi @CDR-API-Stream |
Thanks Nils. This was building fine as-is however it has been corrected. |
The outcome of this issue has been approved by the Data Standards Chair for inclusion in v1.9.0. A change to the data standards was recommended. This issue will be closed accordingly. |
Description
Most of the properties in the Get Metrics response schema are marked as conditional but there are no conditions specified.
I expect many of these are intended to be mandatory.
Most of the sub-object properties are also conditional but that may relate to the
period
parameter of the endpoint specifying whether theCURRENT
,HISTORIC
(previous) orALL
values are being requested.Properties in InvocationMetrics and AverageResponseMetrics are all conditional but the top-level objects in those schemas may be mandatory.
The RejectionMetrics properties are all optional which is different to the definitions for the other schemas which may also have only '0' values to report, if that is the reason behind their optionality (ErrorMetrics for example.)
Area Affected
ResponseMetricsList schema and sub-schemas.
Change Proposed
Clarify the requirements of the properties and update the schema documentation.
The text was updated successfully, but these errors were encountered: