Module: Controls::Client::Trends
- Included in:
- Controls::Client
- Defined in:
- lib/controls/client/trends.rb
Overview
A module to encapsulate API methods related to trends
Trending Methods collapse
-
#configuration_trends(configuration) ⇒ Array<Hash>
(also: #trends_by_configuration)
A list of hashes representing trending data over time.
-
#threat_trends(threat) ⇒ Array<Hash>
(also: #trends_by_threat)
A list of hashes representing trending data over time.
-
#threat_vector_trends(threat_vector) ⇒ Array<Hash>
(also: #trends_by_threat_vector)
A list of hashes representing trending data over time.
Instance Method Details
#configuration_trends(configuration) ⇒ Array<Hash> Also known as: trends_by_configuration
Returns a list of hashes representing trending data over time.
13 14 15 |
# File 'lib/controls/client/trends.rb', line 13 def configuration_trends(configuration) get "/configurations/#{configuration}/trend" end |
#threat_trends(threat) ⇒ Array<Hash> Also known as: trends_by_threat
Returns a list of hashes representing trending data over time.
22 23 24 |
# File 'lib/controls/client/trends.rb', line 22 def threat_trends(threat) get "/threats/#{threat}/trend" end |
#threat_vector_trends(threat_vector) ⇒ Array<Hash> Also known as: trends_by_threat_vector
Returns a list of hashes representing trending data over time.
31 32 33 |
# File 'lib/controls/client/trends.rb', line 31 def threat_vector_trends(threat_vector) get "/threat_vectors/#{threat_vector}/trend" end |