Files
supermq/docker/addons/postgres-writer/config.toml
T
Dusan Borovcanin 3cd9774a91 NOISSUE - Fix typo
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
2025-07-18 11:48:27 +02:00

20 lines
851 B
TOML

# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0
# To listen all message broker subjects use default value "writers.>".
# To subscribe to specific subjects use values starting by "writers." and
# followed by a subtopic (e.g ["writers.<channel_id>.sub.topic.x", ...]).
["subscriber"]
subjects = ["writers.>"]
[transformer]
# SenML or JSON
format = "senml"
# Used if format is SenML
content_type = "application/senml+json"
# Used as timestamp fields if format is JSON
time_fields = [{ field_name = "seconds_key", field_format = "unix", location = "UTC"},
{ field_name = "millis_key", field_format = "unix_ms", location = "UTC"},
{ field_name = "micros_key", field_format = "unix_us", location = "UTC"},
{ field_name = "nanos_key", field_format = "unix_ns", location = "UTC"}]