Total yearly yield
GET/performance/total/:uuid/:year
Production of a plant over a year, summed from its monthly values.
Request
Path Parameters
Unique identifier (UUID) of the plant, as listed by /plants.
Year of the data.
Responses
- 200
- 401
- 402
- 403
- 404
- 500
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
p_yield
object
Sum of the year's monthly yields, in kWh.
anyOf
number
p_yield_estimated
object
Sum of the same months' estimates, in kWh.
anyOf
number
{
"year": 0,
"p_yield": 0,
"p_yield_estimated": 0
}
MISSING_API_KEY: no x-api-key header.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Stable error code to branch on, e.g. ACCESS_DENIED.
Human-readable explanation.
error
object
Same text as message, on 401 and 403 only (older clients).
anyOf
string
{
"code": "string",
"message": "string",
"error": "string"
}
INVALID_PARAMETER, INVALID_DATE, DATA_NOT_AVAILABLE (year out of range or month still running) or INVALID_INTERVAL.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Stable error code to branch on, e.g. ACCESS_DENIED.
Human-readable explanation.
error
object
Same text as message, on 401 and 403 only (older clients).
anyOf
string
{
"code": "string",
"message": "string",
"error": "string"
}
UNKNOWN_API_KEY or ACCESS_DENIED: the key's access does not cover this route, plant or date.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Stable error code to branch on, e.g. ACCESS_DENIED.
Human-readable explanation.
error
object
Same text as message, on 401 and 403 only (older clients).
anyOf
string
{
"code": "string",
"message": "string",
"error": "string"
}
NO_DATA: no performance data for this period.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Stable error code to branch on, e.g. ACCESS_DENIED.
Human-readable explanation.
error
object
Same text as message, on 401 and 403 only (older clients).
anyOf
string
{
"code": "string",
"message": "string",
"error": "string"
}
INTERNAL_ERROR.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Stable error code to branch on, e.g. ACCESS_DENIED.
Human-readable explanation.
error
object
Same text as message, on 401 and 403 only (older clients).
anyOf
string
{
"code": "string",
"message": "string",
"error": "string"
}