monitoring-service
    Preparing search index...

    Service interface for ingesting new measurements coming from a smart furniture hookup.

    interface IngestingService {
        createMeasurement(
            smartFurnitureHookupID: SmartFurnitureHookupID,
            consumptionValue: number,
            timestamp: Date,
            householdUserUsername?: HouseholdUserUsername,
        ): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Creates a new measurements if the given SmartFurnitureHookupID is valid.

      If the measurement is associated with a specific household user, their username can be provided.

      Parameters

      Returns Promise<void>

      InvalidSmartFurnitureHookupIDError