{ "opencollection": "1.0.0", "info": { "name": "Datadog Account Tests API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "items": [ { "info": { "name": "Tests", "type": "folder" }, "items": [ { "info": { "name": "Datadog Aggregate Tests Events", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/ci/tests/analytics/aggregate", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "The API endpoint to aggregate CI Visibility test events into buckets of computed metrics and timeseries." }, { "info": { "name": "Datadog Get a List of Tests Events", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/ci/tests/events", "params": [ { "name": "filter[query]", "value": "@test.name:test_foo @test.suite:github.com/DataDog/dd-go/model", "type": "query", "description": "Search query following log syntax." }, { "name": "filter[from]", "value": "2019-01-02T09:42:36.320Z", "type": "query", "description": "Minimum timestamp for requested events." }, { "name": "filter[to]", "value": "2019-01-03T09:42:36.320Z", "type": "query", "description": "Maximum timestamp for requested events." }, { "name": "sort", "value": "example_value", "type": "query", "description": "Order of events in results." }, { "name": "page[cursor]", "value": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "type": "query", "description": "List following results with a cursor provided in the previous query." }, { "name": "page[limit]", "value": "25", "type": "query", "description": "Maximum number of events in the response." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "List endpoint returns CI Visibility test events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/).\n[Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).\n\nUse this endpoint to see your latest test events." }, { "info": { "name": "Datadog Search Tests Events", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/ci/tests/events/search", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "List endpoint returns CI Visibility test events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/).\n[Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).\n\nUse this endpoint to build complex events filtering and search." }, { "info": { "name": "Datadog Test a Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/test", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Test a rule." }, { "info": { "name": "Datadog Test an Existing Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/:rule_id/test", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Test an existing rule." } ] } ], "bundled": true }