Worklight analytics, native Java API - what is the additionalMetadata parameter?

86 Views Asked by At

WL 6.2.0

The documentation for the Java client-side Analytics API gives:

   public static void log(java.lang.String message,
                           org.json.JSONObject additionalMetadata)

but does not explain the additionalMetadata. What values can be placed here? How would they surface in the Log search?

1

There are 1 best solutions below

1
On

See answer to this SO question: Worklight analytics payload

The documentation describes passing a metadata object, but in Worklight 6.2, this object does not result in searchable text on the Analytics console. The data is preserved, but not searchable. This should be fixed, according to the answer to the linked question.