blob: 50d2a8df728f4e7ffa371f1986d905146f5f78b0 [file] [log] [blame]
{
"description": "Trigger priority for event-level reports",
"input": {
"sources": [
{
"timestamp": "1643235573000",
"registration_request": {
"source_origin": "https://source.test",
"attribution_src_url": "https://reporter.test/register-source",
"source_type": "navigation"
},
"responses": [{
"url": "https://reporter.test/register-source",
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "123"
}
}
}]
}
],
"triggers": [
// Will result in an event-level report.
{
"timestamp": "1643235574000",
"registration_request": {
"attribution_src_url": "https://reporter.test/register-trigger",
"destination_origin": "https://destination.test"
},
"responses": [{
"url": "https://reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "1",
"priority": "1"
}
]
}
}
}]
},
// Will result in an event-level report but be replaced later.
{
"timestamp": "1643235575000",
"registration_request": {
"attribution_src_url": "https://reporter.test/register-trigger",
"destination_origin": "https://destination.test"
},
"responses": [{
"url": "https://reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "2",
"priority": "1"
}
]
}
}
}]
},
// Will result in an event-level report but be replaced later.
{
"timestamp": "1643235576000",
"registration_request": {
"attribution_src_url": "https://reporter.test/register-trigger",
"destination_origin": "https://destination.test"
},
"responses": [{
"url": "https://reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "3",
"priority": "1"
}
]
}
}
}]
},
// Will not result in an event-level report as the priority is not higher.
{
"timestamp": "1643235577000",
"registration_request": {
"attribution_src_url": "https://reporter.test/register-trigger",
"destination_origin": "https://destination.test"
},
"responses": [{
"url": "https://reporter.test/register-trigger",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Trigger": {
"debug_reporting": true,
"event_trigger_data": [
{
"trigger_data": "4",
"priority": "1"
}
]
}
}
}]
},
// Will replace the third event-level report as its trigger time is latest.
{
"timestamp": "1643235578000",
"registration_request": {
"attribution_src_url": "https://reporter.test/register-trigger",
"destination_origin": "https://destination.test"
},
"responses": [{
"url": "https://reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "5",
"priority": "2"
}
]
}
}
}]
},
// Will replace the second event-level report as its trigger time is latest
// among the lowest priority reports.
{
"timestamp": "1643404774000",
"registration_request": {
"attribution_src_url": "https://reporter.test/register-trigger",
"destination_origin": "https://destination.test"
},
"responses": [{
"url": "https://reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "6",
"priority": "3"
}
]
}
}
}]
},
// Will not result in an event-level report as it's in a different report
// window.
{
"timestamp": "1643408374000",
"registration_request": {
"attribution_src_url": "https://reporter.test/register-trigger",
"destination_origin": "https://destination.test"
},
"responses": [
{
"url": "https://reporter.test/register-trigger",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Trigger": {
"debug_reporting": true,
"event_trigger_data": [
{
"trigger_data": "7",
"priority": "3"
}
]
}
}
}
]
}
]
},
"output": {
"event_level_results": [
{
"payload": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0024,
"scheduled_report_time": "1643411973",
"source_event_id": "123",
"source_type": "navigation",
"trigger_data": "1"
},
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-event-attribution",
"report_time": "1643411973000"
},
{
"payload": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0024,
"scheduled_report_time": "1643411973",
"source_event_id": "123",
"source_type": "navigation",
"trigger_data": "5"
},
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-event-attribution",
"report_time": "1643411973000"
},
{
"payload": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0024,
"scheduled_report_time": "1643411973",
"source_event_id": "123",
"source_type": "navigation",
"trigger_data": "6"
},
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-event-attribution",
"report_time": "1643411973000"
}
],
"verbose_debug_reports": [
{
"payload": [ {
"body": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0024,
"scheduled_report_time": "1643411973",
"source_event_id": "123",
"source_type": "navigation",
"trigger_data": "4"
},
"type": "trigger-event-low-priority"
} ],
"report_time": "1643235577000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": [ {
"body": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0024,
"scheduled_report_time": "1643843973",
"source_event_id": "123",
"source_type": "navigation",
"trigger_data": "7"
},
"type": "trigger-event-excessive-reports"
} ],
"report_time": "1643408374000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
}
]
}
}