Interface StaleAuditNodeServiceValue

All Superinterfaces:
Comparable<AggregateDatumId>, net.solarnetwork.domain.Identity<AggregateDatumId>
All Known Implementing Classes:
StaleAuditNodeServiceEntity

public interface StaleAuditNodeServiceValue extends net.solarnetwork.domain.Identity<AggregateDatumId>
API for a "stale" audit node service value record that represents a period of time for a specific audit level that needs to be computed.
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.solarnetwork.domain.datum.Aggregation
    Get time period associated with this audit value.
    default Long
    Get the node ID this audit value is part of.
    default String
    Get the service name this audit value is a part of.
    default Instant
    Get the associated timestamp of this audit value.

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface net.solarnetwork.domain.Identity

    getId, hasId
  • Method Details

    • getNodeId

      default Long getNodeId()
      Get the node ID this audit value is part of.

      This is a shortcut for getId().getObjectId().

      Returns:
      the node ID
    • getService

      default String getService()
      Get the service name this audit value is a part of.

      This is a shortcut for getId().getSourceId().

      Returns:
      the service
    • getTimestamp

      default Instant getTimestamp()
      Get the associated timestamp of this audit value.

      This value represents the point in time the count associated with this service were observed, collected, inferred, predicted, etc.

      This is a shortcut for getId().getTimestamp().

      Returns:
      the timestamp for this datum
    • getAggregation

      default net.solarnetwork.domain.datum.Aggregation getAggregation()
      Get time period associated with this audit value.

      This is a shortcut for getId().getAggregation().

      Returns:
      the aggregation