Accepts a Last Updated Date-Time that indicates the time of the last call to the endpoint.
When two or more of the four accepted parameters are selected, the search criteria ANDs the conditions from each selected parameter. ORs are used for multiple values of an individual parameter.
Returns payload containing summary Facility data that matches the ORIS Code selections.
When Last Updated Date-Time is specified, returns a Next Updated Date-Time to use in the next call to the endpoint.
Note that RGGI should use this endpoint with "RGGI" as a program code, and with a Last Updated Date-Time.
Accepts Input (Last Pull) Timestamp in 'yyyy-mm-dd"T"hh24:mi:ss.fff"Z"' format.
May need ability to specify quarterly data associated with a program.
Returns Output (Next Pull) Timestamp in 'yyyy-mm-dd"T"hh24:mi:ss.fff"Z"' format.
Returns payload containing Quarterly Unit Emissions data added on or after the Input Timestamp.
General Information:
Pull Op Time, Op Hours, Heat Input Total, and CO2 Mass (lbs) from CAMDDMW.QUARTER_UNIT_DATA.
ECMPS 1.0 used CAMDECMPS.UNIT_QUARTER instead of CAMDDMW.QUARTER_UNIT_DATA, which is an option source.
Ensure that apportionment process sets the CAMDDMW.QUARTER_UNIT_DATA (or CAMDECMPS.UNIT_QUARTER) ADD_DATE to the system_timestamp, possibly as the default.
Use the ADD_DATE to determine newly added rows for the last-updated endpoint.
Answered Questions
Requirements Outstanding Issues and Questions
The existing RGGI API provides the contact information for the DR/ADRs associated with the facility. The current plan for ECMPS 2.0 is to provide the CDX user ID in the API call and have RGGI query CDX for the contact information for the DR/ADR. This needs to be validated with the CDX folks. Note: we may need to move from CDX user ID to email address. Only include CDX User ID for authenticated calls and continue to provide the Person ID (Rep ID) to unauthenticated users.
How much additional information should we add to the units described in facilities call? The approach we are taking here mimics what is supplied on the Certificate of Representation form. For now, do not add information beyond what RGGI needs.
RGGI will require the concept of a lastUpdatedDateTime parameter on the both the facilities endpoint and the apportioned quarterly emissions endpoint. Explore feasibility of adding this parameter to the other emissions endpoints. Implement as specified in the requirements document except return the next last updated timestamp in the response header.
CAMD Questions
The programCodeInfo input parameter, when selected, currently requires an exact match with the programCodeInfo in each data object instead of matching a program code in the data object. So does not filter to RGGI easily. Should we change this, create a new program selection, or let RGGI filter the data? This appears to work correctly. Check again.
The Draft RGGI Requirements document proposes adding a lastUpdatedDateTime parameter to the "/facilities-mgmt/facilities" endpoint. ERG would typically implement a last-updated endpoint by returning the timestamp to use during the next call to the endpoint. Does CAMD have an issue with implementing a separate last-updated endpoint. If implemented as a separate endpoint, should the endpoint return full facility data or just facility summary information? Should the endpoint accept a Program Code parameter? Based on Dwayne's memory (not notes) CAMD preferred using a combined endpoint to return facility summary data, and another endpoint to return complete facility data.
Does CAMD have any issues with having the Facility Details API call a CBS API to get CAMDBSP detailed facility data instead of pulling the tables into the Cloud DB? CAMD (Mike) is okay with the API called by RGGI will call a CBS API.
RGGI Questions from ERG
The CAMD Business System currently stores NAICS codes at the unit level not the facility level. The RGGI facility web services return the max NAICS code from the RGGI units at the facility. Should the new facility API continue to return max value, or should it return all NAICS codes at the unit level? CAMD indicate to return NAICS at the unit level and inform RGGI about the change.
Original Description
Link to Draft RGGI Requirements: https://usepa.sharepoint.com/:w:/r/sites/CAMDCVPTeam/Shared%20Documents/Integration%20Coordination/RGGI/RGGI%20ECMPS%202.0/Draft%20RGGI%20Requirements.docx?d=wdc7a1b1f4a924fbeb76dc0a6e330438e&csf=1&web=1&e=Mc7gCF
Overview
Notes
CAMDBSP Facility Data
Summary Data Endpoint:
Specific Data Endpoint:
General Information
Use CAMDECMPSMD.RGGI_XML_QRY data to determine returned data.
_CDXUSER
COMPANY
PLANT
_PLANTPERSON (VW_RGGI_PLANT_PERSON)
PERSON
UNIT
_UNIT_BOILERTYPE
_UNIT_OPSTATUS
_UNITOWNER
_UNITPROGRAM
_PROGRAMPARAMETER
Tables that trigger last updated pull on ADD_DATE/UPDATE_DATE:
Quarterly Apportioned Emissions Data
Specific Data Endpoint:
Last Updated Endpoint:
General Information:
Answered Questions
Requirements Outstanding Issues and Questions
CAMD Questions
RGGI Questions from ERG