Skip to content

Stream Data In

Streaming data into the Novelty Detector is simply a matter of making REST API calls. Two endpoints are available:

The only difference between these two endpoints is how many observations they receive. The single observation endpoint takes a single observation and returns a single result. The bulk endpoint accepts an array of observations and returns a single response containing an array of results. These two endpoints can be used together. Full interactive documentation for these and all other API endpoints is available in each running instance of thatDot Novelty Detector.

Both endpoints take the name of a model, {modelName}, in the URL. A model is a group of observations. Each observation recorded to a model is scored against the observations that model has already seen, and a model's scores do not depend on any other model. A model name is 1 to 16 letters and digits and starts with a letter; Novelty converts it to lowercase. Create the model with Create Model: POST /api/v2/system/models before you record to it; recording to a model that does not exist returns 404 Not Found.

Observations from Quine Enterprise

A Quine Enterprise standing query can stream its results into a Novelty model with the Stream to Novelty output. Quine Enterprise creates and manages one ingest per output on each Novelty instance it points at, named quine-novelty-<id>, and its definition carries a managedBy field identifying the output. Scores go back to Quine Enterprise, which writes them into its graph.

  • Leave these ingests to Quine Enterprise. It recreates one that is deleted or stops, and deletes it when the output is removed.
  • Rescores. If the model has rescores enabled, Novelty also sends rescores back to Quine Enterprise. The status of each such ingest reports rescores.sentToQuine and rescores.dropped; rescores are dropped when no connection has room for them or none is open.