{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iot-sitewise/refs/heads/main/json-schema/iot-sitewise-time-in-nanos-schema.json",
"title": "TimeInNanos",
"description": "Contains a timestamp with optional nanosecond granularity.",
"type": "object",
"properties": {
"timeInSeconds": {
"allOf": [
{
"$ref": "#/components/schemas/TimeInSeconds"
},
{
"description": "The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos."
}
]
},
"offsetInNanos": {
"allOf": [
{
"$ref": "#/components/schemas/OffsetInNanos"
},
{
"description": "The nanosecond offset from timeInSeconds."
}
]
}
},
"required": [
"timeInSeconds"
]
}