Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journey AI Fatigue and Score schemas #492

Merged
merged 11 commits into from
Sep 14, 2018
43 changes: 43 additions & 0 deletions extensions/adobe/experience/campaign/journeyaifatigue.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/experience/campaign/journeyaifatigue",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Fatigue Score and Level",
"type": "object",
"description": "Fatigue score and fatigue level from Journey AI",
"definitions": {
"journeyaifatigue": {
"properties": {
"xdm:fatigueScore": {
"title": "Fatigue Score",
"description": "Fatigue score for the profile",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1
},
"xdm:fatigueLevel": {
"title": "Fatigue Level",
"description":
"Classification of profile into different buckets, based on fatigue score",
"type": "string",
"enum": ["low", "medium", "high"],
"meta:enum": {
"low": "Low",
"medium": "Medium",
"high": "High"
}
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/journeyaifatigue"
}
]
}
51 changes: 51 additions & 0 deletions extensions/adobe/experience/campaign/journeyaiscores.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/experience/campaign/journeyaiscores",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Journey AI Scores",
"type": "object",
"description": "Journey AI scores for one channel",
"definitions": {
"journeyaiscores": {
"properties": {
"xdm:fatigue": {
"title": "Fatigue",
"description": "Fatigue score for the profile",
"$ref": "https://ns.adobe.com/experience/campaign/journeyaifatigue"
},
"xdm:openScores": {
"title": "Open Scores by send hour for week",
"description":
"Probability/score to open a message, assuming we send a message at that hour",
"type": "array",
"minItems": 168,
"maxItems": 168,
"items": {
"type": "number"
}
},
"xdm:clickScores": {
"title": "Click Scores by send hour for week",
"description":
"Probability/score to click on a link in the message, assuming we send a message at that hour",
"type": "array",
"minItems": 168,
"maxItems": 168,
"items": {
"type": "number"
}
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/journeyaiscores"
}
]
}
31 changes: 31 additions & 0 deletions extensions/adobe/experience/campaign/profile.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/experience/campaign/profile",
"title": "Adobe Campaign Profile Extension",
"type": "object",
"meta:extends": ["https://ns.adobe.com/xdm/context/profile"],
"description": "Adobe Campaign extension for Profile",
"definitions": {
"profile": {
"properties": {
"https://ns.adobe.com/experience/campaign/journeyai/email": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than putting this in a namespace, it would probably be better to either create a journeyAI sub-object, or perhaps just call this field emailJourneyAI or similar.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kstreeter I will create a sub-object and add email field into it.

"title": "Journey AI scores for Email Channel",
"$ref": "https://ns.adobe.com/experience/campaign/journeyaiscores",
"description":
"Journey AI open, click and fatigue scores for email channel"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/profile"
}
]
}