Class: Google::Apis::ToolresultsV1beta3::PerfMetricsSummary

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/toolresults_v1beta3/classes.rb,
generated/google/apis/toolresults_v1beta3/representations.rb,
generated/google/apis/toolresults_v1beta3/representations.rb

Overview

A summary of perf metrics collected and performance environment info

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PerfMetricsSummary

Returns a new instance of PerfMetricsSummary



1381
1382
1383
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1381

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#app_start_timeGoogle::Apis::ToolresultsV1beta3::AppStartTime

Corresponds to the JSON property appStartTime



1342
1343
1344
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1342

def app_start_time
  @app_start_time
end

#execution_idString

A tool results execution ID. Corresponds to the JSON property executionId

Returns:

  • (String)


1347
1348
1349
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1347

def execution_id
  @execution_id
end

#graphics_statsGoogle::Apis::ToolresultsV1beta3::GraphicsStats

Graphics statistics for the App. The information is collected from 'adb shell dumpsys graphicsstats'. For more info see: https://developer.android.com/ training/testing/performance.html Statistics will only be present for API 23+. Corresponds to the JSON property graphicsStats



1354
1355
1356
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1354

def graphics_stats
  @graphics_stats
end

#history_idString

A tool results history ID. Corresponds to the JSON property historyId

Returns:

  • (String)


1359
1360
1361
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1359

def history_id
  @history_id
end

#perf_environmentGoogle::Apis::ToolresultsV1beta3::PerfEnvironment

Encapsulates performance environment info Corresponds to the JSON property perfEnvironment



1364
1365
1366
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1364

def perf_environment
  @perf_environment
end

#perf_metricsArray<String>

Set of resource collected Corresponds to the JSON property perfMetrics

Returns:

  • (Array<String>)


1369
1370
1371
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1369

def perf_metrics
  @perf_metrics
end

#project_idString

The cloud project Corresponds to the JSON property projectId

Returns:

  • (String)


1374
1375
1376
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1374

def project_id
  @project_id
end

#step_idString

A tool results step ID. Corresponds to the JSON property stepId

Returns:

  • (String)


1379
1380
1381
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1379

def step_id
  @step_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1386

def update!(**args)
  @app_start_time = args[:app_start_time] if args.key?(:app_start_time)
  @execution_id = args[:execution_id] if args.key?(:execution_id)
  @graphics_stats = args[:graphics_stats] if args.key?(:graphics_stats)
  @history_id = args[:history_id] if args.key?(:history_id)
  @perf_environment = args[:perf_environment] if args.key?(:perf_environment)
  @perf_metrics = args[:perf_metrics] if args.key?(:perf_metrics)
  @project_id = args[:project_id] if args.key?(:project_id)
  @step_id = args[:step_id] if args.key?(:step_id)
end