{"openapi":"3.0.1","info":{"title":"Emissions","description":"This API is used to get assets emissions calculated from assets meta data, energy consumption, and running hours.\\n\\nTo be able to call the service a valid token is required.","version":"v2"},"servers":[{"url":"https://iris.trackunit.com/api/sustainability","description":"Emissions"}],"security":[{"authorizationBearer":[]}],"paths":{"/v2/sites/{siteId}/emissions/period/kpis":{"get":{"tags":["Emissions Assets KPIs by Site"],"summary":"Get Site Period KPIs","description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","operationId":"getSiteEmissionsPeriodKpis","parameters":[{"name":"siteId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"period","in":"query","description":"The period of data to retrieve in days","required":true,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_MONTH, PREVIOUS_THREE, PREVIOUS_SIX, or PREVIOUS_TWELVE","enum":["PREVIOUS_MONTH","PREVIOUS_THREE","PREVIOUS_SIX","PREVIOUS_TWELVE"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsKpisPeriodResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Assets KPIs by Site"],"summary":"Filter Site Period KPIs","description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","operationId":"filterSiteEmissionsPeriodKpis","parameters":[{"name":"siteId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"period","in":"query","description":"The period of data to retrieve in days","required":true,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_MONTH, PREVIOUS_THREE, PREVIOUS_SIX, or PREVIOUS_TWELVE","enum":["PREVIOUS_MONTH","PREVIOUS_THREE","PREVIOUS_SIX","PREVIOUS_TWELVE"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsKpisPeriodResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/sites/{siteId}/emissions/monthly":{"get":{"tags":["Emissions Assets Monthly By Site"],"summary":"Get Assets By Site Monthly","description":"Get the monthly emissions data for assets on a site","operationId":"getSiteEmissionsMonthlyBySiteId","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, estimationConfidence, method, date","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, estimationConfidence, method, date","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, estimationConfidence, method, date"}}},{"name":"siteId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"period","in":"query","description":"The period of data to retrieve in months, if not provided a list of all asset's emission's data will be returned. Cannot be combined with yearMonth.","required":false,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_MONTH, PREVIOUS_THREE, PREVIOUS_SIX, or PREVIOUS_TWELVE","enum":["PREVIOUS_MONTH","PREVIOUS_THREE","PREVIOUS_SIX","PREVIOUS_TWELVE"]}},{"name":"yearMonth","in":"query","description":"The year and month to retrieve the asset's emission's data. Cannot be combined with period. ","required":false,"schema":{"type":"array","description":"The year and month to retrieve the asset's emission's data. Cannot be combined with period. ","items":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"string","enum":["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"]},"monthValue":{"type":"integer","format":"int32"},"leapYear":{"type":"boolean"}},"description":"The year and month to retrieve the asset's emission's data. Cannot be combined with period. "}}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"responses":{"200":{"description":"Returns the monthly emissions data for assets on a site","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsSitesMonthlyAssetResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Assets Monthly By Site"],"summary":"Filter Assets By Site Monthly","description":"Filter by asset ids to get the monthly emissions data for assets on a site","operationId":"filterSiteEmissionsMonthlyBySiteId","parameters":[{"name":"siteId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, estimationConfidence, method, date","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, estimationConfidence, method, date","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, estimationConfidence, method, date"}}},{"name":"period","in":"query","description":"The period of data to retrieve in months, if not provided a list of all asset's emission's data will be returned","required":false,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_MONTH, PREVIOUS_THREE, PREVIOUS_SIX, or PREVIOUS_TWELVE","enum":["PREVIOUS_MONTH","PREVIOUS_THREE","PREVIOUS_SIX","PREVIOUS_TWELVE"]}},{"name":"yearMonth","in":"query","required":false,"schema":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"string","enum":["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"]},"monthValue":{"type":"integer","format":"int32"},"leapYear":{"type":"boolean"}}}}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns the monthly emissions data for assets on a site","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsSitesMonthlyAssetResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/sites/{siteId}/emissions/monthly/summary":{"get":{"tags":["Emissions Assets Monthly By Site"],"summary":"Get Assets By Site Monthly Summary","description":"Get the monthly emissions data for all assets on a site summed up by month","operationId":"getSiteEmissionsMonthlySummaryBySiteId","parameters":[{"name":"siteId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"period","in":"query","description":"The period of data to retrieve in months, if not provided a list of all asset's emission's data will be returned","required":false,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_MONTH, PREVIOUS_THREE, PREVIOUS_SIX, or PREVIOUS_TWELVE","enum":["PREVIOUS_MONTH","PREVIOUS_THREE","PREVIOUS_SIX","PREVIOUS_TWELVE"]}},{"name":"yearMonth","in":"query","required":false,"schema":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"string","enum":["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"]},"monthValue":{"type":"integer","format":"int32"},"leapYear":{"type":"boolean"}}}}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"responses":{"200":{"description":"Returns the monthly emissions data for all assets on a site summed up by month","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsMonthlyAggregatedResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Assets Monthly By Site"],"summary":"Get Assets By Site Monthly Summary","description":"Get the monthly emissions data for all assets on a site summed up by month","operationId":"filterSiteEmissionsMonthlySummaryBySiteId","parameters":[{"name":"siteId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"period","in":"query","description":"The period of data to retrieve in months, if not provided a list of all asset's emission's data will be returned","required":false,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_MONTH, PREVIOUS_THREE, PREVIOUS_SIX, or PREVIOUS_TWELVE","enum":["PREVIOUS_MONTH","PREVIOUS_THREE","PREVIOUS_SIX","PREVIOUS_TWELVE"]}},{"name":"yearMonth","in":"query","required":false,"schema":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"string","enum":["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"]},"monthValue":{"type":"integer","format":"int32"},"leapYear":{"type":"boolean"}}}}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns the monthly emissions data for all assets on a site summed up by month","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsMonthlyAggregatedResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/period":{"get":{"tags":["Emissions Period V2"],"summary":"Get Period","description":"Returns a list of assets with their emissions calculated from the last day, last 7 days or the last 30 days","operationId":"getEmissionsPeriodV2","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"period","in":"query","description":"The period of data to retrieve in days","required":true,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_DAY, PREVIOUS_SEVEN, PREVIOUS_THIRTY, PREVIOUS_YEAR","enum":["PREVIOUS_DAY","PREVIOUS_SEVEN","PREVIOUS_THIRTY","PREVIOUS_YEAR"]}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, previousFuelUsage, previousKWH, previousUsageHours, previousEmissions, dataSourceScore","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, previousFuelUsage, previousKWH, previousUsageHours, previousEmissions, dataSourceScore","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, previousFuelUsage, previousKWH, previousUsageHours, previousEmissions, dataSourceScore"}}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"responses":{"200":{"description":"Returns a list of assets with their emissions calculated from the last day, last 7 days or the last 30 days","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsPeriodResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Period V2"],"summary":"Filter Period","description":"Filter by asset ids to get calculated emissions by individual asset for the given period.","operationId":"filterEmissionsPeriodV2","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"period","in":"query","description":"The period of data to retrieve in days","required":true,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_DAY, PREVIOUS_SEVEN, PREVIOUS_THIRTY, PREVIOUS_YEAR","enum":["PREVIOUS_DAY","PREVIOUS_SEVEN","PREVIOUS_THIRTY","PREVIOUS_YEAR"]}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, previousFuelUsage, previousKWH, previousUsageHours, previousEmissions, dataSourceScore","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, previousFuelUsage, previousKWH, previousUsageHours, previousEmissions, dataSourceScore","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, previousFuelUsage, previousKWH, previousUsageHours, previousEmissions, dataSourceScore"}}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns a list of assets with their emissions calculated from the last day, last 7 days or the last 30 days","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsPeriodResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/period/kpis":{"get":{"tags":["Emissions Period V2"],"summary":"Get Period KPIs","description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","operationId":"getEmissionsPeriodKpisV2","parameters":[{"name":"period","in":"query","description":"The period of data to retrieve in days","required":true,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_DAY, PREVIOUS_SEVEN, PREVIOUS_THIRTY, PREVIOUS_YEAR","enum":["PREVIOUS_DAY","PREVIOUS_SEVEN","PREVIOUS_THIRTY","PREVIOUS_YEAR"]}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsKpisPeriodResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Period V2"],"summary":"Filter Period KPIs","description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","operationId":"filterEmissionsPeriodKpisV2","parameters":[{"name":"period","in":"query","description":"The period of data to retrieve in days","required":true,"schema":{"type":"string","description":"The period of data to retrieve: PREVIOUS_DAY, PREVIOUS_SEVEN, PREVIOUS_THIRTY, PREVIOUS_YEAR","enum":["PREVIOUS_DAY","PREVIOUS_SEVEN","PREVIOUS_THIRTY","PREVIOUS_YEAR"]}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsKpisPeriodResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/monthly":{"get":{"tags":["Emissions Monthly V2"],"summary":"Get Monthly","description":"Returns 12 months of user's asset's total emission's for each month","operationId":"getMonthlyEmissionsV2","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date"}}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"responses":{"200":{"description":"Returns 12 months of user's asset's total emission's for each month","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsMonthlyResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"429":{"description":"Request rate exceeded","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsMonthlyResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Monthly V2"],"summary":"Filter Monthly","description":"Filter by asset ids to get the last 12 months of total emissions data by individual asset","operationId":"filterMonthlyEmissionsV2","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date"}}},{"name":"yearMonth","in":"query","description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned.","required":false,"schema":{"type":"array","description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned.","items":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"string","enum":["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"]},"monthValue":{"type":"integer","format":"int32"},"leapYear":{"type":"boolean"}},"description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned."}}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns 12 months of user's asset's total emission's for each month ","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsMonthlyResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/monthly/summary":{"get":{"tags":["Emissions Monthly V2"],"summary":"Get Monthly Summary","description":"Get the last 12 months of total emissions data for assets summed up by month.","operationId":"getMonthlyEmissionsSummaryV2","parameters":[{"name":"yearMonth","in":"query","description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned.","required":false,"schema":{"type":"array","description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned.","items":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"string","enum":["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"]},"monthValue":{"type":"integer","format":"int32"},"leapYear":{"type":"boolean"}},"description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned."}}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"responses":{"200":{"description":"Returns up to 12 months of asset's total emission's summed up by month","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsMonthlyAggregatedResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Monthly V2"],"summary":"Filter Monthly Summary","description":"Filter by asset ids to get the last 12 months of total emissions data for assets summed up by month.","operationId":"filterMonthlyEmissionsSummaryV2","parameters":[{"name":"yearMonth","in":"query","description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned.","required":false,"schema":{"type":"array","description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned.","items":{"type":"object","properties":{"year":{"type":"integer","format":"int32"},"month":{"type":"string","enum":["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"]},"monthValue":{"type":"integer","format":"int32"},"leapYear":{"type":"boolean"}},"description":"A month and year in the format YYYY-MM. If not provided, the previous 12 month are returned."}}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns up to 12 months of asset's total emission's summed up by month","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsMonthlyAggregatedResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/lifetime":{"get":{"tags":["Emissions Lifetime V2"],"summary":"Get Lifetime","description":"Returns a lifetime emissions accumulator for each individual asset","operationId":"getLifetimeEmissionsV2","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method"}}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"responses":{"200":{"description":"Returns a lifetime emissions accumulator for each individual asset","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsLifetimeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"429":{"description":"Request rate exceeded","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsLifetimeResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Lifetime V2"],"summary":"Filter Lifetime","description":"Filter by asset ids to get the lifetime calculated emissions by individual asset filtered by asset ids.","operationId":"filterLifetimeEmissionsV2","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method"}}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns a list of lifetime emissions accumulator for each individual asset","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsLifetimeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/lifetime/kpis":{"get":{"tags":["Emissions Lifetime V2"],"summary":"Get Lifetime KPIs","description":"Get KPIs for emissions using the operational lifetime of your assets","operationId":"getLifetimeEmissionsKpisV2","parameters":[{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsKpisResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Lifetime V2"],"summary":"Filter Lifetime KPIs","description":"Get KPIs for emissions using the operational lifetime of your assets filtered by asset ids","operationId":"filterLifetimeEmissionsKpisV2","parameters":[{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsKpisResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/daily":{"get":{"tags":["Emissions Daily V2"],"summary":"Get Daily","description":"Get up to the last 60 days of total emissions data by individual asset","operationId":"getDailyEmissionsV2","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date"}}},{"name":"fromTime","in":"query","description":"The date to start the query from, must be before toTime.","required":false,"schema":{"type":"string","description":"The date to start the query from, must be before toTime.","format":"date"}},{"name":"toTime","in":"query","description":"The date to end the query to, must be after fromTime. ","required":false,"schema":{"type":"string","description":"The date to end the query to, must be after fromTime. ","format":"date"}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"responses":{"200":{"description":"Returns up to 60 days of asset's total emission's by day","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsDailyResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Daily V2"],"summary":"Filter Daily","description":"Filter by asset ids to get up to the last 60 days of total emissions data by individual asset","operationId":"filterDailyEmissionsV2","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","description":"Zero-based page index (0..N)","format":"int32","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","description":"The size of the page to be returned","format":"int32","default":20}},{"name":"dataSourceScoreType","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}},{"name":"sort","in":"query","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date","required":false,"schema":{"type":"array","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date","items":{"type":"string","description":"Sort order: `property` (ascending by default), `+property` (ascending), `-property` (descending). Sort properties: assetType, emissions, usageHours, fuelUsage, kwh, powerType, powerSource, dataSourceScore, method, date"}}},{"name":"fromTime","in":"query","description":"The date to start the query from, must be fore toTime.","required":false,"schema":{"type":"string","description":"The date to start the query from, must be fore toTime.","format":"date"}},{"name":"toTime","in":"query","description":"The date to end the query to, must be after fromTime. ","required":false,"schema":{"type":"string","description":"The date to end the query to, must be after fromTime. ","format":"date"}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns up to 60 days of asset's total emission's by day","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsDailyResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/daily/summary":{"get":{"tags":["Emissions Daily V2"],"summary":"Get Daily Summary","description":"Returns up to 60 days of total emissions, fuel usage, usage hours, and kWh grouped by day","operationId":"getDailyEmissionsSummaryV2","parameters":[{"name":"fromTime","in":"query","description":"The date to start the query from, must be before toTime.","required":false,"schema":{"type":"string","description":"The date to start the query from, must be before toTime.","format":"date"}},{"name":"toTime","in":"query","description":"The date to end the query to, must be after fromTime. ","required":false,"schema":{"type":"string","description":"The date to end the query to, must be after fromTime. ","format":"date"}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"responses":{"200":{"description":"Returns up to 60 days of total emissions, fuel usage, usage hours, and kWh grouped by day","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsDailyAggregatedResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Daily V2"],"summary":"Filter Daily Summary","description":"Returns up to 60 days of total emissions, fuel usage, usage hours, and kWh grouped by day","operationId":"filterDailyEmissionsSummaryV2","parameters":[{"name":"fromTime","in":"query","description":"The date to start the query from, must be before toTime.","required":false,"schema":{"type":"string","description":"The date to start the query from, must be before toTime.","format":"date"}},{"name":"toTime","in":"query","description":"The date to end the query to, must be after fromTime. ","required":false,"schema":{"type":"string","description":"The date to end the query to, must be after fromTime. ","format":"date"}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns up to 60 days of total emissions, fuel usage, usage hours, and kWh grouped by day","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsDailyAggregatedResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/emissions/daily/kpis":{"get":{"tags":["Emissions Daily V2"],"summary":"Get Daily KPIs","description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","operationId":"getDailyEmissionsKpisV2","parameters":[{"name":"fromTime","in":"query","description":"The date to start the query from, must be fore toTime.","required":false,"schema":{"type":"string","description":"The date to start the query from, must be fore toTime.","format":"date"}},{"name":"toTime","in":"query","description":"The date to end the query to, must be after fromTime. ","required":false,"schema":{"type":"string","description":"The date to end the query to, must be after fromTime. ","format":"date"}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsKpisResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}},"post":{"tags":["Emissions Daily V2"],"summary":"Filter Daily KPIs","description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","operationId":"filterDailyEmissionsKpisV2","parameters":[{"name":"fromTime","in":"query","description":"The date to start the query from, must be fore toTime.","required":false,"schema":{"type":"string","description":"The date to start the query from, must be fore toTime.","format":"date"}},{"name":"toTime","in":"query","description":"The date to end the query to, must be after fromTime. ","required":false,"schema":{"type":"string","description":"The date to end the query to, must be after fromTime. ","format":"date"}},{"name":"method","in":"query","description":"The method used to calculate the emissions by.","required":false,"schema":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]}},{"name":"powerType","in":"query","description":"The power type of equipment to filter by.","required":false,"schema":{"type":"string","description":"The type of power to retrieve, if left out will return all power types : ELECTRIC, FUEL","enum":["ELECTRIC","FUEL"]}},{"name":"dataSourceScore","in":"query","description":"Limits selection to a list of defined data source score types","required":false,"schema":{"type":"string","description":"Limits selection to a list of defined data source score types","enum":["EXCELLENT","VERY_HIGH","HIGH","MEDIUM","LOW","VERY_LOW"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmissionsFilter"}}},"required":true},"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Fuel Compilation, Emissions Compilation, Usage Hours Compilation, kWh Compilation, Average Emissions, Average Emissions by Usage Hours, Different Power Types, grouped by asset types","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsKpisResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/sites/{siteId}/emissions":{"get":{"tags":["Emissions Site V2"],"summary":"Get Site Emissions V2","description":"Get total emissions, kWh, usage hours, and fuel usage for a site grouped by month.","operationId":"getSiteEmissionsBySiteIdV2","parameters":[{"name":"siteId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Returns total emissions, kWh, usage hours, and fuel usage for a site grouped by month.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsSitesResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}},"/v2/sites/{siteId}/emissions/period/total/kpis":{"get":{"tags":["Emissions Total KPIs by Site"],"summary":"Get Site KPIs Emissions","description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Previous Total Fuel, Previous Total Emissions, Previous Total Usage Hours, Previous Total kWh grouped by period","operationId":"getSiteTotalKpisEmissionsBySiteId","parameters":[{"name":"siteId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Returns KPIs for Emissions, Total Fuel, Total Emissions, Total Usage Hours, Total kWh, Previous Total Fuel, Previous Total Emissions, Previous Total Usage Hours, Previous Total kWh grouped by period","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmissionsSitesTotalKpiResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstraintViolationError"}}}},"401":{"description":"Invalid or missing bearer token in Authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"403":{"description":"User not allowed to make this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultError"}}}}}}}},"components":{"schemas":{"EmissionsFilter":{"type":"object","properties":{"assetIds":{"type":"array","items":{"type":"string","format":"uuid"}}}},"DefaultError":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code","format":"int32"},"code":{"type":"string","description":"Alphanumeric code (snake case) describing use case specific error","nullable":true},"message":{"type":"string","description":"Detailed description of error"},"properties":{"type":"object","additionalProperties":{"type":"object","description":"Additional properties to be included in the error response","nullable":true},"description":"Additional properties to be included in the error response","nullable":true}}},"ConstraintViolationError":{"type":"object","properties":{"violations":{"type":"array","items":{"$ref":"#/components/schemas/Violation"}},"message":{"type":"string","description":"Detailed description of error"},"properties":{"type":"object","additionalProperties":{"type":"object","description":"Additional properties to be included in the error response","nullable":true},"description":"Additional properties to be included in the error response","nullable":true},"status":{"type":"integer","description":"HTTP status code","format":"int32"},"code":{"type":"string","description":"Alphanumeric code (snake case) describing use case specific error","nullable":true}}},"Violation":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}},"CompilationBase":{"type":"object","properties":{"name":{"type":"string","description":"The name of the grouped data"},"value":{"type":"number","description":"The total value of the grouped calculated data","format":"double"}},"description":"The average emissions by usage hours for each group"},"CountBase":{"type":"object","properties":{"name":{"type":"string","description":"The name of the grouped data"},"value":{"type":"integer","description":"The total value of the grouped calculated data","format":"int32"}},"description":"The list of fuel types and count of assets in each"},"DataSourceScoreCompilation":{"type":"object","properties":{"excellent":{"type":"integer","description":"Number of assets with the Data Source Score of excellent.","format":"int32"},"veryHigh":{"type":"integer","description":"Number of assets with the Data Source Score of very high","format":"int32"},"high":{"type":"integer","description":"Number of assets with the Data Source Score of high","format":"int32"},"medium":{"type":"integer","description":"Number of assets with the Data Source Score of medium","format":"int32"},"low":{"type":"integer","description":"Number of assets with the Data Source Score of low","format":"int32"},"veryLow":{"type":"integer","description":"Number of assets with the Data Source Score of very low","format":"int32"}},"description":"The count of each data source score for the given group"},"EmissionsKpisPeriodResponse":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/EmissionsPeriodKpis"}}},"EmissionsPeriodKpis":{"type":"object","properties":{"totalFuel":{"type":"number","description":"The total amount of fuel used by all assets for the given group","format":"double"},"totalEmissions":{"type":"number","description":"The total amount of emissions calculated for all assets over their operational lifetime for the given group","format":"double"},"totalUsageHours":{"type":"number","description":"The total amount of usage hours by all assets for the given group","format":"double"},"totalKwh":{"type":"number","description":"The total amount of kWh by all assets for the given group","format":"double"},"fuelCompilation":{"type":"array","description":"The calculated fuel summed by each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"emissionsCompilation":{"type":"array","description":"The calculated emissions summed by each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"usageHoursCompilation":{"type":"array","description":"The total usage hours summed by each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"kwhCompilation":{"type":"array","description":"The total kWh summed by each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"averageEmissionsTotal":{"type":"array","description":"The average emissions for each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"averageEmissionsByUsageHours":{"type":"array","description":"The average emissions by usage hours for each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"powerTypes":{"type":"array","description":"The total power types","items":{"$ref":"#/components/schemas/PowerType"}},"dataSourceScoreCompilation":{"$ref":"#/components/schemas/DataSourceScoreCompilation"},"emissionsChangePercent":{"type":"number","description":"The change in percent compared to the last period for emissions","format":"double"},"fuelUsageChangePercent":{"type":"number","description":"The change in percent compared to the last period for fuel usage","format":"double"},"usageHoursChangePercent":{"type":"number","description":"The change in percent compared to the last period for usage hours","format":"double"},"kwhChangePercent":{"type":"number","description":"The change in percent compared to the last period for kWh","format":"double"},"countryCount":{"type":"array","description":"The list of countries and count of assets in each","items":{"$ref":"#/components/schemas/CountBase"}},"fuelTypeCount":{"type":"array","description":"The list of fuel types and count of assets in each","items":{"$ref":"#/components/schemas/CountBase"}}},"description":"The list of Emissions KPIs"},"PowerType":{"type":"object","properties":{"name":{"type":"string","description":"Name of the power type"},"value":{"type":"integer","description":"The number of power types in the group","format":"int32"}},"description":"The total power types"},"EmissionsSitesMonthlyAssetElectric":{"required":["assetId","siteId"],"type":"object","properties":{"siteId":{"type":"string","description":"The ID of the site the asset is associated with","format":"uuid"},"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"date":{"type":"string","description":"The year and month the emissions value was calculated for","format":"date"},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"}}},"EmissionsSitesMonthlyAssetFuel":{"required":["assetId","siteId"],"type":"object","properties":{"siteId":{"type":"string","description":"The ID of the site the asset is associated with","format":"uuid"},"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"date":{"type":"string","description":"The year and month the emissions value was calculated for","format":"date"},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"}}},"EmissionsSitesMonthlyAssetHybrid":{"required":["assetId","siteId"],"type":"object","properties":{"siteId":{"type":"string","description":"The ID of the site the asset is associated with","format":"uuid"},"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"date":{"type":"string","description":"The year and month the emissions value was calculated for","format":"date"},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"}}},"EmissionsSitesMonthlyAssetResponse":{"type":"object","properties":{"totalPages":{"type":"integer","description":"The number of total pages","format":"int32"},"totalElements":{"type":"integer","description":"The total number of elements","format":"int64"},"size":{"type":"integer","description":"The size of the page","format":"int32"},"number":{"type":"integer","description":"The number of the current page","format":"int32"},"numberOfElements":{"type":"integer","description":"The number of elements currently on this page","format":"int32"},"content":{"type":"array","description":"The list content of emissions returned","items":{"type":"object","description":"The list content of emissions returned","oneOf":[{"$ref":"#/components/schemas/EmissionsSitesMonthlyAssetHybrid"},{"$ref":"#/components/schemas/EmissionsSitesMonthlyAssetFuel"},{"$ref":"#/components/schemas/EmissionsSitesMonthlyAssetElectric"}]}}}},"AggregatedEmissions":{"type":"object","properties":{"date":{"type":"string","description":"The Date the emissions calculations have been generated for","format":"date"},"totalFuelUsage":{"type":"number","description":"The total amount of fuel consumed for the day","format":"double"},"totalUsageHours":{"type":"number","description":"The total usage hours consumed for all machines during the day","format":"double"},"totalEmissions":{"type":"number","description":"The total emissions produced for the day","format":"double"},"totalKWH":{"type":"number","description":"The total kwh consumed for the day","format":"double"}},"description":"The list of aggregated monthly emissions"},"EmissionsMonthlyAggregatedResponse":{"type":"object","properties":{"content":{"type":"array","description":"The list of aggregated monthly emissions","items":{"$ref":"#/components/schemas/AggregatedEmissions"}}}},"EmissionsPeriodElectric":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"previousUsageHours":{"type":"number","description":"The previous usage hours compared to the period before","format":"double"},"previousEmissions":{"type":"number","description":"The previous calculated emissions compared to the period before","format":"double"},"method":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality (time-series) and completeness of meta-data","format":"int32"},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"},"previousKWH":{"type":"number","description":"The previous kwh compared to the period before","format":"double"}}},"EmissionsPeriodFuel":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"previousUsageHours":{"type":"number","description":"The previous usage hours compared to the period before","format":"double"},"previousEmissions":{"type":"number","description":"The previous calculated emissions compared to the period before","format":"double"},"method":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality (time-series) and completeness of meta-data","format":"int32"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"},"previousFuelUsage":{"type":"number","description":"The previous fuel usage compared to the period before","format":"double"}}},"EmissionsPeriodHybrid":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"previousUsageHours":{"type":"number","description":"The previous usage hours compared to the period before","format":"double"},"previousEmissions":{"type":"number","description":"The previous calculated emissions compared to the period before","format":"double"},"method":{"type":"string","description":"The method of data to retrieve, if left out all methods are returned: DIRECT, ESTIMATED","enum":["DIRECT","ESTIMATED"]},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality (time-series) and completeness of meta-data","format":"int32"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"},"previousFuelUsage":{"type":"number","description":"The previous fuel usage compared to the period before","format":"double"},"previousKWH":{"type":"number","description":"The previous kwh compared to the period before","format":"double"}}},"EmissionsPeriodResponse":{"type":"object","properties":{"totalPages":{"type":"integer","description":"The number of total pages","format":"int32"},"totalElements":{"type":"integer","description":"The total number of elements","format":"int64"},"size":{"type":"integer","description":"The size of the page","format":"int32"},"number":{"type":"integer","description":"The number of the current page","format":"int32"},"numberOfElements":{"type":"integer","description":"The number of elements currently on this page","format":"int32"},"content":{"type":"array","description":"The list content of emissions returned","items":{"type":"object","description":"The list content of emissions returned","oneOf":[{"$ref":"#/components/schemas/EmissionsPeriodFuel"},{"$ref":"#/components/schemas/EmissionsPeriodElectric"},{"$ref":"#/components/schemas/EmissionsPeriodHybrid"}]}}}},"EmissionsMonthlyElectric":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"date":{"type":"string","description":"The year and month the emissions value was calculated for","format":"date"},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"}}},"EmissionsMonthlyFuel":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"date":{"type":"string","description":"The year and month the emissions value was calculated for","format":"date"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"}}},"EmissionsMonthlyHybrid":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"date":{"type":"string","description":"The year and month the emissions value was calculated for","format":"date"},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"}}},"EmissionsMonthlyResponse":{"type":"object","properties":{"totalPages":{"type":"integer","description":"The number of total pages","format":"int32"},"totalElements":{"type":"integer","description":"The total number of elements","format":"int64"},"size":{"type":"integer","description":"The size of the page","format":"int32"},"number":{"type":"integer","description":"The number of the current page","format":"int32"},"numberOfElements":{"type":"integer","description":"The number of elements currently on this page","format":"int32"},"content":{"type":"array","description":"The list content of emissions returned","items":{"type":"object","description":"The list content of emissions returned","oneOf":[{"$ref":"#/components/schemas/EmissionsMonthlyHybrid"},{"$ref":"#/components/schemas/EmissionsMonthlyFuel"},{"$ref":"#/components/schemas/EmissionsMonthlyElectric"}]}}}},"EmissionsLifetimeElectric":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"}}},"EmissionsLifetimeFuel":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"}}},"EmissionsLifetimeHybrid":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"}}},"EmissionsLifetimeResponse":{"type":"object","properties":{"totalPages":{"type":"integer","description":"The number of total pages","format":"int32"},"totalElements":{"type":"integer","description":"The total number of elements","format":"int64"},"size":{"type":"integer","description":"The size of the page","format":"int32"},"number":{"type":"integer","description":"The number of the current page","format":"int32"},"numberOfElements":{"type":"integer","description":"The number of elements currently on this page","format":"int32"},"content":{"type":"array","description":"The list content of emissions returned","items":{"type":"object","description":"The list content of emissions returned","oneOf":[{"$ref":"#/components/schemas/EmissionsLifetimeHybrid"},{"$ref":"#/components/schemas/EmissionsLifetimeFuel"},{"$ref":"#/components/schemas/EmissionsLifetimeElectric"}]}}}},"EmissionKpis":{"type":"object","properties":{"totalFuel":{"type":"number","description":"The total amount of fuel used by all assets for the given group","format":"double"},"totalEmissions":{"type":"number","description":"The total amount of emissions calculated for all assets over their operational lifetime for the given group","format":"double"},"totalUsageHours":{"type":"number","description":"The total amount of usage hours by all assets for the given group","format":"double"},"totalKwh":{"type":"number","description":"The total amount of kWh by all assets for the given group","format":"double"},"fuelCompilation":{"type":"array","description":"The calculated fuel summed by each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"emissionsCompilation":{"type":"array","description":"The calculated emissions summed by each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"usageHoursCompilation":{"type":"array","description":"The total usage hours summed by each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"kwhCompilation":{"type":"array","description":"The total kWh summed by each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"averageEmissionsTotal":{"type":"array","description":"The average emissions for each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"averageEmissionsByUsageHours":{"type":"array","description":"The average emissions by usage hours for each group","items":{"$ref":"#/components/schemas/CompilationBase"}},"powerTypes":{"type":"array","description":"The total power types","items":{"$ref":"#/components/schemas/PowerType"}},"dataSourceScoreCompilation":{"$ref":"#/components/schemas/DataSourceScoreCompilation"}},"description":"The list of Emissions KPIs"},"EmissionsKpisResponse":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/EmissionKpis"}}},"EmissionsDailyElectric":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"date":{"type":"string","description":"The day the emissions data was calculated on","format":"date"},"kwh":{"type":"number","description":"The kwh used by the asset","format":"double"}}},"EmissionsDailyFuel":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"date":{"type":"string","description":"The day the emissions data was calculated on","format":"date"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"}}},"EmissionsDailyHybrid":{"required":["assetId"],"type":"object","properties":{"assetId":{"type":"string","description":"The ID of the asset","format":"uuid"},"assetType":{"type":"string","description":"The type of the asset"},"usageHours":{"type":"number","description":"The number of hours the asset has ran","format":"double"},"emissions":{"type":"number","description":"The calculated emissions used by the asset for the requested time period.","format":"double"},"powerType":{"type":"string","description":"The power type reported by the asset."},"powerSource":{"type":"string","description":"The power source reported by the asset."},"dataSourceScore":{"type":"integer","description":"Data Source Score (rated 0-100) quantifies the confidence of emissions calculation. It is influenced by data input quality and completeness of meta-data","format":"int32"},"method":{"type":"string","description":"The method used to determine the emission calculation, direct or estimated."},"date":{"type":"string","description":"The day the emissions data was calculated on","format":"date"},"kwh":{"type":"number","description":"The kwh used by the asset.","format":"double"},"fuelUsage":{"type":"number","description":"The fuel used by the asset","format":"double"}}},"EmissionsDailyResponse":{"type":"object","properties":{"totalPages":{"type":"integer","description":"The number of total pages","format":"int32"},"totalElements":{"type":"integer","description":"The total number of elements","format":"int64"},"size":{"type":"integer","description":"The size of the page","format":"int32"},"number":{"type":"integer","description":"The number of the current page","format":"int32"},"numberOfElements":{"type":"integer","description":"The number of elements currently on this page","format":"int32"},"content":{"type":"array","description":"The list content of emissions returned","items":{"type":"object","description":"The list content of emissions returned","oneOf":[{"$ref":"#/components/schemas/EmissionsDailyFuel"},{"$ref":"#/components/schemas/EmissionsDailyElectric"},{"$ref":"#/components/schemas/EmissionsDailyHybrid"}]}}}},"EmissionsDailyAggregatedResponse":{"type":"object","properties":{"content":{"type":"array","description":"The list of aggregated daily emissions","items":{"$ref":"#/components/schemas/AggregatedEmissions"}}}},"EmissionsSites":{"required":["siteId"],"type":"object","properties":{"siteId":{"type":"string","description":"The ID of the site.","format":"uuid"},"usageHours":{"type":"number","description":"The number of usage hours total for the site.","format":"double"},"fuelUsage":{"type":"number","description":"The total fuel used by the site.","format":"double"},"emissions":{"type":"number","description":"The total calculated emissions used by the site.","format":"double"},"kwh":{"type":"number","description":"The total kwh used by the site.","format":"double"},"date":{"type":"string","description":"The year and month the emissions value was calculated for","format":"date"}},"description":"The list of emissions for a site total grouped by month."},"EmissionsSitesResponse":{"type":"object","properties":{"content":{"type":"array","description":"The list of emissions for a site total grouped by month.","items":{"$ref":"#/components/schemas/EmissionsSites"}}}},"EmissionsSitesTotalKpiResponse":{"type":"object","properties":{"content":{"type":"array","description":"The list of Site Total Kpis for each period.","items":{"$ref":"#/components/schemas/SiteEmissionsTotalKpis"}}}},"SiteEmissionsTotalKpis":{"type":"object","properties":{"period":{"type":"string"},"usageHours":{"type":"number","format":"double"},"fuelUsage":{"type":"number","format":"double"},"emissions":{"type":"number","format":"double"},"kwh":{"type":"number","format":"double"},"usageHoursPrevious":{"type":"number","format":"double"},"fuelUsagePrevious":{"type":"number","format":"double"},"emissionsPrevious":{"type":"number","format":"double"},"kwhPrevious":{"type":"number","format":"double"}},"description":"The list of Site Total Kpis for each period."}},"securitySchemes":{"authorizationBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}