Eventum Logo

Eventum

PreviewNameInput pluginsGenerate

Generate Timestamps

Generate timestamps using input plugins

POST
/preview/{name}/input-plugins/generate

Path Parameters

name*string

Name of the generator directory

Query Parameters

size?integer

Number of timestamps to generate

Default1000
Range1 <= value
skip_past?boolean

Whether to skip past timestamps in generation

Defaulttrue
timezone?string

Timezone that is used for generated timestamps

Default"UTC"
span?|

Span expression for timestamps aggregation, can be omitted to use auto span

Request Body

application/json

Response Body

application/json

application/json

curl -X POST "https://eventum.example.com/api/preview/string/input-plugins/generate" \  -H "Content-Type: application/json" \  -d '[    {      "cron": {        "expression": "string",        "count": 0      }    }  ]'
{
  "span_edges": [
    "2019-08-24T14:15:22Z"
  ],
  "span_counts": {
    "property1": [
      0
    ],
    "property2": [
      0
    ]
  },
  "total": 0,
  "first_timestamps": [
    "2019-08-24T14:15:22Z"
  ],
  "last_timestamps": [
    "2019-08-24T14:15:22Z"
  ],
  "timestamps": [
    "2019-08-24T14:15:22Z"
  ]
}
Empty
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
Empty