Introduction

How to send HACCP data to Things5

What is HACCP?

Hazard Analysis Critical Control Points (HACCP) is an internationally recognized method of identifying and managing food safety related risk and, when central to an active food safety program, can provide your customers, the public, and regulatory agencies assurance that a food safety program is well managed.

HACCP is a management system in which food safety is addressed through the analysis and control of biological, chemical, and physical hazards from raw material production, procurement and handling, to manufacturing, distribution and consumption of the finished product.

Manufacturers and vendors use the system as a basis for their food safety management programs and for compliance with GFSI audit schemes.

You can send Haccp logs to Things5 in order to make your Haccp reports available to the cloud.

How to send HACCP logs to Things5?

A Haccp report consists in a list of records. These records can be sent to Things5 like any other event.
Those events can be classified in the T5 portal as HACCP events so they can be automatically available in the HACCP report that can be downloaded from the appropriate HACCP section page.

In order to learn how to send T5 events you can take a look at [Sub] Data ingestion request.

# HACCP payload example (timestamp in milliseconds)

{
    "request_id": "UUID",
    "events": [
        {
            "timestamp": 1500000000010,
            "data": [
                {
                    "name": "high-pressure-alarm",
                    "metadata": {
                        "temperature": "22"
                    }
                }
            ]
        },
        {
            "timestamp": 1500000000020,
            "data": [
                {
                    "name": "haccp-program-start",
                    "metadata": {
                      "name": "my chilling program"
                    }
                }
            ]
        }
    ]
}

In this example high-pressure-alarm and haccp-program-start records are sent to Things5.
The metadata field provides additional data for the single record.