...
Just as one specifies metrics when using the DAL, you simply prefix the desired metric with an indicator and specify metrics in the same manner. So, to retrieve data from metrics in the proposed, signed, and approved baselines, you prefix each metric with 'p_', 's_', and 'a_', respectively.
Example
Sample Request:
.../api/data/quote/c51c6a53-8793-428e-8542-2d84b662bfe7/?metrics=system_capacity_kw,p_system_capacity_kw,s_system_capacity_kw,a_system_capacity_kw
where I am specifying a quote_id. All three baseline metrics and the base metric are included in this request. The base metric represents the data live in the job.
Sample Response:
"data":[
{
"s_system_capacity_kw":3.5,
"p_system_capacity_kw":4,
"a_system_capacity_kw":"APPROVED_BASELINE_NONEXISTANT",
"system_capacity_kw":4
}
]
Analyzing the results, we see the proposed baseline metric and base metric are equal to 4 kW. The signed baseline metric shows 3.5 kW. This implies the installer went back into the system, updated the system size, and then generated a new contract and subsequently a new baseline. However, this new contract has not yet been signed as the signed baseline metric has not been updated. Furthermore, we see that the approved baseline does not exist. A warning like this will appear for all baselines when the specified baseline does not exist. In this example, the warning implies the financier has not yet approved a milestone.
Related articles
You might also want to check out these related topics: