Persisting Data into Analytics Attributes

Learn about persisting data into Analytics attributes.

Mapping details:

  • Data source is a Dataset DfToPersist with columns: Id_Column, Claims_Average_Column.
  • The ID parameter is required, Id_Column is a Dataset column with entity IDs.
  • The type parameter is required, it can be a URI, a literal (\"HCP\") or a column name.
  • analyticsAttributes must contain at least one attribute value. Specified attributes should correspond to analytics attributes defined in tenant metadata. Claims_Average_Column is a column with some analytics data. Column type should correspond to the type of the AveragePerMonth attribute in tenant configuration.

Scala statement for mapping:

val demo_mapping = """{
  "id": "Id_Column",
  "type": "configuration/entityTypes/HCP",                            
  "analyticsAttributes": {               
    "Claims": [
      {
        "value": {
          "AveragePerMonth": [
            {
              "value": "Claims_Average_Column"
            }
          ]
        }
      }
    ]
  }
}"""