-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b97fbb6
commit 8f59bbe
Showing
8 changed files
with
494 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
const tests = [ | ||
{ | ||
id: 1, | ||
name: "EXAMPLE_test_1", | ||
config: { | ||
createdAt: "2022-03-26T14:58:23.000Z", | ||
version: 0, | ||
snapshotId: 506, | ||
configVer: 8978, | ||
testConfig: { | ||
reporting: { | ||
metric_model_id: "abra_app", | ||
}, | ||
config: [ | ||
{ | ||
active: true, | ||
integrations: ["ios-core-prd", "ios-core-stg"], | ||
allocate_by: { | ||
parameter: "abtest_by_agent_id", | ||
variants: [ | ||
{ | ||
variant: "0_control", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "1_offer", | ||
weight: "100%", | ||
}, | ||
], | ||
abtest_partitioning_key: "APP_2021H1_PLO", | ||
}, | ||
targeting: true, | ||
targeting_criteria: { | ||
mobile_interface_idiom: { | ||
is: "phone", | ||
}, | ||
}, | ||
}, | ||
{ | ||
active: true, | ||
integrations: ["android-core-prd", "android-core-stg"], | ||
allocate_by: { | ||
parameter: "abtest_by_agent_id", | ||
variants: [ | ||
{ | ||
variant: "1_offer", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "0_control", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "1_offer", | ||
weight: "100%", | ||
}, | ||
], | ||
abtest_partitioning_key: "APP_2021H1_PLO", | ||
}, | ||
targeting: true, | ||
targeting_criteria: { | ||
smallest_width: { | ||
less_than: 600, | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
id: 2, | ||
name: "EXAMPLE_test_2", | ||
config: { | ||
createdAt: "2022-03-26T14:58:23.000Z", | ||
version: 0, | ||
snapshotId: 506, | ||
configVer: 8978, | ||
testConfig: { | ||
reporting: { | ||
metric_model_id: "abra_app", | ||
}, | ||
config: [ | ||
{ | ||
active: true, | ||
integrations: ["ios-core-prd", "ios-core-stg"], | ||
allocate_by: { | ||
parameter: "abtest_by_agent_id", | ||
variants: [ | ||
{ | ||
variant: "0_control", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "1_offer", | ||
weight: "100%", | ||
}, | ||
], | ||
abtest_partitioning_key: "APP_2021H1_PLO", | ||
}, | ||
targeting: true, | ||
targeting_criteria: { | ||
mobile_interface_idiom: { | ||
is: "phone", | ||
}, | ||
}, | ||
}, | ||
{ | ||
active: true, | ||
integrations: ["android-core-prd", "android-core-stg"], | ||
allocate_by: { | ||
parameter: "abtest_by_agent_id", | ||
variants: [ | ||
{ | ||
variant: "1_offer", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "0_control", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "1_offer", | ||
weight: "100%", | ||
}, | ||
], | ||
abtest_partitioning_key: "APP_2021H1_PLO", | ||
}, | ||
targeting: true, | ||
targeting_criteria: { | ||
smallest_width: { | ||
less_than: 600, | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
id: 3, | ||
name: "EXAMPLE_test_3", | ||
config: { | ||
createdAt: "2022-03-26T14:58:23.000Z", | ||
version: 0, | ||
snapshotId: 506, | ||
configVer: 8978, | ||
testConfig: { | ||
reporting: { | ||
metric_model_id: "abra_app", | ||
}, | ||
config: [ | ||
{ | ||
active: true, | ||
integrations: ["ios-core-prd", "ios-core-stg"], | ||
allocate_by: { | ||
parameter: "abtest_by_agent_id", | ||
variants: [ | ||
{ | ||
variant: "0_control", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "1_offer", | ||
weight: "100%", | ||
}, | ||
], | ||
abtest_partitioning_key: "APP_2021H1_PLO", | ||
}, | ||
targeting: true, | ||
targeting_criteria: { | ||
mobile_interface_idiom: { | ||
is: "phone", | ||
}, | ||
}, | ||
}, | ||
{ | ||
active: true, | ||
integrations: ["android-core-prd", "android-core-stg"], | ||
allocate_by: { | ||
parameter: "abtest_by_agent_id", | ||
variants: [ | ||
{ | ||
variant: "1_offer", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "0_control", | ||
weight: "0%", | ||
}, | ||
{ | ||
variant: "1_offer", | ||
weight: "100%", | ||
}, | ||
], | ||
abtest_partitioning_key: "APP_2021H1_PLO", | ||
}, | ||
targeting: true, | ||
targeting_criteria: { | ||
smallest_width: { | ||
less_than: 600, | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
]; | ||
|
||
export default function handler(req, res) { | ||
// Get data from your database | ||
res.status(200).json(tests); | ||
} |
Oops, something went wrong.