-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathQueryAggregatedSignalsProblems.rb
More file actions
31 lines (29 loc) · 1.21 KB
/
Copy pathQueryAggregatedSignalsProblems.rb
File metadata and controls
31 lines (29 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Query aggregated signals and problems returns "Successful response" response
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.query_aggregated_signals_problems".to_sym] = true
end
api_instance = DatadogAPIClient::V2::RUMInsightsAPI.new
body = DatadogAPIClient::V2::AggregatedSignalsProblemsRequest.new({
data: DatadogAPIClient::V2::AggregatedSignalsProblemsRequestData.new({
attributes: DatadogAPIClient::V2::AggregatedSignalsProblemsRequestAttributes.new({
application_id: "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b",
criteria: DatadogAPIClient::V2::AggregatedWaterfallPerformanceCriteria.new({
max: 5.0,
metric: DatadogAPIClient::V2::AggregatedWaterfallPerformanceCriteriaMetric::LARGEST_CONTENTFUL_PAINT,
min: 2.5,
}),
detection_types: [
"high_script_evaluations",
"uncompressed_resources",
],
filter: "@session.type:user",
from: 1762437564,
sample_size: 30,
to: 1762523964,
view_name: "/account/login(/:type)",
}),
type: DatadogAPIClient::V2::AggregatedSignalsProblemsRequestType::AGGREGATED_SIGNALS_PROBLEMS,
}),
})
p api_instance.query_aggregated_signals_problems(body)