This is the official documentation of the agent_ruby Ruby agent.
agent_ruby
Percentage Charts are very similar to value charts. The range of valid values to be returned is from 0 to 100.
Using full context methods with add_chart:
add_chart
Using simplified DSL with chart:
chart
Last updated 2 months ago
@create_agent.add_chart('averageVolumeIncrease') do |_context, result_builder| result_builder.percentage(11) end
@create_agent.chart :averageVolumeIncrease do percentage 11 end