validation: AnalyticsValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect.
// Send an event to Pinpoint
record({ name: eventName })
// Send an event to Pinpoint with metrics & custom attributes
record({
name: eventName,
attributes: {
'my-attribute': attributeValue
},
metrics: {
'my-metric': metricValue
}
})
Records an Analytic event to Pinpoint. Events will be buffered and periodically sent to Pinpoint.