Module Values.CreateCalculatedAttributeDefinitionRequestSource

Creates 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.

Sourcetype nonrec t = {
  1. domainName : Name.t;
    (*

    The unique name of the domain.

    *)
  2. calculatedAttributeName : TypeName.t;
    (*

    The unique name of the calculated attribute.

    *)
  3. displayName : DisplayName.t option;
    (*

    The display name of the calculated attribute.

    *)
  4. description : SensitiveText.t option;
    (*

    The description of the calculated attribute.

    *)
  5. attributeDetails : AttributeDetails.t;
    (*

    Mathematical expression and a list of attribute items specified in that expression.

    *)
  6. conditions : Conditions.t option;
    (*

    The conditions including range, object count, and threshold for the calculated attribute.

    *)
  7. filter : Filter.t option;
    (*

    Defines how to filter incoming objects to include part of the Calculated Attribute.

    *)
  8. statistic : Statistic.t;
    (*

    The aggregation operation to perform for the calculated attribute.

    *)
  9. useHistoricalData : OptionalBoolean.t option;
    (*

    Whether historical data ingested before the Calculated Attribute was created should be included in calculations.

    *)
  10. tags : TagMap.t option;
    (*

    The tags used to organize, track, or control access for this resource.

    *)
}
Sourceval context_ : string
Sourceval make : ?displayName:??? -> ?description:??? -> ?conditions:??? -> ?filter:??? -> ?useHistoricalData:??? -> ?tags:??? -> domainName:Name.t -> calculatedAttributeName:TypeName.t -> attributeDetails:AttributeDetails.t -> statistic:Statistic.t -> unit -> t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t