lib/zabbixapi/classes/graphs.rb in zabbixapi-4.2.0 vs lib/zabbixapi/classes/graphs.rb in zabbixapi-5.0.0.pre.alpha1
- old
+ new
@@ -8,27 +8,27 @@
end
# The id field name used for identifying specific Graph objects via Zabbix API
#
# @return [String]
- def indentify
+ def identify
'name'
end
# Get full/extended Graph data from Zabbix API
#
- # @param data [Hash] Should include object's id field name (indentify) and id value
+ # @param data [Hash] Should include object's id field name (identify) and id value
# @raise [ApiError] Error returned when there is a problem with the Zabbix API call.
# @raise [HttpError] Error raised when HTTP status from Zabbix Server response is not a 200 OK.
# @return [Hash]
def get_full_data(data)
- log "[DEBUG] Call get_full_data with parametrs: #{data.inspect}"
+ log "[DEBUG] Call get_full_data with parameters: #{data.inspect}"
@client.api_request(
method: "#{method_name}.get",
params: {
search: {
- indentify.to_sym => data[indentify.to_sym]
+ identify.to_sym => data[identify.to_sym]
},
output: 'extend'
}
)
end