Home > @datadog/browser-rum > RumActionEvent
Schema of all properties of an Action event
Signature:
export type RumActionEvent = CommonProperties & ViewContainerSchema & {
readonly type: 'action';
readonly action: {
readonly type: 'custom' | 'click' | 'tap' | 'scroll' | 'swipe' | 'application_start' | 'back';
readonly id?: string;
readonly loading_time?: number;
readonly target?: {
name: string;
[k: string]: unknown;
};
readonly frustration?: {
readonly type: ('rage_click' | 'dead_click' | 'error_click' | 'rage_tap' | 'error_tap')[];
[k: string]: unknown;
};
readonly error?: {
readonly count: number;
[k: string]: unknown;
};
readonly crash?: {
readonly count: number;
[k: string]: unknown;
};
readonly long_task?: {
readonly count: number;
[k: string]: unknown;
};
readonly resource?: {
readonly count: number;
[k: string]: unknown;
};
[k: string]: unknown;
};
readonly view?: {
readonly in_foreground?: boolean;
[k: string]: unknown;
};
_dd?: {
readonly action?: {
readonly position?: {
readonly x: number;
readonly y: number;
[k: string]: unknown;
};
target?: {
readonly selector?: string;
readonly width?: number;
readonly height?: number;
[k: string]: unknown;
};
name_source?: 'custom_attribute' | 'mask_placeholder' | 'standard_attribute' | 'text_content' | 'mask_disallowed' | 'blank';
[k: string]: unknown;
};
[k: string]: unknown;
};
[k: string]: unknown;
};
References: CommonProperties