All Products
Search
Document Center

Application Real-Time Monitoring Service:Alert metrics

Last Updated:Nov 13, 2024

This topic describes the alert metrics that the Real User Monitoring (RUM) sub-service of Application Real-Time Monitoring Service (ARMS) provides. All metric data is monitored once a minute.

Metric type

RUM metrics are classified into four categories: exception, page, resource, and jank. Each category has specific dimensions, based on which data is filtered. Common dimensions are supported by all categories.

Common dimensions

Common dimensions are supported by all metrics.

Dimension key

Dimension name

Description

appType

Application type

The application type specified by reporting and data flow. Valid values: Android, iOS, Web, and MiniApp.

appEnv

Application environment type

The environment type of the application. Valid values: default (production environment), Gray (canary release environment), and Pre (staging environment).

deviceBrand

Device brand

The brand of the device, such as Mac, iPad, vivo, or Redmi.

osType

Operating system

The operating system of the device.

osContainer

Application runtime environment or name

The runtime environment or name of the application. Sample values: Chrome applet (host application), PC (browser), and App (application name).

geoCountry

Country

The country.

geoProvince

Province

The province.

geoCity

City

The city.

ispName

ISP

The Internet service provider (ISP).

viewName

Page name

The name of the associated page.

Metrics and dimensions by category

Exception

Metrics

Metric name

Unit

Aggregation metric

Description

exception.count (Number of exceptions)

N/A

Yes

The number of exceptions. If an exception occurs multiple times within a short period of time, it is not repeatedly reported and the value is 1 in this case.

Dimensions

The following table describes the dimensions supported by exception-related metrics.

Dimension key

Dimension name

Description

exceptionName

Exception name

The name of the exception.

exceptionType

Exception type

The type of the exception. Valid values: crash (crash), custom (custom exception), and error (execution error).

exceptionSource

Exception source

The source of the exception. Sample values: Console and Event.

exceptionMessage

Exception message

The exception information.

Page

Metrics

Metric name

Unit

Aggregation metric

Description

view.first_contentful_paint (First Contentful Paint)

N/A

No

The time between navigation and when the browser first rendered text, images, non-white canvas, or Scalable Vector Graphics (SVG).

view.dom_complete (page load time)

Milliseconds

No

The time required for the Document Object Model (DOM) page and all sub-resources to be ready, when the loading was completed.

view.first_input_time (First Input Delay)

Milliseconds

No

The time from when the view was loaded until the user performed the first interaction.

view.largest_contentful_paint (Largest Contentful Paint)

Milliseconds

No

The time at which the largest DOM element within the viewport (i.e., the largest content block displayed on the screen) began to render. If the time exceeds 2.5 seconds, it indicates that the loading speed is slow.

view.cumulative_layout_shift (Cumulative Layout Shift)

Milliseconds

No

The total amount of layout shifts caused by dynamically loaded content (such as third-party ads). A value of 0 indicates no changes occurred.

view.dom_content_loaded (DOMContentLoaded time)

Milliseconds

No

The time from when the page started loading until the DOMContentLoaded event was triggered. At this point, the initial HTML document had been completely loaded and parsed, without waiting for non-render-blocking resources such as stylesheets, images, and subframes to finish loading.

view.dom_interactive (Time to Interactive)

Milliseconds

No

The time from when the page started loading until it was fully interactive.

view.load_event (Time to Fully Loaded)

Milliseconds

No

The time taken to completely load the page. This is often used as a trigger for attaching application logic.

Dimensions

N/A

Resource

Metrics

Metric name

Unit

Aggregation metric

Description

resource.dns_duration (DNS duration)

Milliseconds

No

The time taken to resolve the last requested domain name.

Formula: dns_duration = domainLookupEnd - domainLookupStart.

resource.redirect_duration (Redirection duration)

Milliseconds

No

The time taken to redirect an HTTP request.

Formula: redirect_duration = redirectEnd - redirectStart.

resource.duration (Total duration)

Milliseconds

No

The total time taken to load all resources.

Formula: duration = responseEnd - redirectStart.

resource.connection_duration (TCP connection duration)

Milliseconds

No

The time taken to establish a Transmission Control Protocol (TCP) connection with the server.

Formula: connection_duration = connectEnd - connectStart.

resource.ssl_duration (SSL duration)

Milliseconds

No

The time spent on the Transport Layer Security (TLS) handshake. The metric is unavailable if the last request is not over HTTPS.

Formula: ssl_duration = connectEnd - secureConnectionStart.

resource.first_byte_duration (Time to First Byte)

Milliseconds

No

The time from when the client sent a request to when it received the first byte of the response from the server.

Formula: first_byte_duration = responseStart - requestStart.

resource.download_duration (download duration)

Milliseconds

No

The time taken to download the response.

Formula: download_duration = responseEnd - responseStart.

resource.count (number of resources)

N/A

Yes

The total number of resources.

resource.size (resource size)

Bytes

No

The size of the resources. The value of the parameter is equal to the value of decodedBodySize.

Dimensions

The following table describes the dimensions supported by resource-related metrics.

Dimension key

Dimension name

Description

resourceName

Resource name

The path in the URL. The resource name can be matched based on rules, or actively configured by the user.

resourceType

Resource type

The type of the collected resource. Examples: CSS, JavaScript, Media, XHR, Image, and Navigation.

resourceSuccess

Resource loading status

Indicates whether the resource was loaded. Valid values:

  • 1: Yes

  • 0: No

  • -1: Unknown

resourceStatusCode

Resource status code

The status code of the resource. Sample values: 2xx, 5xx, and 4xx.

Jank

Metrics

Metric name

Unit

Aggregation metric

Description

resource.dns_duration (jank duration)

Milliseconds

No

The duration of a jank.

resource.redirect_duration (Number of janks)

N/A

Yes

The number of janks. If a jank occurs multiple times within a short period of time, it is not repeatedly reported and the value is 1 in this case.

Dimensions

The following table describes the dimensions supported by jank-related metrics.

Dimension key

Dimension name

Description

longtaskSource

Jank source

The source of the jank.

longtaskType

Jank type

The type of the jank.