{"type":"api","title":"Get PDU stats","meta":{"id":"/apps/pubhub/media/nexus-dashboard-api-v1/86cc2501c92a7370499e3d537496e5c722396afb/65a171d6-461c-341f-833b-8723fe3ac65c","info":{"contact":{"name":"API Support","url":"https://devnetapps.cisco.com/docs/nexus-dashboard/api-v1/developer-support/"},"description":"Nexus Dashboard Insights API Documentation","title":"Nexus Dashboard Insights API","version":"6.8.0"},"tags":[{"name":"Cloud"},{"name":"Anomaly Threshold settings"},{"name":"Cluster level settings"},{"name":"Config - NI"},{"name":"NI Systems Settings"},{"name":"Site - Alert Rules"},{"name":"Site - Collection"},{"name":"Site - Compliance Requirements"},{"name":"Site - Configuration Import Export"},{"name":"Site - Entity Settings, Offline / Epoch-Delta Jobs & Site Management"},{"name":"Site - Export Kafka Fast Settings"},{"name":"Site - Export Nas Settings"},{"name":"Site - Export Settings"},{"name":"Site - FileUpload"},{"name":"Site - Flow Rules"},{"name":"Site - Integrations"},{"name":"Site - Offline Data Collection"},{"name":"Site - PDU integration"},{"name":"Site - Pre-Change Analysis"},{"name":"Site - Purge Epoch & Anomaly DB"},{"name":"Site - Syslog Export Settings"},{"name":"Site Group"},{"name":"Site Groups"},{"name":"Traffic Analytics Rules settings"},{"name":"User Settings"}],"x-parser-conf":{"overview":{"markdownPath":"reference/overview-legacy-insights.md"},"labelConfig":{"endpoint":{"field":"operationId","format":"startCase"}}},"openapi":"3.0.3","servers":[{"url":"/"}]},"spec":{"description":"Get detailed stats for a given PDU","parameters":[{"description":"Limit the records based on given statName","in":"query","name":"statName","required":true,"schema":{"enum":["pduPhasePower","pduBranchPower","pduOutletPower"],"example":"pduPhasePower","type":"string"}},{"description":"Name of the Site - limit the records pertaining to the site","example":"swmp3","in":"query","name":"siteName","required":true,"schema":{"type":"string"}},{"description":"Name of the Collector - limit the records pertaining to the collector","example":"swmp3","in":"query","name":"collectorName","required":true,"schema":{"type":"string"}},{"description":"Lucene format filter - Filter the response based on this filter field","in":"query","name":"filter","required":true,"schema":{"example":"serial:IN229N6026","type":"string"}},{"description":"Start date, to skip records generated earlier to this date","in":"query","name":"startDate","required":false,"schema":{"default":"now-1h","example":"2021-03-29T08:03:55+05:30","type":"string"}},{"description":"End date, to collect the records generated till specified date","in":"query","name":"endDate","required":false,"schema":{"default":"now","example":"2021-03-29T08:18:55+05:30","type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"entries":[{"collectorName":"demo7","dn":"","fabricName":"DC-WEST","nodeName":"Panduit PDU1","outletCount":"11","protocolName":"sustainability","recordType":"pduTotalPower","serial":"IN229N6026","siteName":"DC-WEST","sourceName":"fabric-DC-WEST/node-IN229N6026","totalPower":846,"ts":"2023-09-19T16:27:23.000Z","vendor":"panduit"}]},"schema":{"properties":{"entries":{"items":{"properties":{"collectionStatus":{"type":"string"},"collectorName":{"type":"string"},"fabricName":{"type":"string"},"outletCount":{"type":"string"},"serial":{"type":"string"},"totalPower":{"type":"number"},"vendor":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"}}},"description":"Records list","headers":{"date":{"schema":{"type":"string"}}}}},"summary":"Get PDU stats","tags":["Integrations"],"method":"get","path":"/sedgeapi/v1/cisco-nir/api/api/telemetry/pdu/stats"}}