> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trlyr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get detailed summed statistics with calculated energy values.

> Calculates aggregated statistics for monitoring data points within a time interval

Note: Requests that would return responses larger than 10MB will fail. Consider



## OpenAPI

````yaml https://api.trlyr.com/monitoring/docs/doc.json get /{physicalAssetID}/datapoints/sum/detailed
openapi: 3.1.0
info:
  description: ''
  title: terralayr Monitoring API
  version: 1.0.0
servers:
  - description: Production API
    url: https://api.trlyr.com
  - description: Sandbox API
    url: https://api.sandbox.trlyr.com
security: []
externalDocs:
  description: ''
  url: ''
paths:
  /{physicalAssetID}/datapoints/sum/detailed:
    get:
      tags:
        - monitoring
      summary: Get detailed summed statistics with calculated energy values.
      description: >-
        Calculates aggregated statistics for monitoring data points within a
        time interval


        Note: Requests that would return responses larger than 10MB will fail.
        Consider
      parameters:
        - description: Access token
          in: header
          name: Authorization
          required: true
          schema:
            default: Bearer <access token value>
            type: string
        - description: Physical Asset ID
          in: path
          name: physicalAssetID
          required: true
          schema:
            type: string
        - description: Query start time (RFC3339)
          in: query
          name: start
          required: true
          schema:
            type: string
        - description: Query end time (RFC3339)
          in: query
          name: end
          required: true
          schema:
            type: string
        - description: Comma-separated list of data point names
          in: query
          name: datapoints
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_Terralayr_monitoring_pkg_models_http_v0_responses.MonitoringSumsResponse
          description: OK
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '500':
          description: Internal Server Error
components:
  schemas:
    github_com_Terralayr_monitoring_pkg_models_http_v0_responses.MonitoringSumsResponse:
      properties:
        data:
          additionalProperties:
            $ref: >-
              #/components/schemas/github_com_Terralayr_monitoring_pkg_models_http_v0_responses.MonitoringPointStats
          type: object
      type: object
    github_com_Terralayr_monitoring_pkg_models_http_v0_responses.MonitoringPointStats:
      properties:
        calculated:
          $ref: >-
            #/components/schemas/github_com_Terralayr_monitoring_pkg_models_http_v0_responses.CalculatedStats
        raw:
          $ref: >-
            #/components/schemas/github_com_Terralayr_monitoring_pkg_models_types.MonitoringStats
      type: object
    github_com_Terralayr_monitoring_pkg_models_http_v0_responses.CalculatedStats:
      properties:
        negativeEnergy:
          type: number
        positiveEnergy:
          type: number
        totalEnergy:
          type: number
        unit:
          type: string
          x-enum-varnames:
            - UnitNone
            - UnitPercent
            - UnitKilowatt
            - UnitKilowattHr
            - UnitKilowattPerSecond
            - UnitAmpere
            - UnitVolt
            - UnitCelsius
            - UnitHertz
            - UnitWattHour
            - UnitWatt
            - UnitRatio
            - UnitCycles
            - UnitEuro
            - UnitCarbonIntensity
      type: object
    github_com_Terralayr_monitoring_pkg_models_types.MonitoringStats:
      properties:
        dataPointCount:
          type: integer
        negativeSum:
          type: number
        positiveSum:
          type: number
        totalSum:
          type: number
        unit:
          $ref: '#/components/schemas/types.Unit'
      type: object
    types.Unit:
      type: string
      x-enum-varnames:
        - UnitNone
        - UnitPercent
        - UnitKilowatt
        - UnitKilowattHr
        - UnitKilowattPerSecond
        - UnitAmpere
        - UnitVolt
        - UnitCelsius
        - UnitHertz
        - UnitWattHour
        - UnitWatt
        - UnitRatio
        - UnitCycles
        - UnitEuro
        - UnitCarbonIntensity

````