Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In 2020, STATSCORE has added the incidents attributes for the selected incidents that appear in sports offered in the Scoutsfeed product. Attributes allow you to precisely define the type of a given incident, e.g. attribute own goal to incident goal. In the section below we will describe how to support mentioned functionality.

Information about the incident attributes is available both through the AMQP service and API endpoints and is contained in the attribute_ids parameter which is a list of incident type identifiers separated by a comma (e.g. 123,234,321).

Initially, a message about adding a new incident is sent (action: insert). The "attribute_ids" parameter "null" will appear by default. This value may change depending on the situation on the pitch and may affect the statistics.

Image RemovedImage Added

If the attribute is assigned to an incident, an update message (action: update) containing the ID for the specific incident will be sent. In the image below, ID: 466 corresponds to the "Dangerous free kick" attribute for the "Free kick" incident

Image RemovedImage Added

A detailed list of attributes with ID is available in the section "Sport data structure -> Incidents"