{"type":"api","title":"Generate Service Metrics for CDGID(Client ID)","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/e05c97f6-c05c-3a2b-97ed-ca9f414d72b7","info":{"title":"Crosswork Data Gateway Troubleshooting API","description":"APIs to support CDG 3.0.0 troubleshooting","version":"7.1.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/cdg_troubleshooting_api_overview.md"}},"swagger":"2.0","basePath":"/crosswork/dg-manager/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer Auth Token"}}},"spec":{"summary":"Generate Service Metrics for CDGID(Client ID)","operationId":"SubmitMetricsCommand","deprecated":false,"produces":["application/json"],"consumes":["application/json "],"parameters":[{"name":"Body","in":"body","required":true,"description":"Request payload to generate service metrics","schema":{"title":"MetricsCommandPayload","example":{"id":"8006","commandName":"SERVICE_METRICS","clientId":{"uuid":"1358e717-78de-47c0-81fc-efb5bddb5e5c"},"args":[{"key":"passphrase","value":{"str":"test1234"}}]},"type":"object","properties":{"id":{"type":"string"},"commandName":{"type":"string"},"clientId":{"title":"ClientId","example":{"uuid":"d58de587-5da2-4a62-b010-32395acc8dbc"},"type":"object","properties":{"uuid":{"type":"string"}},"required":["uuid"],"$$ref":"#/definitions/ClientId"},"args":{"type":"array","items":{"title":"Arg","example":{"key":"passphrase","value":{"str":"test1234"}},"type":"object","properties":{"key":{"type":"string"},"value":{"title":"Value","example":{"str":"test1234"},"type":"object","properties":{"str":{"type":"string"}},"required":["str"],"$$ref":"#/definitions/Value"}},"required":["key","value"],"$$ref":"#/definitions/Arg"}}},"required":["id","commandName","clientId","args"],"$$ref":"#/definitions/SubmitMetricsCommand"}}],"responses":{"200":{"description":"OK. The service metrics command was submitted and successfully executed on the CDG.","schema":{"title":"SubmitMetricsCommandResponse","example":{"clientId":{"uuid":"f3395806-a44f-45fa-9760-01d35425d002"},"responseId":"34398f4a-40ea-4498-b64a-6583433fc4db","commandName":"SERVICE_METRICS","value":{"str":"SERVICE_METRICS send to client with UUID f3395806-a44f-45fa-9760-01d35425d002"},"status":"STARTED"},"type":"object","properties":{"clientId":{"type":"object"},"uuid":{"type":"string"},"responseId":{"type":"string"},"commandName":{"type":"string"},"value":{"type":"object"},"str":{"type":"string"},"status":{"type":"string"}},"$$ref":"#/definitions/SubmitMetricsCommandResponse"}},"400":{"description":"Bad Request. The request is malformed in some way and the server cannot process it.","headers":{}}},"__originalOperationId":"SubmitMetricsCommand","security":[{"bearerAuth":[]}],"method":"post","path":"/command/metrics"}}