{"id":5251,"date":"2018-10-17T15:26:56","date_gmt":"2018-10-17T19:26:56","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=5251"},"modified":"2018-10-17T15:26:56","modified_gmt":"2018-10-17T19:26:56","slug":"monitor-performance-api-metrics-endpoint","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/","title":{"rendered":"Monitor Performance with New API Metrics Endpoint"},"content":{"rendered":"<p>The new API metrics endpoint gives you full access to performance data within your RedLine13 test. Instead of downloading the stats data you can query for a single metric or multiple metrics with your test. You can use this data to build your own graphs or trending information. We built this because of a customer request so that they could create their own dashboard.<\/p>\n<p>See the API <a href=\"https:\/\/www.redline13.com\/ApiDoc\">documentation.<\/a>\u00a0And for parameters and format, see the new <a href=\"https:\/\/www.redline13.com\/ApiDoc\/Metrics\/Get\">endpoint<\/a>. This new endpoint is included with the enterprise license.<\/p>\n<p>You can test the endpoint online with our swagger deployment\u00a0<a href=\"https:\/\/www.redline13.com\/ApiDoc\/swagger#!\/Metrics\/get_Api_Metrics\">here<\/a>.<\/p>\n<p>Here is an example with CURL<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">curl -X GET --header 'Accept: application\/json' --header 'X-Redline-Auth: YOUR_API_KEY' 'https:\/\/www.redline13.com\/Api\/Metrics?loadTestId=69272&amp;filter=skout'\n<\/pre>\n<p>And the results will be something similar to<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">[\n  {\n    \"hash\": \"222889fabebe34166b71e37c9c8dee26dc85d10a\",\n    \"label\": \"www.skout.com\",\n    \"data\": {\n      \"overview\": {\n        \"avgLoadTime\": \"1.3397111111111137\",\n        \"count\": \"50\",\n        \"downloadSize\": \"950\",\n        \"errAvgLoadTime\": \"0\",\n        \"errCount\": \"0\",\n        \"errDownloadSize\": \"0\",\n        \"range\": 3\n      },\n      \"labels\": [\n        0,\n        1,\n        2,\n        3\n      ],\n      \"pageRespTimePerSec\": [\n        0.2716,\n        0.082105263157895,\n        0.23327272727273,\n        0.0823\n      ],\n      \"pageReqPerSec\": [\n        10,\n        19,\n        11,\n        10\n      ],\n      \"pageKbPerSec\": [\n        190,\n        361,\n        209,\n        190\n      ],\n      \"pageErrRespTime\": [\n        \"0\",\n        \"0\",\n        \"0\",\n        \"0\"\n      ],\n      \"pageErrCount\": [\n        0,\n        0,\n        0,\n        0\n      ],\n      \"pageErrKb\": [\n        0,\n        0,\n        0,\n        0\n      ]\n    }\n  }\n]<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The new API metrics endpoint gives you full access to performance data within your RedLine13 test. Instead of downloading the stats data you can query for a single metric or multiple metrics with your test. You can use this data to build your own graphs or trending information. We built this because of a customer request so that they could create their own dashboard. See the API documentation.\u00a0And for parameters and format, see the new endpoint.<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3025,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,2,1],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-user","4":"post-5251","6":"format-standard","7":"has-post-thumbnail","8":"category-api","9":"category-blog","10":"category-uncategorized"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Monitor Performance with New API Metrics Endpoint - RedLine13<\/title>\n<meta name=\"description\" content=\"API metrics endpoint gives full access to performance data in your RedLine13 test. You can use this data to build your own graphs or trending information.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monitor Performance with New API Metrics Endpoint - RedLine13\" \/>\n<meta property=\"og:description\" content=\"API metrics endpoint gives full access to performance data in your RedLine13 test. You can use this data to build your own graphs or trending information.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-17T19:26:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2016\/08\/RedLIne13-API-Update.png\" \/>\n\t<meta property=\"og:image:width\" content=\"676\" \/>\n\t<meta property=\"og:image:height\" content=\"430\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"RedLine13\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"RedLine13\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/\"},\"author\":{\"name\":\"RedLine13\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28\"},\"headline\":\"Monitor Performance with New API Metrics Endpoint\",\"datePublished\":\"2018-10-17T19:26:56+00:00\",\"dateModified\":\"2018-10-17T19:26:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/\"},\"wordCount\":119,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"articleSection\":[\"API &amp; Integrations\",\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/\",\"name\":\"Monitor Performance with New API Metrics Endpoint - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2018-10-17T19:26:56+00:00\",\"dateModified\":\"2018-10-17T19:26:56+00:00\",\"description\":\"API metrics endpoint gives full access to performance data in your RedLine13 test. You can use this data to build your own graphs or trending information.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monitor Performance with New API Metrics Endpoint\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"name\":\"RedLine13\",\"description\":\"(Almost) Free Load Testing in the Cloud\",\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.redline13.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\",\"name\":\"RedLine13\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"contentUrl\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"width\":300,\"height\":68,\"caption\":\"RedLine13\"},\"image\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28\",\"name\":\"RedLine13\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g\",\"caption\":\"RedLine13\"},\"sameAs\":[\"http:\/\/127.0.0.1\"],\"url\":\"https:\/\/www.redline13.com\/blog\/author\/user\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Monitor Performance with New API Metrics Endpoint - RedLine13","description":"API metrics endpoint gives full access to performance data in your RedLine13 test. You can use this data to build your own graphs or trending information.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/","og_locale":"en_US","og_type":"article","og_title":"Monitor Performance with New API Metrics Endpoint - RedLine13","og_description":"API metrics endpoint gives full access to performance data in your RedLine13 test. You can use this data to build your own graphs or trending information.","og_url":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/","og_site_name":"RedLine13","article_published_time":"2018-10-17T19:26:56+00:00","og_image":[{"width":676,"height":430,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2016\/08\/RedLIne13-API-Update.png","type":"image\/png"}],"author":"RedLine13","twitter_card":"summary_large_image","twitter_misc":{"Written by":"RedLine13","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/"},"author":{"name":"RedLine13","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28"},"headline":"Monitor Performance with New API Metrics Endpoint","datePublished":"2018-10-17T19:26:56+00:00","dateModified":"2018-10-17T19:26:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/"},"wordCount":119,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"articleSection":["API &amp; Integrations","Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/","url":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/","name":"Monitor Performance with New API Metrics Endpoint - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2018-10-17T19:26:56+00:00","dateModified":"2018-10-17T19:26:56+00:00","description":"API metrics endpoint gives full access to performance data in your RedLine13 test. You can use this data to build your own graphs or trending information.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2018\/10\/monitor-performance-api-metrics-endpoint\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Monitor Performance with New API Metrics Endpoint"}]},{"@type":"WebSite","@id":"https:\/\/www.redline13.com\/blog\/#website","url":"https:\/\/www.redline13.com\/blog\/","name":"RedLine13","description":"(Almost) Free Load Testing in the Cloud","publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redline13.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redline13.com\/blog\/#organization","name":"RedLine13","url":"https:\/\/www.redline13.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","contentUrl":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","width":300,"height":68,"caption":"RedLine13"},"image":{"@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28","name":"RedLine13","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g","caption":"RedLine13"},"sameAs":["http:\/\/127.0.0.1"],"url":"https:\/\/www.redline13.com\/blog\/author\/user\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/5251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/comments?post=5251"}],"version-history":[{"count":0,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/5251\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/3025"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=5251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=5251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=5251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}