Standard metadata attributes std-metadata-attributes
This page aims to provide an exhaustive list of metadata attributes that the Concurrency Monitoring service can process and which can be used as basis for policies that can be implemented. The standard metadata attributes can be categorized as follows:
- Attributes included by design (sent on every session initializaton call, as they are required in the URL path). No valid call can be performed without these values.
- Metadata attributes: values that need to be passed as form data during the session initialization call (should the backend policies require their values).
Attributes required by design attr-req-by-design
The Concurrency Monitoring API forces clients to send the following values as part of any valid initialization call: session initiation calls.
Metadata attributes metadata-attr
The fields in the table below can be used by Programmers and MVPDs to create policies which will be implemented in Concurrency Monitoring.
With API v2.0, if any of these attributes is required by the defined policies, a session init attempt without that attribute will result in a 400 Bad Request.
Examples of using metadata attributes for creating policies examples-metadata-attr
The standard metadata fields can be used for defining server-side policies based on their field values:
-
You can configure a policy to only apply to specific field values (for example, a dedicated iOS policy: where
osType
isiOS
) -
You can limit the number of distinct values for a given field. Some examples are as follows:
- no more than X distinct devices:
HAVING DISTINCT COUNT(deviceId) <= 2
- no more than X distinct zipcodes:
HAVING DISTINCT COUNT(zipcode) <= 3
- no more than X distinct devices:
-
You can limit the number of active streams per field value. Some examples are as follows:
- no more than X active streams for a single device type:
GROUP BY deviceType HAVING COUNT(streamId) <= 3
- no more than X active streams for streams of live content:
SELECT COUNT(streamId) AS streamCount WHERE contentType='live' HAVING streamCount <= 3
- no more than X active streams for a single device type:
Contact the Concurrency Monitoring team by creating a ticket in Zendesk and indicate which policies you want to have implemented.
You can find more examples of policies and integration cookbooks in the following: