Optional requestFactory: RUMApiRequestFactoryOptional responseProcessor: RUMApiResponseProcessorPrivate configurationPrivate requestPrivate responseThe request object
Optional options: ConfigurationCreate a RUM application in your organization.
The application ID is generated by Datadog and returned in data.attributes.application_id. A client token is created with the application and returned in data.attributes.client_token. Use both to initialize the RUM SDK.
The application is created with the default retention filters unless create_default_retention_filters is false.
The request object
Optional options: ConfigurationDelete an existing RUM application in your organization.
The application is disabled and its client token is revoked, so the RUM SDK stops sending events for it. The application cannot be re-enabled through the API, and its application ID cannot be reused.
Deleting an application with Product Analytics enabled requires the product_analytics_apps_write permission.
The request object
Optional options: ConfigurationDeletes source maps matching the specified filter criteria. Supports dry-run mode to preview which source maps would be deleted without performing the actual deletion.
The request object
Optional options: ConfigurationGet the RUM application with the given ID in your organization.
Unlike GetRUMApplications, the response includes the client_token used to initialize the RUM SDK.
The request object
Optional options: ConfigurationList the enabled RUM applications of your organization. Applications deleted with DeleteRUMApplication are not returned.
The response is not paginated and does not include the client_token. Use GetRUMApplication to retrieve it.
Use the application_id of an item as the id path parameter of the other application operations, and as @application.id in RUM event queries.
The request object
Optional options: ConfigurationReturns the repository URL and commit SHA associated with a debug ID or a given service and version.
Provide either debug_id, or both service and version. When debug_id is set, it takes precedence.
The request object
Optional options: ConfigurationRetrieves the content of a specific JavaScript source map file. Provide either
debug_id with a UUID, or all three of filename, service, and version.
When debug_id is provided, filename, service, and version are not required
and are ignored.
Examples: the following commands use the US1 API host. Replace the host
with the API host for your site, and the filename, service, version, and
debug ID with values from your organization. Use --get so curl sends the
parameters in the query string.
1. Retrieve a source map by debug ID
Provide debug_id with a UUID. No filename, service, or version is required.
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "debug_id=00000000-0000-4000-8000-000000000001"
2. Retrieve a source map by service and version
Provide filename together with service and version.
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "filename=js/bundle.min.js.map" \
--data-urlencode "service=my-web-service" \
--data-urlencode "version=1.0.0"
The request object
Optional options: ConfigurationReturns the RUM events that match a RUM search query within a time range. Use this endpoint to see your latest RUM events with a simple query. For long filters, use SearchRUMEvents. To compute counts, percentiles, or timeseries, use AggregateRUMEvents.
The query follows the RUM search syntax. Without filter[from] and filter[to], the endpoint searches the last 15 minutes.
Results are paginated: page[limit] is at most 1000 (default 10). When more results are available, the response contains meta.page.after and links.next. Request links.next, or send meta.page.after as page[cursor] with the same other parameters, and repeat until they are absent.
The request object
Optional options: ConfigurationProvide a paginated version of listRUMEvents returning a generator with all the items.
Optional options: ConfigurationRetrieves a paginated list of source maps. Send filters as query parameters,
not in a JSON request body. mapkind defaults to js.
For JavaScript source maps, choose one of the three request shapes below.
Examples: the following commands use the US1 API host. Replace the host with
the API host for your site, and the service, version, debug ID, and cursor with
values from your organization. Use --get so curl sends the filters in the query
string; -X GET with --data-urlencode sends them in the request body instead.
1. List by service and version
Provide both filter[service] and filter[version] to search source maps
indexed by service and version. Omit search_by.
Pagination: prefer cursor pagination. Omit page[after] and page[number]
on the first request. To get the next page, pass meta.page.next_cursor as
page[after], keeping the same filters. Continue until
meta.page.has_more_results is false. Do not decode or modify the cursor.
Legacy page-number pagination is also supported, starting at page[number]=1.
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps/list" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "mapkind=js" \
--data-urlencode "filter[service]=my-web-service" \
--data-urlencode "filter[version]=1.0.0" \
--data-urlencode "page[size]=10"
2. Find a specific JavaScript debug ID
Provide filter[debug_id] with a UUID. Service and version filters are not
required. Omit search_by.
Pagination: the lookup returns at most one result, so no pagination is
needed. page[after] is not supported.
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps/list" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "mapkind=js" \
--data-urlencode "filter[debug_id]=00000000-0000-4000-8000-000000000001"
3. Browse source maps indexed by debug ID
Set search_by=debug_id without specifying a debug ID. Do not send service,
version, or filename filters in this mode.
Pagination: this mode requires cursor pagination; page[number] is not
supported. Omit page[after] on the first request. To get the next page, pass
meta.page.next_cursor as page[after], keeping the same search mode and
filters. Continue until meta.page.has_more_results is false. Do not decode
or modify the cursor.
First page:
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps/list" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "mapkind=js" \
--data-urlencode "search_by=debug_id" \
--data-urlencode "page[size]=10"
Next page:
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps/list" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "mapkind=js" \
--data-urlencode "search_by=debug_id" \
--data-urlencode "page[size]=10" \
--data-urlencode "page[after]=<meta.page.next_cursor>"
For other map kinds, use page[number], starting at 1.
The request object
Optional options: ConfigurationRestores previously deleted source maps matching the specified filter criteria. Supports dry-run mode to preview which source maps would be restored without performing the actual restoration.
The request object
Optional options: ConfigurationReturns the RUM events that match a RUM search query within a time range, as a list of individual events. Use this endpoint when the filter is too long for a query string, or to set options. To compute counts, percentiles, or timeseries instead of reading events, use AggregateRUMEvents.
The query follows the RUM search syntax. filter.from and filter.to accept date math (now-15m), ISO 8601 dates, and timestamps in milliseconds.
Results are paginated: page.limit is at most 1000 (default 10). When more results are available, the response contains meta.page.after. Send it as page.cursor, with the same filter and sort, to get the next page, and repeat until meta.page.after is absent.
The request object
Optional options: ConfigurationProvide a paginated version of searchRUMEvents returning a generator with all the items.
Optional options: ConfigurationUpdate the RUM application with the given ID in your organization.
This is a partial update: only the attributes present in the request are changed. data.id must match the id path parameter.
The request object
Optional options: ConfigurationGenerated using TypeDoc
Aggregate RUM events into buckets of computed metrics and timeseries. Use this endpoint for counts, percentiles, top-N breakdowns, and timeseries. To read individual events, use
SearchRUMEventsorListRUMEvents.filterselects the events with the RUM search syntax and a time range (fromandtoaccept date math such asnow-15m, ISO 8601 dates, and timestamps in milliseconds). Eachcomputerule produces one value (type: total) or one list of time points (type: timeseries) per bucket, keyedc0,c1, and so on, in the response. Eachgroup_byrule splits the events into buckets by a facet, returned inby. Usehistogramon a numeric facet to bucket it by ranges.