query metric from DX SAAS when on windows server
search cancel

query metric from DX SAAS when on windows server

book

Article ID: 404296

calendar_today

Updated On:

Products

DX SaaS

Issue/Introduction

Trying to use an API query to obtain metrics from DX O2. Running the command on windows server and encountering issue.

Environment

DX O2 SAAS

Cause

command syntex

Resolution

This is an example command that should work on Windows machine.


Make sure you use the token type "user" for your environment. Also run the command from same location where the query1.json (example attached) file exist.

curl -X POST "https://apmgw.dxi-na1.saas.broadcom.com/atc/metric/queryMetric" --header "Authorization: Bearer eyJ0eXi<your-token-heer>JTF3MCQ" --header "Content-Type:application/json" -d "@"query1.json"" -o "metrics.out"

Attachments

query1.json get_app