# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
---
allOf:
- type: object
  required:
  - offset
  properties:
    mode:
      type: string
      enum:
      - origin
      - ts_received
      description: The timestamp field which should be adjusted by the `offset` setting.
    offset:
      type: number
      description: The offset in seconds which is added to the timestamp field of each processed sample.

- $ref: ../hook.yaml
