{
"description": "Different configurations surpassing the max info gain bar",
"input": {
"registrations": [
{
// Should not register due to exceeding max info gain bar.
// Value: 14.90655 bits
"timestamp": "0",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://reporter.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"max_event_level_reports": 5,
"source_event_id": "123",
"debug_reporting": true
}
}
}
]
},
{
// Should not register due to exceeding max info gain bar.
// Value: 13.37130 bits
"timestamp": "1000",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://reporter.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "456",
"event_report_windows": {
"start_time": 0,
"end_times": [3600, 7200, 10800, 14400, 18000]
},
"debug_reporting": true
}
}
}
]
},
{
// Should register due to not exceeding max info gain bar.
// Value: 9.73440 bits
"timestamp": "2000",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://reporter.test/register-source",
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "123",
"max_event_level_reports": 2,
"event_report_windows": {
"start_time": 0,
"end_times": [3600, 7200, 10800, 14400, 18000]
}
}
}
}
]
},
{
// Should result in an event-level report.
"timestamp": "3000",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "3"
}
]
}
}
}
]
},
{
// Max values for event_report_windows and max_event_level_reports,
// should not register as it exceeds the 2^32 trigger cardinality limit.
"timestamp": "4000",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://reporter2.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination2.test",
"source_event_id": "456",
"max_event_level_reports": 20,
"event_report_windows": {
"start_time": 0,
"end_times": [3600, 7200, 10800, 14400, 18000]
},
"debug_reporting": true
}
}
}
]
},
{
// Should result in an event-level report.
"timestamp": "5000",
"registration_request": {
"context_origin": "https://destination2.test"
},
"responses": [
{
"url": "https://reporter2.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "4"
}
]
}
}
}
]
},
{
// Should not register due to exceeding max info gain bar.
// Value: 8.84346 bits
"timestamp": "6000",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "event-source"
},
"responses": [
{
"url": "https://reporter3.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination3.test",
"source_event_id": "789",
"max_event_level_reports": 5,
"event_report_windows": {
"start_time": 0,
"end_times": [3600, 7200, 10800]
},
"debug_reporting": true
}
}
}
]
},
{
// Should not match to a source.
"timestamp": "7000",
"registration_request": {
"context_origin": "https://destination3.test"
},
"responses": [
{
"url": "https://reporter3.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "1"
}
]
}
}
}
]
},
{
// Should register due to not exceeding max info gain bar.
// Value: 2.80725 bits
"timestamp": "8000",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "event-source"
},
"responses": [
{
"url": "https://reporter3.test/register-source",
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination3.test",
"source_event_id": "789",
"event_report_windows": {
"start_time": 0,
"end_times": [3600, 7200, 10800]
}
}
}
}
]
},
{
// Should result in an event-level report.
"timestamp": "9000",
"registration_request": {
"context_origin": "https://destination3.test"
},
"responses": [
{
"url": "https://reporter3.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "1"
}
]
}
}
}
]
}
]
},
"output": {
"reports": [
{
"payload": [ {
"body": {
"attribution_destination": "https://destination.test",
"limit": 11.46173,
"source_event_id": "123",
"source_site": "https://source.test"
},
"type": "source-channel-capacity-limit"
} ],
"report_time": "0",
"report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": [ {
"body": {
"attribution_destination": "https://destination.test",
"limit": 11.46173,
"source_event_id": "456",
"source_site": "https://source.test"
},
"type": "source-channel-capacity-limit"
} ],
"report_time": "1000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": [ {
"body": {
"attribution_destination": "https://destination2.test",
"limit": "4294967295",
"source_event_id": "456",
"source_site": "https://source.test"
},
"type": "source-trigger-state-cardinality-limit"
} ],
"report_time": "4000",
"report_url": "https://reporter2.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": [ {
"body": {
"attribution_destination": "https://destination3.test",
"limit": 6.5,
"source_event_id": "789",
"source_site": "https://source.test"
},
"type": "source-channel-capacity-limit"
} ],
"report_time": "6000",
"report_url": "https://reporter3.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0007154,
"scheduled_report_time": "3602",
"source_event_id": "123",
"source_type": "navigation",
"trigger_data": "3"
},
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-event-attribution",
"report_time": "3602000"
},
{
"payload": {
"attribution_destination": "https://destination3.test",
"randomized_trigger_rate": 0.0000058,
"scheduled_report_time": "3608",
"source_event_id": "789",
"source_type": "event",
"trigger_data": "1"
},
"report_url": "https://reporter3.test/.well-known/attribution-reporting/report-event-attribution",
"report_time": "3608000"
}
]
}
}