> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# List the screen test metric catalog

GET //api/v1/screen-test/metrics/catalog

Returns every test name with numeric metrics ingested inside the catalog lookback window, mapped to that test's metric names sorted alphabetically. The window is measured from when Remediation Orchestrator recorded a result, not from when the test ran, and lookback_days reports its length in days. Names are exact and case-sensitive: they are the values to pass as test_name and metric_name to /api/v1/screen-test/metrics/data. Results are scoped to the caller's tenant.

Reference: https://docs.nvidia.com/remediation-orchestrator/reference/rest-api/screen-test/list-the-screen-test-metric-catalog

## Response

### 200

OK

- `lookback_days` (integer, optional) — LookbackDays travels with the map so callers read the window off the response instead of hard-coding a number that drifts when the store's window changes.
- `test_metrics` (map from string to list of string, optional)

## Errors

### 500 Internal Server Error

Internal Server Error

- `string`

## Examples

**Response**

```json
{
  "lookback_days": 1,
  "test_metrics": {}
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/api/v1/screen-test/metrics/catalog"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/api/v1/screen-test/metrics/catalog';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/v1/screen-test/metrics/catalog"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/v1/screen-test/metrics/catalog")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/screen-test/metrics/catalog")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/api/v1/screen-test/metrics/catalog');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/api/v1/screen-test/metrics/catalog");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/v1/screen-test/metrics/catalog")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```