Interface Sample

    • Method Detail

      • getId

        String getId()
        Returns:
        the idof the meter
      • getMetadata

        Map<String,​Object> getMetadata()
        Returns:
        Arbitrary metadata associated with the resource
      • getMeter

        String getMeter()
        Returns:
        the meter
      • getVolume

        Float getVolume()
        Returns:
        the actual measured value
      • getSource

        String getSource()
        Returns:
        The ID of the source that identifies where the sample comes from
      • setSource

        void setSource​(String source)
      • getResourceId

        String getResourceId()
        Returns:
        The ID of the Resource for which the measurements are taken
      • setResourceId

        void setResourceId​(String resourceId)
      • getTimestamp

        String getTimestamp()
        Returns:
        UTC date and time when the measurement was made
      • setTimestamp

        void setTimestamp​(String timestamp)
      • getRecordedAt

        String getRecordedAt()
        Returns:
        UTC date and time when the sample was recorded
      • setRecordedAt

        void setRecordedAt​(String date)
      • getProjectId

        String getProjectId()
        Returns:
        he ID of the project or tenant that owns the resource
      • setProjectId

        void setProjectId​(String projectId)
      • getType

        Meter.Type getType()
        Returns:
        the type of meter
      • getUserId

        String getUserId()
        Returns:
        The ID of the user who last triggered an update to the resource
      • getUnit

        String getUnit()
        Returns:
        Returns unit