Skip to content

Slate 1.1.1 does not support multiple targets #7

@aselder

Description

@aselder
slate = Slate.configure do |config|
  config.endpoint = "http://10.6.199.66:443"
end

graph = Slate::Graph.new(slate)
graph << Slate::Target.build("stats.gauges.importer.goal.30_minutes")
graph << Slate::Target.build("stats.gauges.importer.success.30_minutes")
graph.from = from_date

data = JSON.parse(graph.download(:json))

putting a 'ap' inside Faraday reveals the following request object:

{
:body => nil,
:path => "http://10.6.199.66:443/render",
:method => :get,
:headers => {
"User-Agent" => "Faraday v0.8.9"
},
:params => {
"target" => "stats.gauges.importer.success.30_minutes",
"format" => "json"
},
:options => {
:timeout => 10,
:proxy => nil
}
}

Faraday is only taking the last value of the target param.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions