Values.CreateCalculatedAttributeDefinitionRequestSourceCreates a new calculated attribute definition. After creation, new object data ingested into Customer Profiles will be included in the calculated attribute, which can be retrieved for a profile using the GetCalculatedAttributeForProfile API. Defining a calculated attribute makes it available for all profiles within a domain. Each calculated attribute can only reference one ObjectType and at most, two fields from that ObjectType.
type nonrec t = {domainName : Name.t;The unique name of the domain.
*)calculatedAttributeName : TypeName.t;The unique name of the calculated attribute.
*)displayName : DisplayName.t option;The display name of the calculated attribute.
*)description : SensitiveText.t option;The description of the calculated attribute.
*)attributeDetails : AttributeDetails.t;Mathematical expression and a list of attribute items specified in that expression.
*)conditions : Conditions.t option;The conditions including range, object count, and threshold for the calculated attribute.
*)filter : Filter.t option;Defines how to filter incoming objects to include part of the Calculated Attribute.
*)statistic : Statistic.t;The aggregation operation to perform for the calculated attribute.
*)useHistoricalData : OptionalBoolean.t option;Whether historical data ingested before the Calculated Attribute was created should be included in calculations.
*)}val make :
?displayName:??? ->
?description:??? ->
?conditions:??? ->
?filter:??? ->
?useHistoricalData:??? ->
?tags:??? ->
domainName:Name.t ->
calculatedAttributeName:TypeName.t ->
attributeDetails:AttributeDetails.t ->
statistic:Statistic.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of OptionalBoolean.t
| `Enum of string
| `Map of
([> `String of TagKey.t ] * [> `String of TagValue.t ]) list
| `String of Name.t
| `Structure of
(string
* [> `Enum of string
| `Integer of ObjectCount.t
| `List of
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Map of
([> `String of AttributeName.t ]
* [> `Structure of
(string
* [> `Enum of string
| `List of
[> `String of
String1To255.t ]
list ])
list ])
list ])
list ]
list
| `String of AttributeName.t ])
list ]
list
| `String of String1To255.t
| `Structure of
(string
* [> `Enum of string
| `Integer of Value.t
| `String of String1To255.t
| `Structure of
(string * [> `Integer of ValueRangeStart.t ]) list ])
list ])
list ])
list ]