Skip to content

Doesn't parse multiple params with the same key #169

@ideasman69

Description

@ideasman69

Hi there,

The API we're hitting via the JSON API allows/requires multiple parameters with the same key. To request a single metric from the api, the URL is formed like this:
https://host/api/metrics?id=D6B1359061A2EAEDDC287872174700FDB&id_lookup=by_device_id&metricFilter=QOS_MEMORY_PHYSICAL_PERC&metric_type_lookup=by_metric_name&period=latest&showSamples=true

To obtain two metrics from the same host (note the dual metricFilter params):
https://host/api/metrics?id=D6B1359061A2EAEDDC287872174700FDB&id_lookup=by_device_id&metricFilter=QOS_MEMORY_PHYSICAL_PERC&metricFilter=QOS_MEMORY_PHYSICAL&metric_type_lookup=by_metric_name&period=latest&showSamples=true

However, when configuring the metricFilter parms in the dashboard editor:
image

Only the second one is passed to the API:
image

Just wondering if it's a bug or if there's a workaround I'm not aware of?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions