GuideReference
TrainingSupportCommunity
Reference

datastream

  • Property Manager name: DataStream
  • Behavior version: The v2023-01-05 rule format supports the datastream behavior v1.6.
  • Rule format status: GA, stable
  • Access: Read/Write
  • Allowed in includes: No (temporarily)

The Data​Stream reporting service provides real-time logs on application activity, including aggregated metrics on complete request and response cycles and origin response times. Apply this behavior to report on this set of traffic. Use the Data​Stream API to aggregate the data.

OptionTypeDescriptionRequires
stream_​typeenum

Specify the Data​Stream type.

{"displayType":"enum","options":["BEACON","LOG","BEACON_AND_LOG"],"tag":"select"}
{"if":{"attribute":"modulesOnContract","op":"contains","scope":"global","value":"DataStreamLogs"}}
BEACON

Low latency streaming of raw or aggregated data for push delivery or through the pull API.

LOG

Scalable, low latency streaming of raw data for push delivery.

BEACON_​AND_​LOG

Specify both.

enabledboolean

Enables Data​Stream reporting.

{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"expression":{"attribute":"streamType","op":"in","value":["LOG"]},"op":"not"}}
datastream_​idsstring

A set of dash-separated Data​Stream ID values to limit the scope of reported data. By default, all active streams report. Use the Data​Stream application to gather stream ID values that apply to this property configuration. Specifying IDs for any streams that don't apply to this property has no effect, and results in no data reported.

{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
log_​enabledboolean

Enables log collection for the property by associating it with Data​Stream configurations.

stream_​type is either: LOG, BEACON_​AND_​LOG
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"streamType","op":"in","value":["LOG","BEACON_AND_LOG"]}}
log_​stream_​namestring

Specifies the name of the active stream monitoring the property that you want to receive log data from.

log_​enabled is true
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"logEnabled","op":"eq","value":true}}
sampling_​percentagenumber

Specifies the percentage of log data you want to collect for this property.

log_​enabled is true
{"displayType":"number","tag":"input","type":"number"}
{"if":{"attribute":"logEnabled","op":"eq","value":true}}
collect_​midgress_​trafficboolean

Whether to collect traffic data from within the Akamai platform, such as between two edge servers.

log_​enabled is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"and","params":[{"attribute":"logEnabled","op":"eq","value":true},{"attribute":"modulesOnContract","op":"contains","scope":"global","value":"DataStreamMidgress"}]}}