Skip to content

Latest commit

 

History

History
305 lines (188 loc) · 8.35 KB

option-detail.schema.md

File metadata and controls

305 lines (188 loc) · 8.35 KB

Decision Option Details Schema

https://ns.adobe.com/experience/decisioning/option-detail

Detail about the entity that represents one of the possible selections or choices for a decision. When referenced in propositions, options are enriched with the observed metrics that applied to them, i.e. they are measurable.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Stable No Forbidden Permitted adobe/experience/decisioning/option-detail.schema.json

Schema Hierarchy

  • Decision Option Details https://ns.adobe.com/experience/decisioning/option-detail

Decision Option Details Examples

{
  "xdm:id": "xcore:personalized-offer:e91ee850a0bb7d9",
  "xdm:name": "Introduction to machine learning",
  "xdm:characteristics": {
    "duration": "14",
    "level": "intermediate",
    "format": "Syllable"
  },
  "xdm:score": 83,
  "xdm:propositionsTotal": {
    "xdm:value": 4948
  },
  "xdm:propositionsProfile": {
    "xdm:value": 2
  }
}
{
  "xdm:id": "xcore:personalized-offer:e526a1503bf29e9",
  "xdm:name": "Introduction to machine learning",
  "xdm:characteristics": {
    "duration": "30",
    "level": "intermediate",
    "format": "Syllable"
  },
  "xdm:score": 90,
  "xdm:optionContent": {
    "@type": "https://ns.adobe.com/experience/offer-management/content-component-html-template",
    "dc:format": "text/x-handlebars-template+html",
    "dc:language": [
      "en"
    ],
    "repo:id": "urn:aaid:sc:US:6dc33479-13ca-4b19-b25d-c805eff8a69e",
    "xdm:content": "text"
  },
  "xdm:propositionsTotal": {
    "xdm:value": 5000
  },
  "xdm:propositionsProfile": {
    "xdm:value": 3
  }
}
{
  "xdm:id": "xcore:personalized-offer:e526a1503bf29f8",
  "xdm:name": "Introduction to machine learning",
  "xdm:characteristics": {
    "duration": "30",
    "level": "intermediate",
    "format": "Syllable"
  },
  "xdm:score": 90,
  "xdm:optionContent": {
    "@type": "https://ns.adobe.com/experience/offer-management/content-component-imagelink",
    "dc:format": "image/jpeg",
    "dc:language": [
      "en"
    ],
    "repo:id": "urn:aaid:sc:US:6dc33479-13ca-4b19-b25d-c805eff8a69e",
    "xdm:content": "text",
    "xdm:deliveryURL": "https://cdn.adobe.io/content/projectx/fragment/prod/static/1232324wd32.jpeg",
    "xdm:linkURL": "https://cdn.adobe.io/tracker?code=23432&redirect=/content/projectx/fragment/prod/static/1232324wd32.jpeg"
  },
  "xdm:propositionsTotal": {
    "xdm:value": 4000
  },
  "xdm:propositionsProfile": {
    "xdm:value": 3
  }
}

Decision Option Details Properties

Property Type Required Defined by
https://ns.adobe.com/experience/decisioning/propositionsProfile Measure Optional Decision Option Details (this schema)
https://ns.adobe.com/experience/decisioning/propositionsTotal Measure Optional Decision Option Details (this schema)
repo:etag string Optional Decision Option Details (this schema)
xdm:characteristics object Optional Decision Option Details (this schema)
xdm:id string Required Decision Option Details (this schema)
xdm:name string Optional Decision Option Details (this schema)
xdm:optionContent Content Component Details Optional Decision Option Details (this schema)
xdm:score number Optional Decision Option Details (this schema)
xdm:tags string[] Optional Decision Option Details (this schema)
* any Additional this schema allows additional properties

The number of times a particular option was proposed so far to a particular profile. When this metric is present the record or time-series entity must include an IdentityMap the profile.

https://ns.adobe.com/experience/decisioning/propositionsProfile

  • is optional
  • type: Measure
  • defined in this schema
  • Measurehttps://ns.adobe.com/xdm/data/measure

The total number a particular option was proposed so far across all profiles.

https://ns.adobe.com/experience/decisioning/propositionsTotal

  • is optional
  • type: Measure
  • defined in this schema
  • Measurehttps://ns.adobe.com/xdm/data/measure

repo:etag

Decision Option ETag

The revision that the decision option object was at when the snapshot was taken.

repo:etag

  • is optional
  • type: string
  • defined in this schema

repo:etag Type

string

xdm:characteristics

Decision Option Characteristics

Additional properties or attributes belonging to this particular decision option. Different instances can have different characteristics (keys in the map). The characteristics are name value pairs used to distinguish one decision option from others. Characteristics are used as values in content that represents this decision option and as features to analyze and optimize the performance of an option. When every instance has the same attribute or property, that aspect should be modeled as an extension schema that derives from decision option detail.

xdm:characteristics

  • is optional
  • type: object
  • defined in this schema

xdm:characteristics Type

object with following properties:

Property Type Required

xdm:id

Decision Option Identifier

A unique identifier for the decision option.

xdm:id

  • is required
  • type: string
  • defined in this schema

xdm:id Type

string

  • format: uri-reference – URI Reference (according to RFC3986)

xdm:name

Decision Option Name

Option name. The name is displayed in various user interfaces.

xdm:name

  • is optional
  • type: string
  • defined in this schema

xdm:name Type

string

xdm:optionContent

Option Content

Additional properties or attributes related to offer content

xdm:optionContent

  • is optional
  • type: Content Component Details
  • defined in this schema

xdm:optionContent Type

xdm:score

Decision Option Score

Calcuated value for that option in the context of a single scope. The value is only available if a score was calculated.

xdm:score

  • is optional
  • type: number
  • defined in this schema

xdm:score Type

number

  • minimum value: 0

xdm:tags

Decision Option Tags

The set of tags associated with this option. The tags are used indicate catetoegies (dimensions) that the option belonged to at the time the proposition was made.

xdm:tags

  • is optional

  • type: string[]

  • defined in this schema

xdm:tags Type

Array type: string[]

All items must be of the type: string

  • format: uri-reference – URI Reference (according to RFC3986)

An identifier of a Tag object. The value is the @id of the Tag that is referenced. See Tag schema https://ns.adobe.com/experience/decisioning/tag