1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-07-03 13:11:18 +02:00

wip: add steep and RBS

This commit is contained in:
cn
2021-01-21 12:15:35 +01:00
parent 3af42e4c20
commit 6fd26a4908
19 changed files with 271 additions and 9 deletions

View File

@ -276,7 +276,7 @@ module Dyndnsd
reporter = Metriks::Reporter::Graphite.new(host, port, options)
reporter.start
elsif config['textfile']
file = config['textfile']['file'] || '/tmp/dyndnsd-metrics.prom'
file = (config['textfile']['file'] || '/tmp/dyndnsd-metrics.prom').to_s
options = {}
options[:prefix] = config['textfile']['prefix'] if config['textfile']['prefix']
reporter = Dyndnsd::TextfileReporter.new(file, options)

View File

@ -33,6 +33,7 @@ module Dyndnsd
when 422
error_response_map[headers['X-DynDNS-Response']]
end
# TODO: possible nil response!
end
# @param status_code [Integer]
@ -46,6 +47,7 @@ module Dyndnsd
when 401
[status_code, headers, ['badauth']]
end
# TODO: possible nil response!
end
# @param changes [Array<Symbol>]

View File

@ -33,6 +33,7 @@ module Dyndnsd
when 422
error_response_map[headers['X-DynDNS-Response']]
end
# TODO: possible nil response!
end
# @param status_code [Integer]
@ -46,6 +47,7 @@ module Dyndnsd
when 401
[status_code, headers, ['Unauthorized']]
end
# TODO: possible nil response!
end
# @param changes [Array<Symbol>]

View File

@ -91,7 +91,7 @@ module Dyndnsd
end
end
# @param file [String]
# @param file [File]
# @param base_name [String]
# @param metric [Object]
# @param keys [Array<Symbol>]