For the complete documentation index, see llms.txt. This page is also available as Markdown.

API reference

All SeaLights Public API endpoints in alphabetical order by path.

Endpoints are ordered alphabetically by path. Use your browser's Find on page (Ctrl/Cmd + F) to jump to a specific path or keyword.

Create integration build lab

post

Request Body

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Body
appNamestringRequired

Application name

branchNamestringRequired

Branch name

typestringOptional

Lab type

cdOnlybooleanOptional

If true, creates a CD-only lab

Responses
201

Create integration build lab

application/json
post/sl-api/v1/agent-apis/lab-ids
POST /sl-api/v1/agent-apis/lab-ids HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 96

{
  "appName": "{{app_name}}",
  "branchName": "{{branch_name}}",
  "type": "{{build_type}}",
  "cdOnly": false
}
{
  "data": {
    "labId": "integ_manualbuild_checkoutservice"
  }
}

Generating an Integration Build

post

Request Body

String containing the name of the build (buildName). This build must be a new build name, never reported for this integration build.
additionalComponents Optional information that can be used to provide additional components not alive and reporting to Sealights at the time the API is called.
forceFailedComponents Optional flag that can be used to force the creation of the integration build even when some of the components failed to be reported to Sealights during their build scan. It is important to understand that even though the integration build will be created, it will not be representing the correct deployment and coverage will not be captured for the components that did not report a complete build scan

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
labIdstringRequired

Lab ID

Body
buildNamestringRequired

Name of the integration build

additionalParametersobjectOptional

Additional parameters for the build

Responses
200

Generating an Integration Build_svg

application/json
post/sl-api/v1/agent-apis/lab-ids/{labId}/integration-build
POST /sl-api/v1/agent-apis/lab-ids/{labId}/integration-build HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 306

{
  "buildName": "build-name",
  "additionalParameters": [
    {
      "bsid": "component-bsid",
      "appName": "App1",
      "branchName": "Branch",
      "buildName": "build"
    },
    {
      "bsid": "component-bsid",
      "appName": "App2",
      "branchName": "Branch",
      "buildName": "build"
    },
    {
      "bsid": "component-bsid",
      "appName": "App3",
      "branchName": "Branch",
      "buildName": "build"
    }
  ]
}
{
  "data": {
    "buildSessionId": "29697ddf-e014-48d0-b12a-911bc4cb5271"
  }
}

Attach Integration Build to a lab from Multiple environments

put

Request Parameters

Request Body

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
labIdstringRequired

Lab ID

Body
buildNamestringRequired

Updated build name

Responses
200

Attach Integration Build to a lab from Multiple environments

No content

put/sl-api/v1/agent-apis/lab-ids/{labId}/integration-build
PUT /sl-api/v1/agent-apis/lab-ids/{labId}/integration-build HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 26

{
  "buildName": "build-name"
}

No content

Get Live Agents

get

Get all live agents

Response Attributes

LiveAgent Object

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Responses
200

Get Live Agents_svg

application/json
get/sl-api/v1/agents/live
GET /sl-api/v1/agents/live HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "appName": "adservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "0cb969f8-8454-46fd-a911-905f9951d89c",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530575321,
      "started": 1709852450650,
      "type": "TestListener",
      "machineName": "adservice-869b8fd966-gk4z9",
      "bsid": "7770976f-e70f-4f41-91ea-d3fd5c4b61ed",
      "tags": [
        "script",
        "container",
        "docker"
      ]
    },
    {
      "appName": "recommendationservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "afd38fe7-4f8f-437c-bea1-7be71fdc5bdc",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530581746,
      "started": 1709852461416,
      "type": "TestListener",
      "machineName": "recommendationservice-5bdc7ff446-bzp2t",
      "bsid": "a0229e45-9c51-457c-801a-a0e359eea47d",
      "tags": [
        "python-3.10.8"
      ]
    },
    {
      "appName": "emailservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "8c4cf2e1-b57c-4e01-8144-c084ad1450e5",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530589272,
      "started": 1709852468946,
      "type": "TestListener",
      "machineName": "emailservice-6f8f569f56-7jhvx",
      "bsid": "db00b2ba-727e-4261-9865-49d750f1b234",
      "tags": [
        "python-3.10.8"
      ]
    },
    {
      "appName": "currencyservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "c6eb002f-a7d2-41e5-8c86-ac86a5ca0d59",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530590981,
      "started": 1709852458210,
      "type": "TestListener",
      "machineName": "currencyservice-6fc5f8d75d-p9pc2",
      "bsid": "2059ad14-0ff2-408f-aaf4-8eecfe17fcb6",
      "tags": []
    },
    {
      "appName": "currencyservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "79470181-fa50-4ae4-bafd-10e0e06c0b8f",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530591013,
      "started": 1709852457636,
      "type": "TestListener",
      "machineName": "currencyservice-6fc5f8d75d-p9pc2",
      "bsid": "2059ad14-0ff2-408f-aaf4-8eecfe17fcb6",
      "tags": []
    },
    {
      "appName": "paymentservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "c2237c8d-7a8b-4edf-b648-d47f616b937d",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530591134,
      "started": 1709852458449,
      "type": "TestListener",
      "machineName": "paymentservice-6f697c7486-p9d6m",
      "bsid": "4b52d392-2cfd-4498-aca0-7a71e2ade780",
      "tags": []
    },
    {
      "appName": "paymentservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "d6fc7899-355e-44a8-9bee-1fdc2fea48ce",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530591511,
      "started": 1709852457892,
      "type": "TestListener",
      "machineName": "paymentservice-6f697c7486-p9d6m",
      "bsid": "4b52d392-2cfd-4498-aca0-7a71e2ade780",
      "tags": []
    },
    {
      "appName": "productcatalogservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "2813d5d1-cc93-4699-b0d9-c418eb58c8b3",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530617841,
      "started": 1709852442846,
      "type": "TestListener",
      "machineName": "productcatalogservice-5678779869-c8s6k",
      "bsid": "23b063dc-4cad-46f7-aa92-9aa04a67eef5",
      "tags": []
    },
    {
      "appName": "shippingservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "6e8c79b9-80bc-4d9d-b9ef-e0088f94bfaa",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530617975,
      "started": 1709852443344,
      "type": "TestListener",
      "machineName": "shippingservice-7f577f87f7-tv4rf",
      "bsid": "7528cf0f-1088-4d52-8c8e-d90501beabb3",
      "tags": []
    },
    {
      "appName": "chechoutservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "2e04cd9e-b1f4-4a2e-ba5f-53d6b1c0d945",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530618103,
      "started": 1709852442306,
      "type": "TestListener",
      "machineName": "checkoutservice-b6f77c5c8-rdjrr",
      "bsid": "6b7c2713-4649-4c33-bd93-68783935248a",
      "tags": []
    },
    {
      "appName": "frontendservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "4adbdd56-dcbb-48e0-9f47-7919cdfd460c",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530618194,
      "started": 1709852442790,
      "type": "TestListener",
      "machineName": "frontend-856d79b6dc-2btvj",
      "bsid": "13c92a63-a328-48ed-9d98-d22c263ba0d0",
      "tags": []
    },
    {
      "appName": "cartservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "f2e21a5a-e556-4e34-8e59-86a25e7eea65-0x27753B4C00000014",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530635288,
      "started": 1710227393295,
      "type": "Profiler",
      "machineName": "cartservice-5967ffb7c4-wj8m7",
      "bsid": "bec03d88-9c4e-442d-8464-05ba57b5fa21",
      "tags": []
    },
    {
      "appName": "cartservice",
      "branchName": "public",
      "buildName": "svgbld-1234",
      "agentId": "f2e21a5a-e556-4e34-8e59-86a25e7eea65",
      "labId": "integ_public_Boutique@public-1-0-214",
      "lastHeartbeat": 1710530637134,
      "started": 1710227392461,
      "type": "TestListener",
      "machineName": "cartservice-5967ffb7c4-wj8m7",
      "bsid": "bec03d88-9c4e-442d-8464-05ba57b5fa21",
      "tags": []
    }
  ]
}

Get Agent Default Version

get

Get default version by agent type

Request Parameters

Supported Agent Types

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
agentTypestringRequired

Agent type (e.g. dotnet, java, node)

Responses
200

Get Agent Default Version_svg

application/json
get/sl-api/v1/agents/types/{agentType}/default-version
GET /sl-api/v1/agents/types/{agentType}/default-version HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "name": "dotnet",
    "version": "2.0.1.810",
    "date": "2023-05-24T11:39:10.258Z"
  }
}

Get Apps

get

Get list of apps.

Path Parameters

Response Attributes

Branch Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Get Apps

application/json
get/sl-api/v1/apps
GET /sl-api/v1/apps HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "apps": [
      {
        "appName": "Boutique"
      },
      {
        "appName": "Cart"
      },
      {
        "appName": "adservice"
      },
      {
        "appName": "cartservice"
      }
    ]
  }
}

Get Branches

get

Get list of branches for a given app.

Path Parameters

Query Parameters

Response Attributes

Branch Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

Query parameters
visibilitystringOptional

indicates what items to return

Responses
200

Get Branches

application/json
get/sl-api/v1/apps/{appName}/branches
GET /sl-api/v1/apps/{appName}/branches HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "appName": "Boutique",
    "branches": [
      {
        "branchName": "public",
        "isHidden": false
      }
    ]
  }
}

Does Branch Exist

get

Find out if a branch is already familiar to SeaLights.

This is especially useful when attempting to make a pull request. If the target branch is unknown to SeaLights there will be no SeaLights integration for the pull request.

Mitigate the above fail scenario by creating a single build on the target branch before creating the pull request.

Request Parameters

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

Responses
204

Does Branch Exist_svg

No content

get/sl-api/v1/apps/{appName}/branches/{branchName}/exists
GET /sl-api/v1/apps/{appName}/branches/{branchName}/exists HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Toggle hidden flag for app-branch

put

Get list of apps.

Path Parameters

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

actionstringRequired

Action to perform (e.g. enable, disable)

Responses
202

Toggle hidden flag for app-branch

No content

put/sl-api/v1/apps/{appName}/branches/{branchName}/{action}
PUT /sl-api/v1/apps/{appName}/branches/{branchName}/{action} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Set Quality Gates

post

Set quality gate rules for a specific app.

Request Parameters

Request Body

Response Attributes

Rules Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

Responses
201

Set Quality Gates

application/json
post/sl-api/v1/apps/{appName}/quality-gates
POST /sl-api/v1/apps/{appName}/quality-gates HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "appName": "app",
  "rules": {
    "failedTests": <Rule>{
      "value": 0,
      "testStages": [ "stage" ],
      "entireBuild": true,
      "active": true,
      "operator": "less"
    },
    "modifiedCoverage": <Rule>,
    "overallCoverage": <Rule>
  }
}

Toggle hidden flag for app

put

Get list of apps.

Path Parameters

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

actionstringRequired

Action to perform (e.g. enable, disable)

Responses
202

Toggle hidden flag for app

No content

put/sl-api/v1/apps/{appName}/{action}
PUT /sl-api/v1/apps/{appName}/{action} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get Audit Log Actions

get

Get a list of all actions recorded in the audit log.

Response Body

Array of strings, each containing a possible action.

These actions can be used as a query parameter with Download Audit Log;

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Get Audit Log Actions_svg

application/json
get/sl-api/v1/audit-log-actions
GET /sl-api/v1/audit-log-actions HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    "Authentication:Login",
    "Dashboard::Builds::Set reference build",
    "Settings::Cockpit & Onboarding::API Token::Create token",
    "Settings::Cockpit & Onboarding::Agent Token::Create token",
    "Settings::Cockpit & Onboarding::Integration Build Labs::Create lab",
    "Settings::Cockpit & Onboarding::Integration Build Labs::Delete lab"
  ]
}

Download Audit Log

get

Download CSV log file containing selected actions for a given time frame. If no actions are requested, all actions in the time frame are returned.

To see a complete list of supported actions see Get Audit Log Actions.

Query Parameters

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Query parameters
periodFromintegerOptional

required, ms

periodTointegerOptional

required, ms

Responses
200

Download Audit Log_svg

application/json
get/sl-api/v1/audit-logs
GET /sl-api/v1/audit-logs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
"Date","User","User Role","Action","Context_appName","Context_branchName","Context_name","Context"
"March 15th, 2024 19:11:22","poc-samantha@sealights.io","sealights-admin","Settings::Cockpit & Onboarding::Integration Build Labs::Create lab","SVGGCPdemo","labtest",,"{""appName"":""SVGGCPdemo"",""branchName"":""labtest""}"
"March 15th, 2024 19:09:30","poc-samantha@sealights.io","sealights-admin","Settings::Cockpit & Onboarding::Integration Build Labs::Delete lab","svg_gcpdemo_vanilla","devel-agent",,"{""appName"":""svg_gcpdemo_vanilla"",""branchName"":""devel-agent""}"
"March 15th, 2024 16:41:30","poc-samantha@sealights.io","sealights-admin","Settings::Cockpit & Onboarding::Integration Build Labs::Create lab","svg_gcpdemo_vanilla","devel-agent",,"{""appName"":""svg_gcpdemo_vanilla"",""branchName"":""devel-agent""}"
"March 12th, 2024 22:32:46","poc-samantha@sealights.io","sealights-admin","Settings::Cockpit & Onboarding::API Token::Create token",,,"svg-api-token1","{""name"":""svg-api-token1""}"

Submit batch task

post

Submits a new batch task to generate report of batch tasks.

Batch task is designed tp perform multiple operations and fetch data on multiple various system entities (such as builds, users, etc.).

When submitting a batch task there is a need to provide the entities to which the task should work on. See BatchTaskEntities below for details.

Request Body

BatchTaskEntities

The BatchTaskEntities is part of the request body allows two methods of entity filtering: by range or by explicit list of entity ids. One of them must be provided.

The type of these filtering objects depends on the task type. See below for the list of supported task types and their corresponding request and response object specifications.

Response Attributes

Response Status Codes

Batch Task types

Coverage summary for multiple builds

Request Body

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Body
taskTypestringRequired

Type of batch task to create

entitiesarrayRequired

List of entities to process

timeoutsobjectOptional

Timeout configuration for the task

descriptionstringOptional

Human-readable description of the task

Responses
201

Submit batch task

application/json
post/sl-api/v1/batch/tasks
POST /sl-api/v1/batch/tasks HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 201

{
  "taskType": "coverage",
  "entities": {
    "range": {
      "filter": {
        "appName": "app.*"
      },
      "from": "1672574400000",
      "to": "1708370882000"
    },
    "list": [
      {}
    ]
  },
  "timeouts": {
    "total": 1000,
    "single": 100
  },
  "description": "example report"
}
{
  "data": {
    "taskId": "1234567890"
  }
}

Search batch tasks

post

Gets a paged list of searched batch tasks for given filters.

Request Body

Notice:

  • This POST request can have no request body at all, so that default filters (all batch tasks) will be applied. An empty request body can also be provided.
  • If `generatedTimeRange` is not provided, all the tasks will be returned; if provided, then only `from` or `to` property or both need to be provided.
  • If `taskTypes` is not provided, tasks for all the types will be returned; if provided, the action needs to be specified together with not empty list of types.
  • If no `statuses` provided, tasks for all the statuses will be returned; if provided, the action needs to be specified together with not empty list of statuses.

Query Parameters

Response Attributes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Body
generatedTimeRangeobjectOptional

Filter by task generation time range

authorshipstringOptional

Filter by task creator

taskTypesarrayOptional

Filter by task type

statusesarrayOptional

Filter by task status

Responses
200

Search batch tasks

No content

post/sl-api/v1/batch/tasks/filter
POST /sl-api/v1/batch/tasks/filter HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 192

{
  "generatedTimeRange": {
    "from": 100000000,
    "to": 200000000
  },
  "authorship": "current_user",
  "taskTypes": [
    {
      "action": "include",
      "list": [
        "coverage"
      ]
    }
  ],
  "statuses": [
    {
      "action": "include",
      "list": [
        "pending"
      ]
    }
  ]
}

No content

Get batch task by id

get

Gets the batch task's metadata and status by the task identifier taskId.

Request Parameters

Response Attributes (Task attributes)

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
taskIdstringRequired

Batch task UUID

Responses
200

Get batch task by id

application/json
get/sl-api/v1/batch/tasks/{taskId}
GET /sl-api/v1/batch/tasks/{taskId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "taskId": "1234567890",
    "taskType": "coverage",
    "status": "success",
    "entities": {
      "filter": {
        "description": "/^[a-zA-Z0-9_]{3,15}$/",
        "createdBy": "/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$/"
      },
      "range": {
        "from": "100000000",
        "to": "200000000"
      },
      "list": [
        {}
      ]
    },
    "timeouts": {
      "total": 1000,
      "single": 100
    },
    "description": "coverage report",
    "created": 100000000,
    "updated": 200000000,
    "createdBy": "some.user@email.com",
    "error": "error message"
  }
}

Download batch task completion report file

get

Downloads the batch task completition report file in desired file format for the given task identifier taskId.

Notice:

  • Successful status code is `200 OK`.
  • The response will contain content of the file.
  • The filename will be `batch-{taskType}-{taskId}.{format}`, eg. batch-coverage-123-456-789.json.
  • We plan to provide other file formats in the future.

Request Parameters

Query Parameters

Response Parameters

The response of this request depends on the task type and will contain different fields and data accordingly.

See the examples section for supported report structures.

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
taskIdstringRequired

Batch task UUID

Responses
200

Download batch task report file in csv format for "coverage" task type Copy

application/json
get/sl-api/v1/batch/tasks/{taskId}/download
GET /sl-api/v1/batch/tasks/{taskId}/download HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
"bsid","status","app","branch","build","referenceBuild","testStage","qrs.line","qrs.branch","qrs.method","coverage.line","coverage.branch","coverage.method","modifiedCodeCoverage.line","modifiedCodeCoverage.branch","modifiedCodeCoverage.method","modifiedTotals.line","modifiedTotals.branch","modifiedTotals.method","overallTotals.line","overallTotals.branch","overallTotals.method","isHighPriority","durationMs","testsCount","failedTestsCount","skippedTestsCount","error"
"028e04c5-9c01-42ed-989b-f373d5c11bbc","success","company-web-app","XY-PR-origin/dev-01127","20240215-091535.066Z-a8ac7942b21f3c2289d66e32535fcd324db64336","","","","1","213","","50","25","","66.66666666666666","26.041666666666668","","3","288","","4","308","false","","","","",""
"028e04c5-9c01-42ed-989b-f373d5c11bbc","success","company-web-app","XY-PR-origin/dev-01127","20240215-091535.066Z-a8ac7942b21f3c2289d66e32535fcd324db64336","","Unit Tests","","1","213","","50","25","","","","","","","","","","","76655","0","0","0",""
"028e04c5-9c01-42ed-989b-f373d5c11bbc","success","company-web-app","XY-PR-origin/dev-01127","20240215-091535.066Z-a8ac7942b21f3c2289d66e32535fcd324db64336","","Component Tests","","1","213","","50","25","","","","","","","","","","","448680","0","0","0",""
"02931719-44ed-410f-ac88-16430c20e3a6","success","company-cloud-testfootprint-queue-parser","XY-PR-origin/dev-00282","20240212-162918.437Z-d0c19c1ebe63e855c982dd76f3c3db5b13dccff6","","","","19","30","","74.65181058495823","87.02290076335878","","36.84210526315789","50","","19","30","","359","262","false","","","","",""
"02931719-44ed-410f-ac88-16430c20e3a6","success","company-cloud-testfootprint-queue-parser","XY-PR-origin/dev-00282","20240212-162918.437Z-d0c19c1ebe63e855c982dd76f3c3db5b13dccff6","","Unit Tests","","12","15","","74.65181058495823","87.02290076335878","","","","","","","","","","","5289","225","11","9",""
"029b5c6b-65f0-4af4-80d1-9a7f325a193e","success","company-cloud-release","xydev-17298-20240318-154543","tests-management-service-20240318-154543","api-gateway-20240303-135548","","","8","4","","53.92080193374093","64.27084033048969","","27.27272727272727","33.33333333333333","","11","6","","28132","14887","false","","","","",""
"029b5c6b-65f0-4af4-80d1-9a7f325a193e","success","company-cloud-release","xydev-17298-20240318-154543","tests-management-service-20240318-154543","","Component Tests","","11","6","","9.451869756860514","11.486531873446632","","","","","","","","","","","547489","1584","0","809",""
"029b5c6b-65f0-4af4-80d1-9a7f325a193e","success","company-cloud-release","xydev-17298-20240318-154543","tests-management-service-20240318-154543","","Unit Tests","","8","4","","36.68420304279824","36.83750923624639","","","","","","","","","","","379589","17389","3","10831",""
"029b5c6b-65f0-4af4-80d1-9a7f325a193e","success","company-cloud-release","xydev-17298-20240318-154543","tests-management-service-20240318-154543","","Swagger Tests","","11","6","","0.08175742926205033","0.020151810304292334","","","","","","","","","","","9284","104","0","0",""
"029b5c6b-65f0-4af4-80d1-9a7f325a193e","success","company-cloud-release","xydev-17298-20240318-154543","tests-management-service-20240318-154543","","Sanity Integration","","11","6","","24.985781316650076","31.22858870155169","","","","","","","","","","","1455656","127","4","115",""
"02c893ea-145f-47a0-affd-c206d1eefaf8","success","company-cloud-build-service","XY-PR-origin/dev-00661","20240215-091049.147Z-ca9248f6ab2a20b76f2288c88f2108ed2052a083","","","","0","0","","83.10888803385917","85.57844690966719","","","","","0","0","","2599","1262","false","","","","",""
"02c893ea-145f-47a0-affd-c206d1eefaf8","success","company-cloud-build-service","XY-PR-origin/dev-00661","20240215-091049.147Z-ca9248f6ab2a20b76f2288c88f2108ed2052a083","","Unit Tests","","0","0","","75.79838399384379","74.96038034865293","","","","","","","","","","","94255","1559","0","1",""
"02c893ea-145f-47a0-affd-c206d1eefaf8","success","company-cloud-build-service","XY-PR-origin/dev-00661","20240215-091049.147Z-ca9248f6ab2a20b76f2288c88f2108ed2052a083","","Component Tests","","0","0","","15.775298191612158","20.602218700475436","","","","","","","","","","","60356","145","0","0",""
"02d0ef5f-9acc-45bc-9bab-63b6a99079d5","success","company-cloud-api-gateway","origin/dev","1.0.694-dev","1.0.687-dev","","","8","22","","3.155818540433925","1.9647696476964769","","0","0","","8","22","","3042","1476","false","","","","",""
"02d0ef5f-9acc-45bc-9bab-63b6a99079d5","success","company-cloud-api-gateway","origin/dev","1.0.694-dev","","Unit Tests","","8","22","","2.925706771860618","1.7615176151761516","","","","","","","","","","","27173","2815","0","2815",""
"02d0ef5f-9acc-45bc-9bab-63b6a99079d5","success","company-cloud-api-gateway","origin/dev","1.0.694-dev","","Swagger Tests","","8","22","","0.7560815253122946","0.20325203252032523","","","","","","","","","","","7979","102","0","0",""
"02d3775e-ea45-4bec-b9e7-a8fbbd904154","success","company-cloud-api-gateway","origin/dev","1.0.681-dev","1.0.663-dev","","","5","9","","3.1725049570389956","1.9714479945615229","","0","0","","5","9","","3026","1471","false","","","","",""
"02d3775e-ea45-4bec-b9e7-a8fbbd904154","success","company-cloud-api-gateway","origin/dev","1.0.681-dev","","Unit Tests","","5","9","","2.941176470588235","1.7675050985723997","","","","","","","","","","","33722","2801","0","2801",""
"02d3775e-ea45-4bec-b9e7-a8fbbd904154","success","company-cloud-api-gateway","origin/dev","1.0.681-dev","","Swagger Tests","","5","9","","0.760079312623926","0.20394289598912305","","","","","","","","","","","9600","102","0","0",""
"02dce942-9bd6-4c30-8b5a-295268337560","success","company-cloud-analytics-report-service","XY-PR-origin/dev-00554","20240116-081143.817Z-4880fe637752cc58f9d999666737db2cb2c06cb3","","","","0","0","","82.77126099706746","86.08582574772431","","","","","0","0","","2728","1538","false","","","","",""
"02dce942-9bd6-4c30-8b5a-295268337560","success","company-cloud-analytics-report-service","XY-PR-origin/dev-00554","20240116-081143.817Z-4880fe637752cc58f9d999666737db2cb2c06cb3","","Unit Tests","","0","0","","79.25219941348973","81.98959687906373","","","","","","","","","","","38110","1364","0","3",""
"02dce942-9bd6-4c30-8b5a-295268337560","success","company-cloud-analytics-report-service","XY-PR-origin/dev-00554","20240116-081143.817Z-4880fe637752cc58f9d999666737db2cb2c06cb3","","Component Tests","","0","0","","6.928152492668621","6.046814044213264","","","","","","","","","","","25493","106","0","2",""
"02e25fe0-1fc4-403e-a4e6-4e5ed30e01dd","success","company-cloud-testevents-queue-parser","origin/dev","1.0.327-dev","1.0.310-dev","","","169","14","","69.82142857142857","92.96482412060301","","69.27272727272728","92.96482412060301","","550","199","","560","199","false","","","","",""
"02e25fe0-1fc4-403e-a4e6-4e5ed30e01dd","success","company-cloud-testevents-queue-parser","origin/dev","1.0.327-dev","","Unit Tests","","220","70","","60.71428571428571","64.82412060301507","","","","","","","","","","","8672","213","0","0",""
"02e25fe0-1fc4-403e-a4e6-4e5ed30e01dd","success","company-cloud-testevents-queue-parser","origin/dev","1.0.327-dev","","Component Tests","","386","95","","31.071428571428573","52.26130653266332","","","","","","","","","","","26918","15","0","0",""
"02e4875d-4398-4943-869f-7ea28ce09402","success","company-cloud-backend-infra","XY-PR-origin/dev-00602","20240129-213242.005Z-ff460d87b288bf9a9c3d12065b04935975673152","","","","0","2","","75.94262295081967","77.57437070938215","","100","77.77777777777779","","1","9","","2440","1311","false","","","","",""
"02e4875d-4398-4943-869f-7ea28ce09402","success","company-cloud-backend-infra","XY-PR-origin/dev-00602","20240129-213242.005Z-ff460d87b288bf9a9c3d12065b04935975673152","","Unit Tests","","0","2","","73.52459016393442","73.30282227307399","","","","","","","","","","","89538","1506","0","0",""
"02e4875d-4398-4943-869f-7ea28ce09402","success","company-cloud-backend-infra","XY-PR-origin/dev-00602","20240129-213242.005Z-ff460d87b288bf9a9c3d12065b04935975673152","","Component Tests","","1","9","","19.59016393442623","18.76430205949657","","","","","","","","","","","17639","98","0","20",""
"02f54e3e-68b1-4fde-a122-2274f562cd12","success","company-cloud-release","xydev-16180-test-20240319-123417","agents-service-20240319-123417","api-gateway-20240303-135548","","","285","130","","73.37817848841304","80.13046661785262","","5","17.197452229299362","","300","157","","28394","15023","false","","","","",""
"02f54e3e-68b1-4fde-a122-2274f562cd12","success","company-cloud-release","xydev-16180-test-20240319-123417","agents-service-20240319-123417","","Component Tests","","298","146","","16.897936183700782","20.155761166211807","","","","","","","","","","","717069","1586","0","107",""
"02f54e3e-68b1-4fde-a122-2274f562cd12","success","company-cloud-release","xydev-16180-test-20240319-123417","agents-service-20240319-123417","","Swagger Tests","","300","157","","0.08100302880890328","0.019969380283565197","","","","","","","","","","","10066","104","0","0",""
"02f54e3e-68b1-4fde-a122-2274f562cd12","success","company-cloud-release","xydev-16180-test-20240319-123417","agents-service-20240319-123417","","Unit Tests","","286","133","","56.86412622385011","56.49337682220595","","","","","","","","","","","464532","17383","3","2063",""
"02f54e3e-68b1-4fde-a122-2274f562cd12","success","company-cloud-release","xydev-16180-test-20240319-123417","agents-service-20240319-123417","","Sanity Integration","","291","142","","32.06663379587237","38.36117952472875","","","","","","","","","","","13504018","137","0","1",""
"02f632cd-34e3-4240-ab46-2cc7c9271b48","success","company-cloud-backend-infra","XY-PR-origin/dev-00602","20240117-092102.611Z-2e6f40dd16576773b206677a081fbd46a20a156c","","","","0","2","","76.24948368442791","77.50573833205814","","100","77.77777777777779","","1","9","","2421","1307","false","","","","",""
"02f632cd-34e3-4240-ab46-2cc7c9271b48","success","company-cloud-backend-infra","XY-PR-origin/dev-00602","20240117-092102.611Z-2e6f40dd16576773b206677a081fbd46a20a156c","","Unit Tests","","0","2","","73.8124741842214","73.22111706197398","","","","","","","","","","","85235","1504","0","0",""
"02f632cd-34e3-4240-ab46-2cc7c9271b48","success","company-cloud-backend-infra","XY-PR-origin/dev-00602","20240117-092102.611Z-2e6f40dd16576773b206677a081fbd46a20a156c","","Component Tests","","1","9","","19.661296984717058","18.74521805661821","","","","","","","","","","","15279","98","0","20",""
"02f78ffe-9d9d-4b2e-9408-84febcc64362","success","company-cloud-api-gateway","XY-PR-origin/dev-01175","20240215-091009.599Z-c0d1c9e844a427f3a885f5044155033169673610","","","","0","0","","81.72504957038996","82.05302515295718","","","","","0","0","","3026","1471","false","","","","",""
"02f78ffe-9d9d-4b2e-9408-84febcc64362","success","company-cloud-api-gateway","XY-PR-origin/dev-01175","20240215-091009.599Z-c0d1c9e844a427f3a885f5044155033169673610","","Unit Tests","","0","0","","81.49372108393919","81.84908225696805","","","","","","","","","","","76772","2801","0","0",""
"02f78ffe-9d9d-4b2e-9408-84febcc64362","success","company-cloud-api-gateway","XY-PR-origin/dev-01175","20240215-091009.599Z-c0d1c9e844a427f3a885f5044155033169673610","","Swagger Tests","","0","0","","0.760079312623926","0.20394289598912305","","","","","","","","","","","7695","102","0","0",""
"02fe1a71-0dae-4894-a700-80bda98161cb","success","company-cloud-release","xydev-17254-20240304-144304","builddiff-queue-parser-20240304-144304","api-gateway-20240303-135548","","","0","0","","60.490492653413995","70.88154269972452","","","100","","0","1","","27768","14520","false","","","","",""
"02fe1a71-0dae-4894-a700-80bda98161cb","success","company-cloud-release","xydev-17254-20240304-144304","builddiff-queue-parser-20240304-144304","","Component Tests","","0","0","","8.79069432440219","9.993112947658402","","","","","","","","","","","532949","1511","0","882",""
"02fe1a71-0dae-4894-a700-80bda98161cb","success","company-cloud-release","xydev-17254-20240304-144304","builddiff-queue-parser-20240304-144304","","Unit Tests","","0","0","","36.844569288389515","37.327823691460054","","","","","","","","","","","393271","17322","3","10792",""
"02fe1a71-0dae-4894-a700-80bda98161cb","success","company-cloud-release","xydev-17254-20240304-144304","builddiff-queue-parser-20240304-144304","","Swagger Tests","","0","1","","0.08282915586286373","0.02066115702479339","","","","","","","","","","","7930","102","0","0",""
"02fe1a71-0dae-4894-a700-80bda98161cb","success","company-cloud-release","xydev-17254-20240304-144304","builddiff-queue-parser-20240304-144304","","Sanity Integration","","0","0","","34.979112647651974","43.31955922865014","","","","","","","","","","","3948963","106","3","1",""
"0302547d-65f1-40df-95d9-a82f16ac3de1","success","","","","","","","31","31","","76.25928984310487","77.4292272379495","","11.428571428571429","20.51282051282051","","35","39","","2422","1307","false","","","","",""
"0302547d-65f1-40df-95d9-a82f16ac3de1","success","company-cloud-backend-infra","XY-PR-origin/dev-00594","20240113-211153.082Z-48ec4beed083998b11edb0044b5e6e115679cf12","","Unit Tests","","31","31","","73.82328654004955","73.14460596786535","","","","","","","","","","","83426","1504","0","0",""
"0302547d-65f1-40df-95d9-a82f16ac3de1","success","company-cloud-backend-infra","XY-PR-origin/dev-00594","20240113-211153.082Z-48ec4beed083998b11edb0044b5e6e115679cf12","","Component Tests","","35","39","","19.653179190751445","18.74521805661821","","","","","","","","","","","13973","97","0","19",""
"0303be51-439c-444d-9247-80cbfb842302","success","company-cloud-failed-tests-queue-parser","origin/dev","1.0.330-dev","1.0.327-dev","","","0","0","","76.34854771784232","88.65979381443299","","","","","0","0","","482","194","false","","","","",""
"0303be51-439c-444d-9247-80cbfb842302","success","company-cloud-failed-tests-queue-parser","origin/dev","1.0.330-dev","","Unit Tests","","0","0","","69.91701244813278","77.31958762886599","","","","","","","","","","","5568","223","0","0",""
"0303be51-439c-444d-9247-80cbfb842302","success","company-cloud-failed-tests-queue-parser","origin/dev","1.0.330-dev","","Component Tests","","0","0","","35.892116182572614","38.144329896907216","","","","","","","","","","","127942","30","0","0",""
"03079e86-ccea-4499-bb7b-70eff4a9ca1b","success","company-cloud-testfootprint-queue-parser","XY-PR-origin/dev-00272","20240122-163603.885Z-509fa2094e1ebf44ff84634efdcd20b5f05a13bc","","","","3","1","","75.96439169139467","91.28630705394191","","57.14285714285714","88.88888888888889","","7","9","","337","241","false","","","","",""
"03079e86-ccea-4499-bb7b-70eff4a9ca1b","success","company-cloud-testfootprint-queue-parser","XY-PR-origin/dev-00272","20240122-163603.885Z-509fa2094e1ebf44ff84634efdcd20b5f05a13bc","","Unit Tests","","3","1","","75.96439169139467","91.28630705394191","","","","","","","","","","","4657","225","0","0",""
"03144d85-4a9e-4188-8c7e-eeed1a5753da","success","company-cloud-tests-management-service","origin/dev","1.0.775-dev","1.0.758-dev","","","275","104","","3.7163120567375882","1.2903225806451613","","4.181184668989547","7.964601769911504","","287","113","","3525","2170","false","","","","",""
"03144d85-4a9e-4188-8c7e-eeed1a5753da","success","company-cloud-tests-management-service","origin/dev","1.0.775-dev","","Unit Tests","","283","111","","3.234042553191489","0.18433179723502305","","","","","","","","","","","10069","760","0","760",""
"03144d85-4a9e-4188-8c7e-eeed1a5753da","success","company-cloud-tests-management-service","origin/dev","1.0.775-dev","","Component Tests","","275","105","","3.602836879432624","1.1520737327188941","","","","","","","","","","","18278","640","0","632",""
"03220659-146f-4a2f-ac42-fae7fc3e2a27","success","company-cloud-testfootprint-queue-parser","XY-PR-origin/dev-00282","20240212-140921.944Z-8747ae04b2dee72ef429dc4663c0c809248b4c0e","","","","17","30","","75.35014005602241","87.02290076335878","","41.17647058823529","50","","17","30","","357","262","false","","","","",""
"03220659-146f-4a2f-ac42-fae7fc3e2a27","success","company-cloud-testfootprint-queue-parser","XY-PR-origin/dev-00282","20240212-140921.944Z-8747ae04b2dee72ef429dc4663c0c809248b4c0e","","Unit Tests","","10","15","","75.35014005602241","87.02290076335878","","","","","","","","","","","4102","225","0","9",""
"034b18ce-edf4-42bf-8446-b25fcacdf612","success","company-cloud-builddiff-queue-parser","origin/dev","1.0.464-dev","1.0.458-dev","","","0","0","","75.99701826313829","84.24657534246576","","","100","","0","1","","2683","1022","false","","","","",""
"034b18ce-edf4-42bf-8446-b25fcacdf612","success","company-cloud-builddiff-queue-parser","origin/dev","1.0.464-dev","","Unit Tests","","0","0","","74.58069325382036","80.43052837573386","","","","","","","","","","","19731","918","0","0",""
"034b18ce-edf4-42bf-8446-b25fcacdf612","success","company-cloud-builddiff-queue-parser","origin/dev","1.0.464-dev","","Component Tests","","0","0","","18.896757361162877","30.332681017612522","","","","","","","","","","","13120","8","0","0",""
"034ba7bb-2525-4f6e-a6c7-e5b16e6c333a","success","company-cloud-release","xydev-16738-20240131-101219","api-gateway-20240131-101219","tests-state-tracker-service-20240117-140529","","","3","5","","67.73524838972385","75.27071979616392","","57.14285714285714","64.28571428571429","","7","14","","27014","14129","false","","","","",""
"034ba7bb-2525-4f6e-a6c7-e5b16e6c333a","success","company-cloud-release","xydev-16738-20240131-101219","api-gateway-20240131-101219","","Unit Tests","","5","8","","52.50240615976901","51.92157972963408","","","","","","","","","","","664317","11886","0","1215",""
"034ba7bb-2525-4f6e-a6c7-e5b16e6c333a","success","company-cloud-release","xydev-16738-20240131-101219","api-gateway-20240131-101219","","Swagger Tests","","7","14","","0.0851410379803065","0.021232925189326915","","","","","","","","","","","7491","102","0","0",""
"034ba7bb-2525-4f6e-a6c7-e5b16e6c333a","success","company-cloud-release","xydev-16738-20240131-101219","api-gateway-20240131-101219","","Component Tests","","7","11","","7.840379062708225","8.931983862976855","","","","","","","","","","","493988","1446","0","877",""
"034ba7bb-2525-4f6e-a6c7-e5b16e6c333a","success","company-cloud-release","xydev-16738-20240131-101219","api-gateway-20240131-101219","","Sanity Integration","","5","7","","34.126749093062855","42.50831622903249","","","","","","","","","","","15843366","131","5","1",""
"03542364-ea50-481a-b228-ba99c999d7ae","success","company-cloud-release","xydev-17127-multiple-20240226-001742","builddiff-queue-parser-20240226-001742","tests-management-service-20240222-140257","","","5","1","","59.58620192480987","70.05037609550756","","64.28571428571429","94.44444444444444","","14","18","","27743","14491","false","","","","",""
"03542364-ea50-481a-b228-ba99c999d7ae","success","company-cloud-release","xydev-17127-multiple-20240226-001742","builddiff-queue-parser-20240226-001742","","Unit Tests","","6","3","","36.85974840500306","37.38182320060727","","","","","","","","","","","394564","17304","3","10778",""
"03542364-ea50-481a-b228-ba99c999d7ae","success","company-cloud-release","xydev-17127-multiple-20240226-001742","builddiff-queue-parser-20240226-001742","","Swagger Tests","","14","18","","0.08290379555203115","0.020702505003105377","","","","","","","","","","","7801","102","0","0",""
"03542364-ea50-481a-b228-ba99c999d7ae","success","company-cloud-release","xydev-17127-multiple-20240226-001742","builddiff-queue-parser-20240226-001742","","Component Tests","","13","15","","8.805824892765743","9.999309916499897","","","","","","","","","","","532144","1511","0","882",""
"03542364-ea50-481a-b228-ba99c999d7ae","success","company-cloud-release","xydev-17127-multiple-20240226-001742","builddiff-queue-parser-20240226-001742","","Sanity Integration","","9","4","","33.676963558375085","41.95017597129252","","","","","","","","","","","8562748","136","0","72",""

Add and update tags for build

put

Add and update tags for build

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

buildNamestringRequired

Build name

Body
tagsarrayOptional

List of tags to assign to the build

Responses
400

Missing or invalid request parameters

application/json
put/sl-api/v1/builds/apps/{appName}/branches/{branchName}/builds/{buildName}
PUT /sl-api/v1/builds/apps/{appName}/branches/{branchName}/builds/{buildName} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15

[
  "tag1",
  "tag2"
]
{
  "error": {
    "code": 1002,
    "message": "Bad request - Missing parameter"
  }
}

Delete tag from specific build

delete

Delete tag from specific build

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

buildNamestringRequired

Build name

tagstringRequired

Tag name

Responses
401

Invalid or missing Bearer token

application/json
delete/sl-api/v1/builds/apps/{appName}/branches/{branchName}/builds/{buildName}/tags/{tag}
DELETE /sl-api/v1/builds/apps/{appName}/branches/{branchName}/builds/{buildName}/tags/{tag} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "error": {
    "code": 1002,
    "message": "Bad request - Missing parameter"
  }
}

Filter builds by tags

get

Filter builds by tags.

Query Parameters

Response Attributes

| Attribute | type |

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

Responses
200

Filter builds by tags

application/json
get/sl-api/v1/builds/apps/{appName}/filter
GET /sl-api/v1/builds/apps/{appName}/filter HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 1058,
    "next": 50,
    "list": [
      {
        "buildSessionId": "b2a650ad-9347-4b71-b85e-f09c451fd1f3",
        "appName": "Boutique",
        "branchName": "public",
        "buildName": "Mon, 04 Mar 2024 17:10:57 GMT",
        "generated": 1709572257330
      },
      {
        "buildSessionId": "9284f9f0-e247-4206-b897-7b52bb251916",
        "appName": "Boutique",
        "branchName": "public",
        "buildName": "Thu, 07 Mar 2024 23:06:27 GMT",
        "generated": 1709852787397
      }
    ]
  }
}

Get Build Metadata

get

Get detailed metadata description for a specific build.

Request Parameters

Response Attributes

Build Object

RefBuild Object

ComponentBuild Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

Responses
200

Get Build Metadata_svg

application/json
get/sl-api/v1/builds/{bsid}
GET /sl-api/v1/builds/{bsid} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "appName": "Boutique",
    "build": {
      "bsid": "9284f9f0-e247-4206-b897-7b52bb251916",
      "name": "Thu, 07 Mar 2024 23:06:27 GMT",
      "generated": "2024-03-07T23:06:27.397Z",
      "isIntegration": true
    },
    "branchName": "public",
    "refBuild": {
      "name": "Mon, 04 Mar 2024 17:10:57 GMT",
      "generated": "2024-03-04T17:10:57.330Z",
      "branchName": "public",
      "buildsAgo": 1,
      "isPinned": false
    },
    "buildScanStatus": "Completed",
    "buildFailureMessage": null,
    "buildDuration": null,
    "isReference": false,
    "isPr": false,
    "components": [
      {
        "appName": "adservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "modified",
        "isFilteredOut": false
      },
      {
        "appName": "recommendationservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "modified",
        "isFilteredOut": false
      },
      {
        "appName": "chechoutservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "modified",
        "isFilteredOut": false
      },
      {
        "appName": "paymentservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "modified",
        "isFilteredOut": false
      },
      {
        "appName": "emailservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "modified",
        "isFilteredOut": false
      },
      {
        "appName": "productcatalogservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "modified",
        "isFilteredOut": false
      },
      {
        "appName": "currencyservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "modified",
        "isFilteredOut": false
      },
      {
        "appName": "shippingservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "modified",
        "isFilteredOut": false
      },
      {
        "appName": "cartservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "added",
        "isFilteredOut": false
      },
      {
        "appName": "frontendservice",
        "branchName": "public",
        "buildName": "svgbld-1234",
        "status": "added",
        "isFilteredOut": false
      }
    ],
    "status": "ended",
    "technology": "nodejs"
  }
}

Get Quality Status

get

Get detailed information for a build's quality gate status.

Request Parameters

Response Attributes

QualityStatusSummary Object

QualityStatus Object

QualityStatusBuild Object

RuleReq Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

Responses
200

Get Quality Status_svg

application/json
get/sl-api/v1/builds/{bsid}/quality-status
GET /sl-api/v1/builds/{bsid}/quality-status HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "result": "passed",
    "summary": {
      "failedTests": {
        "result": "passed",
        "rule": {
          "entireBuild": true,
          "testStages": [],
          "operator": "greater",
          "expectedValue": 0,
          "valueType": "number"
        },
        "buildSummary": {
          "value": 0,
          "result": "passed"
        }
      },
      "modifiedCoverage": {
        "result": "passed",
        "rule": {
          "entireBuild": true,
          "testStages": [],
          "operator": "less",
          "expectedValue": 50,
          "valueType": "percentage"
        },
        "buildSummary": {
          "value": null,
          "result": "passed"
        }
      }
    }
  }
}

Set Reference Build

post

Set build as reference build.

Request Parameters

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

Responses
200

Set Reference Build_svg

No content

post/sl-api/v1/builds/{bsid}/reference
POST /sl-api/v1/builds/{bsid}/reference HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get Previous Build to Recalculate

get

Get Previous Build to Recalculate

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get Previous Build to Recalculate

application/json
get/sl-api/v1/builds/{bsid}/test-stages/{testStage}/previous
GET /sl-api/v1/builds/{bsid}/test-stages/{testStage}/previous HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 500,
    "next": 50,
    "previous": 0,
    "list": [
      {
        "branchName": "dev-1",
        "buildName": "build-1",
        "bsId": "some-bsid"
      }
    ]
  }
}

Get Tests State

get

Get detailed description for a build's test states.

Request Parameters

Response Attributes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

Responses
200

Get Tests State_svg

application/json
get/sl-api/v1/builds/{bsid}/tests-state
GET /sl-api/v1/builds/{bsid}/tests-state HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "entireBuild": "ENDED",
    "testStages": {
      "Pytest tests": "ENDED",
      "Soapui-Tests": "ENDED",
      "Mocha tests": "ENDED",
      "postman tests": "ENDED",
      "Junit without testNG": "ENDED",
      "Junit support testNG": "ENDED",
      "Cucmber framework java": "ENDED",
      "Robot Tests": "ENDED",
      "Junit without testNG-gradle": "ENDED",
      "NUnit-Tests": "ENDED",
      "MS-Tests": "ENDED"
    }
  }
}

Get Code Domains

get

Get list of code domains.

Query Parameters

Response Attributes

CodeDomain Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Query parameters
codeDomainNamesstringOptional

codeDomainNames

Responses
200

Get Code Domains

application/json
get/sl-api/v1/code-domains
GET /sl-api/v1/code-domains HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "codeDomains": [
      {
        "codeDomainName": "FrontEnd Team",
        "apps": [
          {
            "appName": "auth-serice"
          },
          {
            "appName": "web-ui"
          }
        ]
      },
      {
        "codeDomainName": "Backend Team",
        "apps": [
          {
            "appName": "db-serice"
          },
          {
            "appName": "tools"
          }
        ]
      }
    ]
  }
}

Create Code Domain

post

Create new code domain or in case it is already exist, will override existing code domain apps with list provided.
Note: Apps must be reported at least once to SeaLights before they can be used in a Code Domain.

Request Body

Response Status Codes

CodeDomainApp Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Body
codeDomainNamestringRequired

Name for the new code domain

appsarrayOptional

List of applications to include in this code domain

Responses
201

Create Code Domain_svg2

No content

post/sl-api/v1/code-domains
POST /sl-api/v1/code-domains HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "codeDomainName": "team2",
  "apps": [
    {
      "appName": "Boutique"
    },
    {
      "appName": "Cart"
    }
  ]
}

No content

Delete Code Domain

delete

Delete existing code domain

Request Parameters

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
codeDomainNamestringRequired

Code domain name

Responses
200

Delete Code Domain

No content

delete/sl-api/v1/code-domains/{codeDomainName}
DELETE /sl-api/v1/code-domains/{codeDomainName} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get Code Labels

get

Get list of code labels.

Query Parameters

Response Attributes

CodeLabel Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Get Code Labels_svg

application/json
get/sl-api/v1/code-labels
GET /sl-api/v1/code-labels HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "codeLabels": [
      {
        "id": "65f4b80b8536aed488f388e2",
        "name": "team2",
        "categoryId": "65f4b4fe8536aed488f37119"
      }
    ]
  }
}

Bulk create code label rules

post

Upload code label rules CSV file and create bulk code label rules for given app and category name

Path Parameters

Request Body (CSV Multipart)

Response Attributes

Status Codes

CodeLabelRuleError Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

categoryNamestringRequired

Code label category name

Responses
200

Bulk create code label rules

application/json
post/sl-api/v1/code-labels/apps/{appName}/categories/{categoryName}/rules
POST /sl-api/v1/code-labels/apps/{appName}/categories/{categoryName}/rules HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "successCount": 1000,
    "failuresCount": 10
    "errors": [
      {
        "labelName": "some label",
        "ruleType": "ExactMatch",
        "path": "/folder/path/to/file.js",
        "reason": "some reason",
        "index": 0
      }
    ]
  }
}

Bulk delete code label rules

delete

Delete all code label rules for given app and category name

Path Parameters

Response Attributes

Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

categoryNamestringRequired

Code label category name

Responses
200

Bulk delete code label rules

application/json
delete/sl-api/v1/code-labels/apps/{appName}/categories/{categoryName}/rules
DELETE /sl-api/v1/code-labels/apps/{appName}/categories/{categoryName}/rules HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "deletedCount": 300
  }
}

Download Code to Test CSV

get

Get modified code-to-test csv for specifc bsId and test stage.

The data will take into account only modifications has been made on that bsId.

API will return HTTP status 200 - wiith CSV data when request is valid.

API will return HTTP status 425 - Too Early in case date still calculated.

Request Parameters

Response Attributes (CSV format)

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsIdstringRequired

Build Session ID (BSID)

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
401

Invalid or missing Bearer token

application/json
get/sl-api/v1/code-to-test/builds/{bsId}/test-stages/{testStage}/csv
GET /sl-api/v1/code-to-test/builds/{bsId}/test-stages/{testStage}/csv HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "error": {
    "code": 1002,
    "message": "Bad request - Missing parameter"
  }
}

InitialFlowCapOne

get

Get aggregated coverage data for a specific build and test stages. By default, the data retention for this response is 3 months. If you need different retention, please consult with your Solution Engineer or Customer Success Manager.

Request Parameters

Query Parameters

Response Attributes

CoverageDetails Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

Query parameters
testStagesstringOptional

array of test stage names to be resolved

Responses
200

Get Aggregated Coverage Report Data per App Copy

application/json
get/sl-api/v1/coverage/builds/{bsid}
GET /sl-api/v1/coverage/builds/{bsid} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "bsid": "9284f9f0-e247-4206-b897-7b52bb251916",
    "entireBuild": {
      "isHighPriority": false,
      "qrs": {
        "method": 0,
        "branch": 0,
        "line": null
      },
      "overallCoverage": {
        "method": 67.3913043478261,
        "branch": 0
      },
      "modifiedCodeCoverage": {
        "branch": null,
        "method": null
      },
      "modifiedTotals": {
        "branch": 0,
        "method": 0
      },
      "overallTotals": {
        "method": 184,
        "branch": null,
        "line": null
      }
    }
  }
}

Download Build Coverage CSV

get

If we want to get the complete metadata of each build, we can request it like so. In this response we can get the build's reference build, it's duration, components (for integration builds) and more. For complete information see Get Build Metadata.

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

Responses
200

Download Build Coverage CSV_svg

application/json
get/sl-api/v1/coverage/builds/{bsid}/csv
GET /sl-api/v1/coverage/builds/{bsid}/csv HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
App Name,Type,Name,Line Number,File Path,File Name,Contributors,Status,Is Anonymous,Is Auto Generated,Is Deprecated,Is Constructor,Is Getter / Setter,Is High Priority,Code Labels,Ignored On,MS-Tests,NUnit-Tests,Junit without testNG-gradle,Robot Tests,Cucmber framework java,Junit support testNG,Junit without testNG,postman tests,Mocha tests,Soapui-Tests,Pytest tests
adservice,method,public AdService(),43,hipstershop/AdService,AdService.java,,unchanged,No,No,No,Yes,No,No,,Entire Build,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private void start(),56,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,lambda expression: void lambda(),71,hipstershop/AdService,AdService.java,,unchanged,Yes,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private void stop(),80,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private Collection getAdsByCategory(String),126,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private List getRandomAds(),132,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private static AdService getInstance(),141,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private void blockUntilShutdown(),148,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private static ImmutableListMultimap createAdsMap(),155,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private static void initStats(),200,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private static void initTracing(),214,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,public static void main(String[]),231,hipstershop/AdService,AdService.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,lambda expression: void lambda(),233,hipstershop/AdService,AdService.java,,unchanged,Yes,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private AdService$AdServiceImpl(),86,hipstershop/AdService$AdServiceImpl,AdService.java,,unchanged,No,No,No,Yes,No,No,,Entire Build,Yes,No,No,No,No,No,No,No,No,No,No
adservice,method,"public void getAds(Demo$AdRequest, StreamObserver)",97,hipstershop/AdService$AdServiceImpl,AdService.java,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,No,Yes,Yes,No,Yes,No,No,No
adservice,method,private AdServiceClient(ManagedChannel),58,hipstershop/AdServiceClient,AdServiceClient.java,,unchanged,No,No,No,Yes,No,No,,Entire Build,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private void shutdown(),64,hipstershop/AdServiceClient,AdServiceClient.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,public void getAds(String),71,hipstershop/AdServiceClient,AdServiceClient.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,private static int getPortOrDefaultFromArgs(String[]),87,hipstershop/AdServiceClient,AdServiceClient.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,"private static String getStringOrDefaultFromArgs(String[], int, String)",100,hipstershop/AdServiceClient,AdServiceClient.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
adservice,method,public static void main(String[]),113,hipstershop/AdServiceClient,AdServiceClient.java,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
cartservice,method,Void SetStateMachine(IAsyncStateMachine) of async Task<Empty> AddItem(AddItemRequest),0,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
cartservice,method,"public async Task<Empty> AddItem(AddItemRequest, ServerCallContext)",0,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,Yes
cartservice,method,Void SetStateMachine(IAsyncStateMachine) of async Task<Empty> EmptyCart(EmptyCartRequest),0,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
cartservice,method,"public async Task<Empty> EmptyCart(EmptyCartRequest, ServerCallContext)",0,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,Yes
cartservice,method,private static Void .cctor(),26,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,Yes,No,No,,Entire Build,Yes,No,No,No,No,No,No,No,No,No,No
cartservice,method,public Void .ctor(ICartStore),29,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,Yes,No,No,,Entire Build,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes
cartservice,method,Void MoveNext() of async Task<Empty> AddItem(AddItemRequest),36,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,Yes
cartservice,method,"public Task<Cart> GetCart(GetCartRequest, ServerCallContext)",42,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes
cartservice,method,Void MoveNext() of async Task<Empty> EmptyCart(EmptyCartRequest),47,cartservice/services/CartService,CartService.cs,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,Yes
cartservice,method,public Void .ctor(ICartStore),28,cartservice/services/HealthCheckService,HealthCheckService.cs,,unchanged,No,No,No,Yes,No,No,,Entire Build,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes
cartservice,method,"public Task<HealthCheckResponse> Check(HealthCheckRequest, ServerCallContext)",35,cartservice/services/HealthCheckService,HealthCheckService.cs,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes
chechoutservice,method,func checkoutservice.main.go.init#1 () ,50,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,func main () ,84,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,func initStats () ,146,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,func initTracing () ,150,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,"func initProfiling (service, version string) ",176,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,"func mustMapEnv (target *string, envKey string) ",198,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,"func mustConnGRPC (ctx context.Context, conn **grpc.ClientConn, addr string) ",206,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) Check (ctx context.Context, req *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)",219,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
chechoutservice,method,"func (*checkoutService) Watch (req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error",223,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) PlaceOrder (ctx context.Context, req *pb.PlaceOrderRequest) (*pb.PlaceOrderResponse, error)",227,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) prepareOrderItemsAndShippingQuoteFromCart (ctx context.Context, userID, userCurrency string, address *pb.Address) (orderPrep, error)",285,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) quoteShipping (ctx context.Context, address *pb.Address, items []*pb.CartItem) (*pb.Money, error)",310,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) getUserCart (ctx context.Context, userID string) ([]*pb.CartItem, error)",321,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) emptyUserCart (ctx context.Context, userID string) error",329,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) prepOrderItems (ctx context.Context, items []*pb.CartItem, userCurrency string) ([]*pb.OrderItem, error)",336,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) convertCurrency (ctx context.Context, from *pb.Money, toCurrency string) (*pb.Money, error)",356,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) chargeCard (ctx context.Context, amount *pb.Money, paymentInfo *pb.CreditCardInfo) (string, error)",366,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) sendOrderConfirmation (ctx context.Context, email string, order *pb.OrderResult) error",376,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func (*checkoutService) shipOrder (ctx context.Context, address *pb.Address, items []*pb.CartItem) (string, error)",383,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,func IsValid (m pb.Money) bool,35,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,func signMatches (m pb.Money) bool,39,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,func validNanos (nanos int32) bool,43,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,func IsZero (m pb.Money) bool,46,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,func IsPositive (m pb.Money) bool,50,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,func IsNegative (m pb.Money) bool,56,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,"func AreSameCurrency (l, r pb.Money) bool",62,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,"func AreEquals (l, r pb.Money) bool",68,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,func Negate (m pb.Money) pb.Money,74,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
chechoutservice,method,"func Must (v pb.Money, err error) pb.Money",83,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func Sum (l, r pb.Money) (pb.Money, error)",93,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
chechoutservice,method,"func MultiplySlow (m pb.Money, n uint32) pb.Money",125,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,No,No,No,No,No,No,No
currencyservice,method,level,73,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
currencyservice,method,_loadProto,82,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
currencyservice,method,_getCurrencyData,100,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,No,Yes,Yes,Yes,No,No,Yes,No
currencyservice,method,_carry,108,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,No,Yes,Yes,Yes,No,No,Yes,No
currencyservice,method,getSupportedCurrencies,119,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,No,Yes,Yes,Yes,No,No,Yes,No
currencyservice,method,(Anonymous),121,server.js,server.js,,unchanged,Yes,No,No,No,No,No,,,Yes,Yes,No,No,Yes,Yes,Yes,No,No,Yes,No
currencyservice,method,convert,129,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,No,Yes,Yes,Yes,No,No,Yes,No
currencyservice,method,(Anonymous),131,server.js,server.js,,unchanged,Yes,No,No,No,No,No,,,Yes,Yes,No,No,Yes,Yes,Yes,No,No,Yes,No
currencyservice,method,check,165,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,No,Yes,Yes,Yes,No,No,Yes,No
currencyservice,method,main,173,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
currencyservice,method,(Anonymous),182,server.js,server.js,,unchanged,Yes,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
emailservice,method,send_confirmation_email,25,email_client.py,email_client.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
emailservice,method,Check,52,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes
emailservice,method,Watch,56,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
emailservice,method,__init__,61,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
emailservice,method,send_email,66,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
emailservice,method,SendOrderConfirmation,85,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
emailservice,method,SendOrderConfirmation,108,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,Yes
emailservice,method,Check,113,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
emailservice,method,start,117,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
emailservice,method,initStackdriverProfiling,138,email_server.py,email_server.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
emailservice,method,add_fields,24,logger.py,logger.py,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,Yes
emailservice,method,getJSONLogger,33,logger.py,logger.py,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
frontendservice,method,func frontend.deployment_details.go.init#1 () ,15,deployment_details.go,deployment_details.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
frontendservice,method,func initializeLogger () ,22,deployment_details.go,deployment_details.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
frontendservice,method,func loadDeploymentDetails () ,36,deployment_details.go,deployment_details.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func (*frontendServer) homeHandler (w http.ResponseWriter, r *http.Request) ",55,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,No,Yes,Yes,No,No,No
frontendservice,method,func (*platformDetails) setPlatformDetails (env string) ,126,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,No,Yes,Yes,No,No,No
frontendservice,method,"func (*frontendServer) productHandler (w http.ResponseWriter, r *http.Request) ",148,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func (*frontendServer) addToCartHandler (w http.ResponseWriter, r *http.Request) ",212,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,"func (*frontendServer) emptyCartHandler (w http.ResponseWriter, r *http.Request) ",236,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,No,No,No,Yes,No,No,No
frontendservice,method,"func (*frontendServer) viewCartHandler (w http.ResponseWriter, r *http.Request) ",248,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,"func (*frontendServer) placeOrderHandler (w http.ResponseWriter, r *http.Request) ",325,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
frontendservice,method,"func (*frontendServer) logoutHandler (w http.ResponseWriter, r *http.Request) ",399,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func (*frontendServer) setCurrencyHandler (w http.ResponseWriter, r *http.Request) ",411,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,No,No,No,Yes,No,No,No
frontendservice,method,"func (*frontendServer) chooseAd (ctx context.Context, ctxKeys []string, log logrus.FieldLogger) *pb.Ad",434,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func renderHTTPError (log logrus.FieldLogger, r *http.Request, w http.ResponseWriter, err error, code int) ",443,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,No,Yes,No,No,No,No,No,Yes,No,No,No
frontendservice,method,func currentCurrency (r *http.Request) string,463,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func sessionID (r *http.Request) string,471,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func cartIDs (c []*pb.CartItem) []string,479,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,func cartSize (c []*pb.CartItem) int,488,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func renderMoney (money pb.Money) string,496,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func renderCurrencyLogo (currencyCode string) string,501,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func stringinSlice (slice []string, val string) bool",518,handlers.go,handlers.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,No,Yes,Yes,No,No,No
frontendservice,method,func main () ,85,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func main.func1 (w http.ResponseWriter, _ *http.Request) ",150,main.go,main.go,,unchanged,Yes,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func main.func2 (w http.ResponseWriter, _ *http.Request) ",151,main.go,main.go,,unchanged,Yes,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func initStats (log logrus.FieldLogger) ,161,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func initTracing (log logrus.FieldLogger, ctx context.Context, svc *frontendServer) (*sdktrace.TracerProvider, error)",165,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func initProfiling (log logrus.FieldLogger, service, version string) ",182,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func mustMapEnv (target *string, envKey string) ",205,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func mustConnGRPC (ctx context.Context, conn **grpc.ClientConn, addr string) ",213,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
frontendservice,method,func (*responseRecorder) Header () http.Header,41,middleware.go,middleware.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,Yes,No,Yes,No,No,No
frontendservice,method,"func (*responseRecorder) Write (p []byte) (int, error)",43,middleware.go,middleware.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func (*responseRecorder) WriteHeader (statusCode int) ,52,middleware.go,middleware.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func (*logHandler) ServeHTTP (w http.ResponseWriter, r *http.Request) ",57,middleware.go,middleware.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func ServeHTTP.func1 () ,73,middleware.go,middleware.go,,unchanged,Yes,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func ensureSessionID (next http.Handler) http.HandlerFunc,85,middleware.go,middleware.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func ensureSessionID.func1 (w http.ResponseWriter, r *http.Request) ",86,middleware.go,middleware.go,,unchanged,Yes,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,func IsValid (m pb.Money) bool,35,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,func signMatches (m pb.Money) bool,39,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,func validNanos (nanos int32) bool,43,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,func IsZero (m pb.Money) bool,46,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,func IsPositive (m pb.Money) bool,50,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,func IsNegative (m pb.Money) bool,56,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func AreSameCurrency (l, r pb.Money) bool",62,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func AreEquals (l, r pb.Money) bool",68,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,func Negate (m pb.Money) pb.Money,74,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
frontendservice,method,"func Must (v pb.Money, err error) pb.Money",83,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,"func Sum (l, r pb.Money) (pb.Money, error)",93,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,"func MultiplySlow (m pb.Money, n uint32) pb.Money",125,money/money.go,money.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,No,No,No,Yes,No,No,No
frontendservice,method,"func (*frontendServer) getCurrencies (ctx context.Context) ([]string, error)",30,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func (*frontendServer) getProducts (ctx context.Context) ([]*pb.Product, error)",45,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,No,Yes,Yes,No,No,No
frontendservice,method,"func (*frontendServer) getProduct (ctx context.Context, id string) (*pb.Product, error)",51,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func (*frontendServer) getCart (ctx context.Context, userID string) ([]*pb.CartItem, error)",57,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func (*frontendServer) emptyCart (ctx context.Context, userID string) error",62,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,No,No,No,Yes,No,No,No
frontendservice,method,"func (*frontendServer) insertCart (ctx context.Context, userID, productID string, quantity int32) error",67,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,"func (*frontendServer) convertCurrency (ctx context.Context, money *pb.Money, currency string) (*pb.Money, error)",77,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func (*frontendServer) getShippingQuote (ctx context.Context, items []*pb.CartItem, currency string) (*pb.Money, error)",87,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
frontendservice,method,"func (*frontendServer) getRecommendations (ctx context.Context, userID string, productIDs []string) ([]*pb.Product, error)",99,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
frontendservice,method,"func (*frontendServer) getAd (ctx context.Context, ctxKeys []string) ([]*pb.Ad, error)",119,rpc.go,rpc.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
paymentservice,method,level,23,charge.js,charge.js,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
paymentservice,method,constructor,31,charge.js,charge.js,,unchanged,No,No,No,Yes,No,No,,Entire Build,No,No,No,No,No,No,No,No,No,No,No
paymentservice,method,constructor,38,charge.js,charge.js,,unchanged,No,No,No,Yes,No,No,,Entire Build,No,No,No,No,No,No,No,No,No,No,No
paymentservice,method,constructor,44,charge.js,charge.js,,unchanged,No,No,No,Yes,No,No,,Entire Build,No,No,No,No,No,No,No,No,No,No,No
paymentservice,method,constructor,50,charge.js,charge.js,,unchanged,No,No,No,Yes,No,No,,Entire Build,No,No,No,No,No,No,No,No,No,No,No
paymentservice,method,charge,61,charge.js,charge.js,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,No,Yes,No,No,No,No,No,No
paymentservice,method,level,26,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
paymentservice,method,constructor,33,server.js,server.js,,unchanged,No,No,No,Yes,No,No,,Entire Build,Yes,No,No,No,No,No,No,No,No,No,No
paymentservice,branch,,33,server.js,server.js,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
paymentservice,method,ChargeServiceHandler,50,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,No,Yes,No,No,No,No,No,No
paymentservice,method,CheckHandler,61,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,No,Yes,Yes,Yes,No,No,Yes,No
paymentservice,method,listen,66,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
paymentservice,method,(Anonymous),72,server.js,server.js,,unchanged,Yes,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
paymentservice,method,loadProto,79,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
paymentservice,method,loadAllProtos,93,server.js,server.js,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,"func (*productCatalog) Check (ctx context.Context, req *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)",32,product_catalog.go,product_catalog.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
productcatalogservice,method,"func (*productCatalog) Watch (req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error",36,product_catalog.go,product_catalog.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,"func (*productCatalog) ListProducts (context.Context, *pb.Empty) (*pb.ListProductsResponse, error)",40,product_catalog.go,product_catalog.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
productcatalogservice,method,"func (*productCatalog) GetProduct (ctx context.Context, req *pb.GetProductRequest) (*pb.Product, error)",46,product_catalog.go,product_catalog.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
productcatalogservice,method,"func (*productCatalog) SearchProducts (ctx context.Context, req *pb.SearchProductsRequest) (*pb.SearchProductsResponse, error)",62,product_catalog.go,product_catalog.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,func (*productCatalog) parseCatalog () []*pb.Product,76,product_catalog.go,product_catalog.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,No,No
productcatalogservice,method,func productcatalogservice.server.go.init#1 () ,55,server.go,server.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,func main () ,69,server.go,server.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,func main.func1 () ,102,server.go,server.go,,unchanged,Yes,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,func run (port string) string,124,server.go,server.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,func initStats () ,152,server.go,server.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,func initTracing () error,156,server.go,server.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,"func initProfiling (service, version string) ",180,server.go,server.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,"func mustMapEnv (target *string, envKey string) ",200,server.go,server.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,"func mustConnGRPC (ctx context.Context, conn **grpc.ClientConn, addr string) ",208,server.go,server.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
productcatalogservice,method,func readCatalogFile (catalog *pb.ListProductsResponse) error,221,server.go,server.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
recommendationservice,method,add_fields,24,logger.py,logger.py,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,Yes
recommendationservice,method,getJSONLogger,33,logger.py,logger.py,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
recommendationservice,method,initStackdriverProfiling,41,recommendation_server.py,recommendation_server.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
recommendationservice,method,ListRecommendations,67,recommendation_server.py,recommendation_server.py,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,Yes
recommendationservice,method,Check,85,recommendation_server.py,recommendation_server.py,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes
recommendationservice,method,Watch,89,recommendation_server.py,recommendation_server.py,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
shippingservice,method,func shippingservice.main.go.init#1 () ,41,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
shippingservice,method,func main () ,55,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
shippingservice,method,"func (*server) Check (ctx context.Context, req *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)",106,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes,No,Yes,No
shippingservice,method,"func (*server) Watch (req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error",110,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
shippingservice,method,"func (*server) GetQuote (ctx context.Context, in *pb.GetQuoteRequest) (*pb.GetQuoteResponse, error)",115,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
shippingservice,method,"func (*server) ShipOrder (ctx context.Context, in *pb.ShipOrderRequest) (*pb.ShipOrderResponse, error)",134,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
shippingservice,method,func initStats () ,147,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
shippingservice,method,func initTracing () ,151,main.go,main.go,,unchanged,No,No,No,No,No,No,,,Yes,No,No,No,No,No,No,No,No,No,No
shippingservice,method,"func initProfiling (service, version string) ",155,main.go,main.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
shippingservice,method,func (Quote) String () string,29,quote.go,quote.go,,unchanged,No,No,No,No,No,No,,,No,No,No,No,No,No,No,No,No,No,No
shippingservice,method,func CreateQuoteFromCount (count int) Quote,34,quote.go,quote.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
shippingservice,method,func CreateQuoteFromFloat (value float64) Quote,39,quote.go,quote.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,Yes,No,No,No
shippingservice,method,func CreateTrackingId (salt string) string,27,tracker.go,tracker.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
shippingservice,method,func getRandomLetterCode () uint32,44,tracker.go,tracker.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No
shippingservice,method,func getRandomNumber (digits int) string,49,tracker.go,tracker.go,,unchanged,No,No,No,No,No,No,,,Yes,Yes,No,Yes,Yes,No,No,No,No,No,No

Get List of Custom Reports

get

Get paginated list of custom reports that are available for download.

Query Parameters

Response Attributes

Custom Report Object

UserDetails Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Get List of Custom Reports_svg Copy

application/json
get/sl-api/v1/custom-reports
GET /sl-api/v1/custom-reports HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 0,
    "list": []
  }
}

Download Custom Report

get

Request Parameters

The response is the content of the report data, the content type and body depend on the report uploaded

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
reportIdstringRequired

Report UUID

Responses
200

Download Custom Report

No content

get/sl-api/v1/custom-reports/{reportId}/download
GET /sl-api/v1/custom-reports/{reportId}/download HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get Executions Status List

get

You must provide LabId or/and BuildSessionID (bsid)

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
400

Get Executions Status List

No content

get/sl-api/v1/executions
GET /sl-api/v1/executions HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Create/Update Integration Build's Components

put

Create/Update Integration Build's Components

Note: This endpoint has been marked as deprecated and will not be included in future versions of the SeaLights API. You can still use this endpoint for now, but you should transition to using our new endpoint explained in this document as soon as possible.

Create/update integration build with a specific build session ID (bsid).

If the requested bsid does not exist, create it. Otherwise, add components to it.

To delete components see Delete Integration Build's Components

Request Parameters

Request Body

Array of build session IDs or component details (app name, branch name, build name). If both bsid and app-branch-build are supplies, app-branch-build are prioritized.

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

Body
componentsarrayRequired

List of component objects to add to the integration build

Responses
200

Create/Update Integration Build's Components

No content

put/sl-api/v1/integration-builds/{bsid}/components
PUT /sl-api/v1/integration-builds/{bsid}/components HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 171

[
  {
    "bsid": "component-bsid",
    "appName": "App1",
    "branchName": "Branch",
    "buildName": "build"
  },
  {
    "bsid": "component-bsid",
    "appName": "App3",
    "branchName": "Branch",
    "buildName": "build"
  }
]

No content

Delete Integration Build's Components

delete

Delete Integration Build's Components

Note: This endpoint has been marked as deprecated and will not be included in future versions of the SeaLights API. You can still use this endpoint for now, but you should transition to using our new endpoint explained in this document as soon as possible.

Delete components from a specific integration build.

Request Parameters

Request Body

Array of build session IDs or component details (app name, branch name, build name). If both bsid and app-branch-build are supplies, app-branch-build are prioritized.

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

Body
componentsarrayRequired

List of component identifiers to remove from the integration build

Responses
200

Delete Integration Build's Components

No content

delete/sl-api/v1/integration-builds/{bsid}/components
DELETE /sl-api/v1/integration-builds/{bsid}/components HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 85

[
  {
    "bsid": "component-bsid",
    "appName": "app",
    "branchName": "branch",
    "buildName": "build"
  }
]

No content

Get Lab IDs

get

Get list of lab IDs.

Currently only buildType=integration is supported. If querying with buildType=component an empty list will be returned. This is a placeholder for future implementation which will also support component builds.

Query Parameters

Response Attributes

LabId Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Query parameters
buildTypestringOptional

required, string, one of: [integration | component]

Responses
200

Get Lab IDs

No content

get/sl-api/v1/lab-ids
GET /sl-api/v1/lab-ids HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Resolve Build Session

get

Resolve build session using a lab id and an optional alias

This endpoint should be used only when linking the test runner and the test listener using lab ID.
The BSID that is returned is the one resolved at the time the latest tests stage was run.
If a test stage has not run yet against this lab ID it will return a status code 404 with the error 4000 - "not found".

Query Parameters

Response Attributes

BuildSession Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
labIdstringRequired

Lab ID

Responses
200

Resolve Build Session_svg

application/json
get/sl-api/v1/lab-ids/{labId}/build-sessions/latest
GET /sl-api/v1/lab-ids/{labId}/build-sessions/latest HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "buildSession": {
      "appName": "Boutique",
      "branchName": "public",
      "buildName": "Thu, 07 Mar 2024 23:06:27 GMT",
      "bsid": "9284f9f0-e247-4206-b897-7b52bb251916"
    }
  }
}

Get Live Labs

get

Get Live Labs

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Get Live Labs_svg

application/json
get/sl-api/v1/live-labs
GET /sl-api/v1/live-labs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "labId": "0d30ba91-b930-453a-b26a-88c19a5354b6",
      "customerId": "poc-samantha",
      "appName": "gcp_currencyservice",
      "branchName": "devel-agent",
      "buildName": "svgbld-240312_1547",
      "buildSessionType": "BUILD",
      "created": 1710277606321,
      "checksum": null,
      "buildSessionId": "0d30ba91-b930-453a-b26a-88c19a5354b6",
      "trackingId": "APIGW-738d90e3-7f48-499b-a95f-710c7b01bda6",
      "aliases": [
        {
          "labId": "0d30ba91-b930-453a-b26a-88c19a5354b6"
        }
      ],
      "additionalParams": null
    },
    {
      "labId": "integ_public_Boutique@public-1-0-214",
      "customerId": "poc-samantha",
      "appName": "Boutique",
      "branchName": "public",
      "buildName": "Thu, 07 Mar 2024 23:06:27 GMT",
      "buildSessionType": "BUILD",
      "created": 1709852787308,
      "checksum": null,
      "buildSessionId": "9284f9f0-e247-4206-b897-7b52bb251916",
      "trackingId": "APIGW-d16e92c3-fe2e-49cd-86df-bffb9f143568",
      "aliases": [
        {
          "labId": "integ_public_Boutique@public-1-0-214"
        }
      ],
      "additionalParams": null
    }
  ]
}

Get Live Components by Lab ID

get

Get Live Components by Lab ID

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
labIdstringRequired

Lab ID

Responses
200

Get Live Components by Lab ID_svg

application/json
get/sl-api/v1/live-labs/{labId}/components
GET /sl-api/v1/live-labs/{labId}/components HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "buildSessionId": "23b063dc-4cad-46f7-aa92-9aa04a67eef5"
    },
    {
      "buildSessionId": "4b52d392-2cfd-4498-aca0-7a71e2ade780"
    },
    {
      "buildSessionId": "7528cf0f-1088-4d52-8c8e-d90501beabb3"
    },
    {
      "buildSessionId": "13c92a63-a328-48ed-9d98-d22c263ba0d0"
    },
    {
      "buildSessionId": "2059ad14-0ff2-408f-aaf4-8eecfe17fcb6"
    },
    {
      "buildSessionId": "6b7c2713-4649-4c33-bd93-68783935248a"
    }
  ]
}

Merge models

post

This endpoint accepts 3 required path params and a request body in json format.

Path parameters:

  • appName is the target application name of both sourceBSID and targetBSID.

  • branchName is the target branch name where the statistical model is intended to be merged.

  • testStage is the test stage which statistical model will be copied from source build to the target build.

Request Body (json format) accepts:

  • sourceBsId *Required. The BSID to copy the data from

  • targetBsId *Optional. The BSID to apply the copied data to.

    • If not specified, the system will take the latest build from the appName/branchName where testStage was executed.
Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
401

Invalid or missing Bearer token

application/json
post/sl-api/v1/model/apps/{appName}/branches/{branchName}/test-stages/{testStage}/merge
POST /sl-api/v1/model/apps/{appName}/branches/{branchName}/test-stages/{testStage}/merge HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "error": {
    "code": 1002,
    "message": "Bad request - Missing parameter"
  }
}

Calibrate model

post

Calibrate model

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
bsIdstringRequired

Build Session ID (BSID)

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
401

Invalid or missing Bearer token

application/json
post/sl-api/v1/model/bsIds/{bsId}/testStages/{testStage}/calibrate
POST /sl-api/v1/model/bsIds/{bsId}/testStages/{testStage}/calibrate HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "error": {
    "code": 1002,
    "message": "Bad request - Missing parameter"
  }
}

Generate Group Coverage Trend Report

post

In order to create a new group coverage trend report, we need to generate the report with the desired configuration. If you don't know the exact app and branch names, you can use Get Apps and Get Branches.

Request Body

Response Attributes

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Body
appBranchesarrayRequired

List of app/branch pairs to include in the report

fromintegerRequired

Report start time (Unix epoch milliseconds)

tointegerRequired

Report end time (Unix epoch milliseconds)

intervalstringOptional

Aggregation interval (e.g. daily, weekly)

dateRangeLabelstringOptional

Human-readable label for the date range

Responses
200

Generate Group Coverage Trend Report

application/json
post/sl-api/v1/quality-analytics/trend-reports/group/url
POST /sl-api/v1/quality-analytics/trend-reports/group/url HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 211

{
  "appBranches": [
    {
      "appName": "Service 1",
      "branchName": "origin/master"
    },
    {
      "appName": "Service 2",
      "branchName": "origin/master"
    }
  ],
  "from": 1584628060520,
  "to": 1595317400430,
  "interval": "ONE_WEEK",
  "dateRangeLabel": "CUSTOM"
}
{
  "reportUrl": "https://$DOMAIN/quality-analytics/trend-report/group/$REPORT_ID"
}

Generate Coverage Trend Report

post

In order to create a new coverage trend report, we need to generate the report with the desired configuration. If you don't know the exact app and branch names, you can use Get Apps and Get Branches.

Request Body

Response Attributes

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Body
appNamestringRequired

Application name

branchNamestringRequired

Branch name

fromintegerRequired

Report start time (Unix epoch milliseconds)

tointegerRequired

Report end time (Unix epoch milliseconds)

allBuildsbooleanOptional

If true, includes all builds in the range

intervalstringOptional

Aggregation interval

Responses
200

Generate Coverage Trend Report

application/json
post/sl-api/v1/quality-analytics/trend-reports/single/url
POST /sl-api/v1/quality-analytics/trend-reports/single/url HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 207

{
  "appName": "Maven Example",
  "branchName": "origin/master",
  "from": 1584628060520,
  "to": 1595317400430,
  "allBuilds": true,
  "interval": "ONE_WEEK",
  "testStages": [
    "Unit Tests",
    "Component Tests"
  ],
  "dateRangeLabel": "CUSTOM"
}
{
  "reportUrl": "https://$DOMAIN/quality-analytics/trend-report/$REPORT_ID",
  "reportId": "$REPORT_ID"
}

Get Code Scope Rules Configurations

get

Get list of Code Scope Rules Configurations.

Request Parameters

Query Parameters

Response Attributes

CodeScopeRule Object

UserDetails Object

EditionHistory Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

Responses
200

Get Code Scope Rules Configurations_svg

application/json
get/sl-api/v1/settings/apps/{appName}/code-scope-rules
GET /sl-api/v1/settings/apps/{appName}/code-scope-rules HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 0,
    "records": []
  }
}

Create Code Scope Rules

post

Create code scoped rules for given list of rules

Request Parameters

Request Body

The response contains two arrays: created - with successfully created code scope rules and failed - with code scope rules that failed (with error message)

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

Body
rulesarrayRequired

List of code scope rule objects to create

createdBystringOptional

Identifier of the user creating the rules

Responses
200

Create Code Scope Rules_svg

application/json
post/sl-api/v1/settings/apps/{appName}/code-scope-rules
POST /sl-api/v1/settings/apps/{appName}/code-scope-rules HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 340

{
  "rules": [
    {
      "condition": "Contains",
      "reason": "some reason",
      "path": "some/path/to/file",
      "testStage": "some test stage",
      "scopedRuleType": "Include"
    },
    {
      "condition": "ExactMatch",
      "reason": "some reason",
      "path": "some/path/to/file",
      "testStage": null,
      "scopedRuleType": "Ignore"
    }
  ],
  "createdBy": {
    "firstName": "Some Name",
    "lastName": "Some Name",
    "email": "Email"
  }
}
{
  "data": {
    "created": [
      {
        "ruleId": "65f4baaa8536aed488f39f00",
        "rule": {
          "scopedRuleType": "Ignore",
          "condition": "ExactMatch",
          "path": "some/path/to/file",
          "testStage": null
        }
      },
      {
        "ruleId": "65f4baaa8536aed488f39f02",
        "rule": {
          "scopedRuleType": "Include",
          "condition": "Contains",
          "path": "some/path/to/file",
          "testStage": "some test stage"
        }
      }
    ],
    "failed": []
  }
}

Get Ignore Rules Configurations

get

Get list of Ignore Rules Configurations.

Note: This endpoint has been marked as deprecated and will not be included in future versions of the SeaLights API. You can still use this endpoint for now, but you should transition to using our new endpoint explained here as soon as possible.

Request Parameters

Query Parameters

Response Attributes

IgnoreRule Object

UserDetails Object

Note: This endpoint has been marked as deprecated and will not be included in future versions of the SeaLights API. You can still use this endpoint for now, but you should transition to using our new endpoint explained here as soon as possible.

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

Responses
200

Get Ignore Rules Configurations_svg

application/json
get/sl-api/v1/settings/apps/{appName}/ignore-rules
GET /sl-api/v1/settings/apps/{appName}/ignore-rules HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 1,
    "records": [
      {
        "ruleId": "65f4baaa8536aed488f39f00",
        "appName": ":appName",
        "testStage": null,
        "condition": "ExactMatch",
        "scope": "^some\\/path\\/to\\/file$",
        "reason": "some reason",
        "createdBy": {
          "firstName": "Some Name",
          "lastName": "Some Name",
          "email": "Email"
        },
        "path": "some/path/to/file",
        "scopedRuleType": "Ignore",
        "scopedRuleLevel": "File",
        "methodName": null
      }
    ]
  }
}

Create Ignore Rules

post

Request Parameters

Request Body (array of)

The response is a id's of created ignore rules

Response Status Codes

UserDetails Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

Body
rulesarrayRequired

List of ignore rule objects to create

Responses
201

Create Ignore Rules

application/json
post/sl-api/v1/settings/apps/{appName}/ignore-rules
POST /sl-api/v1/settings/apps/{appName}/ignore-rules HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 83

[
  {
    "condition": "Contains",
    "reason": "some reason",
    "path": "some path",
    "createdBy": {}
  }
]
{
  "data": [
    "6043dbea392532c5d4ce248f"
  ]
}

Update Ignore Rule

put

Note: This endpoint has been marked as deprecated and will not be included in future versions of the SeaLights API. You can still use this endpoint for now, but you should transition to using our new endpoint explained here as soon as possible.

Request Parameters

Request Body

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

ruleIdstringRequired

Rule UUID

Responses
200

Update Ignore Rule

No content

put/sl-api/v1/settings/apps/{appName}/ignore-rules/{ruleId}
PUT /sl-api/v1/settings/apps/{appName}/ignore-rules/{ruleId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Delete Ignore Rule

delete

Delete Ignore Rule.

Note: This endpoint has been marked as deprecated and will not be included in future versions of the SeaLights API. You can still use this endpoint for now, but you should transition to using our new endpoint explained here as soon as possible.

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

ruleIdstringRequired

Rule UUID

Responses
200

Delete Ignore Rule

No content

delete/sl-api/v1/settings/apps/{appName}/ignore-rules/{ruleId}
DELETE /sl-api/v1/settings/apps/{appName}/ignore-rules/{ruleId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update Code Scope Rule

put

Update code scope rule by rule ID

Request Parameters

Request Body

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
ruleIdstringRequired

Rule UUID

Body
conditionstringRequired

Rule match condition

reasonstringOptional

Human-readable reason for the rule

pathstringRequired

File path pattern the rule applies to

testStagestringOptional

Test stage scope for this rule

scopedRuleTypestringOptional

Type of scoped rule

modifiedBystringOptional

Identifier of the user modifying the rule

Responses
200

Update Code Scope Rule

No content

put/sl-api/v1/settings/code-scope-rules/{ruleId}
PUT /sl-api/v1/settings/code-scope-rules/{ruleId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 208

{
  "condition": "Contains",
  "reason": "some reason",
  "path": "some/path/to/file",
  "testStage": "some test stage",
  "scopedRuleType": "Ignore",
  "modifiedBy": {
    "firstName": "Some Name",
    "lastName": "Some Name",
    "email": "Email"
  }
}

No content

Delete Code Scope Rule

delete

Delete Code Scope Rule by rule ID.

Request Parameters

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
ruleIdstringRequired

Rule UUID

Responses
200

Delete Code Scope Rule

No content

delete/sl-api/v1/settings/code-scope-rules/{ruleId}
DELETE /sl-api/v1/settings/code-scope-rules/{ruleId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get Builds

get

Get list of builds.

The resulting SlimBuild object only has some metadata. For extended build metadata, see Get Build Metadata.

If prNum is provided then repoUrl must also be provided and all other query params will be ignored.

Query Parameters

Response Attributes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Get Builds_svg2

application/json
get/sl-api/v1/slim-builds
GET /sl-api/v1/slim-builds HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "builds": [
      {
        "bsid": "759b6c25-81ff-4fc3-a577-b1ecd33ded9d",
        "appName": "paymentservice",
        "branchName": "public",
        "buildName": "public-1-0-2",
        "generated": 1707895800364,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "f07f3e4c-382e-4de8-b2a2-80b73f4783bc",
        "appName": "currencyservice",
        "branchName": "public",
        "buildName": "public-1-0-2",
        "generated": 1707895838001,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "2f4449df-8fb1-4cc6-bb35-ef74a0ff2f34",
        "appName": "emailservice",
        "branchName": "public",
        "buildName": "public-1-0-211",
        "generated": 1707895886195,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "python"
      },
      {
        "bsid": "4f469c1c-70fe-4142-bc64-935da3ec7142",
        "appName": "shippingservice",
        "branchName": "public",
        "buildName": "public-1-0-211",
        "generated": 1707895927211,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "GoLang"
      },
      {
        "bsid": "cf20e6b9-164e-4ad4-bdf1-1fdeb180f2f1",
        "appName": "frontendservice",
        "branchName": "public",
        "buildName": "public-1-0-2",
        "generated": 1707895964920,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "GoLang"
      },
      {
        "bsid": "cdf742a8-2137-45e1-a090-feb1a565c394",
        "appName": "chechoutservice",
        "branchName": "public",
        "buildName": "public-1-0-211",
        "generated": 1707896096218,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "GoLang"
      },
      {
        "bsid": "31536c92-391d-4920-a26e-ce31dffe9dbb",
        "appName": "paymentservice",
        "branchName": "public",
        "buildName": "public-1-0-211",
        "generated": 1707896125129,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "e584549a-268c-4d5f-b061-73d119bb5565",
        "appName": "chechoutservice",
        "branchName": "public",
        "buildName": "public-1-0-2",
        "generated": 1707896195770,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "GoLang"
      },
      {
        "bsid": "797b52a9-ef21-4e91-837a-ea79dbaeba88",
        "appName": "Cart",
        "branchName": "main",
        "buildName": "4",
        "generated": 1707896223414,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "e02bda76-5633-41f5-87ab-d70fa145ccaa",
        "appName": "productcatalogservice",
        "branchName": "public",
        "buildName": "public-1-0-211",
        "generated": 1707896342087,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "GoLang"
      },
      {
        "bsid": "326667b1-9c57-44d4-937b-0450c1d329fa",
        "appName": "emailservice",
        "branchName": "public",
        "buildName": "public-1-0-2",
        "generated": 1707896429696,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "python"
      },
      {
        "bsid": "9c350918-cdad-4554-bd23-a342725c140b",
        "appName": "productcatalogservice",
        "branchName": "public",
        "buildName": "public-1-0-2",
        "generated": 1707896503856,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "GoLang"
      },
      {
        "bsid": "9ad9b2a0-0973-49d3-bea9-bd22c3e295e8",
        "appName": "otel_currencyservice",
        "branchName": "main",
        "buildName": "240214_2320",
        "generated": 1707952842181,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "89207356-0f24-4cde-8f6e-4989b375d7ff",
        "appName": "otel_currencyservice",
        "branchName": "main",
        "buildName": "240215_1415",
        "generated": 1708006550841,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "1aef8bb7-622c-49fa-9fc4-3343cf9266f8",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240215_1526",
        "generated": 1708010789879,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "cd25015f-b3ac-4206-b1e5-035f2fd28158",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240215_1640",
        "generated": 1708015247500,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "a379c274-8a55-45cb-a9a0-a382ab74c20c",
        "appName": "otel_currencyservice",
        "branchName": "main",
        "buildName": "240215_1643",
        "generated": 1708015422023,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "3da78a4a-1c80-4138-b38e-05175f97ff35",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240215_1708",
        "generated": 1708016905736,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "62a18961-c7b7-40fc-9526-daaed8261c87",
        "appName": "otel_currencyservice",
        "branchName": "main",
        "buildName": "240215_2011",
        "generated": 1708027885165,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "b7a1c3ef-6132-4452-89d3-f8abe6fc656f",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240215_2013",
        "generated": 1708028003178,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "ff37f654-a449-484f-bb29-c6e90cdd4c8e",
        "appName": "otel_currencyservice",
        "branchName": "main",
        "buildName": "240215_2243",
        "generated": 1708037024624,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "29dfc753-ccd3-4602-bfdb-294fa24f0a03",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240215_2311",
        "generated": 1708038686112,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "7ba003fd-4914-42c5-8a6d-4ceeb2f95625",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1408",
        "generated": 1708092534322,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "dffb3bed-e84f-4407-b417-4d32eb80837b",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1416",
        "generated": 1708092989601,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "8a36a923-8d51-434a-8613-a350fe90e56f",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1422",
        "generated": 1708093353061,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "6ec4ee68-6386-42da-951d-dfd96ed0a240",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1426",
        "generated": 1708093609220,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "a5bb76a9-4944-4347-a0d8-11f3de1102fa",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1448",
        "generated": 1708094931406,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "c0f9cd42-94d7-4571-87a4-a17408b7b1a3",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1503",
        "generated": 1708095799940,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "6413f018-05e0-4672-849c-ea9885dea098",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1505",
        "generated": 1708095927544,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "82d2cdab-75f6-41d0-958a-6433b767cd80",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1507",
        "generated": 1708096065335,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "a351f115-b1d4-4054-ae78-e23f1625887c",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1515",
        "generated": 1708096526008,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "3992b9b6-5387-4536-8fe3-981682a58158",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1526",
        "generated": 1708097207809,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "e1c2a3ca-9e75-4635-9bf7-21e6ed603346",
        "appName": "otel_currencyservice",
        "branchName": "main",
        "buildName": "240216_1545",
        "generated": 1708098316180,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "e36d0950-823c-410f-9d42-f3fba0d9e9a0",
        "appName": "otel_currencyservice",
        "branchName": "main",
        "buildName": "240216_1604",
        "generated": 1708099502202,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "cfe97924-4e21-4baf-8752-f0d95f1b197f",
        "appName": "otel_currencyservice",
        "branchName": "main",
        "buildName": "240216_1622",
        "generated": 1708100538160,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "48ccce15-d293-467c-826b-4dc21b86d585",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1636",
        "generated": 1708101410616,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "f0693bb5-56ca-478d-9b4b-fce237f74da7",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1652",
        "generated": 1708102354816,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "5bc9b6bf-925d-4cc5-bc9d-b67448c8a3ce",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1654",
        "generated": 1708102471712,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "ab8a41da-2815-4d47-aee5-99a247b26595",
        "appName": "otel_cartservice",
        "branchName": "main",
        "buildName": "240216_1656",
        "generated": 1708102596838,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "25b02e9d-1650-419c-b976-d435b5b935e7",
        "appName": "gcp_cartservice",
        "branchName": "devel",
        "buildName": "240216_1815",
        "generated": 1708107322399,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "85dd41ad-3b38-4d35-9bd3-ad4bfbb0f738",
        "appName": "gcp_currencyservice",
        "branchName": "devel",
        "buildName": "240216_1815",
        "generated": 1708107347359,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "cecc154f-833f-45a4-a04f-ff792d58b5b1",
        "appName": "gcp_currencyservice",
        "branchName": "devel-agent",
        "buildName": "240220_1743",
        "generated": 1708451031647,
        "buildScanStatus": "Completed",
        "isReference": true,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "fde98a1a-7dd6-49e1-8f0f-edeb10dbd83f",
        "appName": "gcp_cartservice",
        "branchName": "devel",
        "buildName": "240220_1758",
        "generated": 1708451910340,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      },
      {
        "bsid": "7f05303e-3d37-40e2-b7b3-bb2eeba9505f",
        "appName": "gcp_currencyservice",
        "branchName": "testsk-profile",
        "buildName": "240220_1805",
        "generated": 1708452362127,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "13b2976e-638a-4773-a393-e37b2828c37e",
        "appName": "gcp_currencyservice",
        "branchName": "<no",
        "buildName": "240220_1851",
        "generated": 1708455101907,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "f9c2193a-83c2-45d2-bf4c-599b4314317e",
        "appName": "gcp_currencyservice",
        "branchName": "devel-envtest",
        "buildName": "240220_1904",
        "generated": 1708455905287,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "00bd96fe-e447-4e4d-9e0f-cc63ba52c92c",
        "appName": "gcp_currencyservice",
        "branchName": "devel-agent",
        "buildName": "$(date",
        "generated": 1708456871911,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "78c5ab59-4ca9-414f-af53-5ae30637a4c9",
        "appName": "gcp_currencyservice",
        "branchName": "devel-agent",
        "buildName": "`date",
        "generated": 1708457239787,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "08bf01ce-3dfc-44b2-850e-3060399e55d5",
        "appName": "gcp_currencyservice",
        "branchName": "devel-agent",
        "buildName": "${BUILDNAME}",
        "generated": 1708458106547,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "nodejs"
      },
      {
        "bsid": "df50dfa1-b40c-4f70-b155-36a3b43f915d",
        "appName": "gcp_cartservice",
        "branchName": "devel",
        "buildName": "240220_2057",
        "generated": 1708463154391,
        "buildScanStatus": "Completed",
        "isReference": false,
        "isPr": false,
        "technology": "dotnet"
      }
    ],
    "next": 50
  }
}

Create Data-Only Quality Trend Report

get

Step 1: Get List of Builds

We need a list of relevant builds in order to generate our report. Build Session IDs (BSIDs for short) are unique build identifiers, which we can later use to gather more data for our report.

APP_NAME=Maven Example \
BRANCH_NAME=origin/master \
PERIOD_FROM=`date -u --date="7 days ago" +%s%3N`

To get started, you need the names of the app and branch for the report, as well as the relevant time frame and SeaLights API Token.

For example, we might use "Maven Example" as our app, branch "origin/master", and last week as the beginning of our time frame. Don't forget to URI encode your app and branch name to avoid breaking the URL!

Now we can use these parameters to request the list of builds using the SeaLights API.

Perform the request and the following object is returned. It contains our query parameters and a list of builds. For more information regarding this request, see Resolve Builds. For now, all we need is the list of BSIDs, which we get from the array of builds

data.builds[i].bsid

This list might be partial due to paging. See Paging for more information on how to get the complete list.

Step 2: Enhance the Report

The previous request contains some additional data about each build, but probably not enough to create a report. In order to enhance this data, we can turn to two other endpoints, depending on how we want to enhance the report.

For a large number of builds, watch out for 429 TOO MANY REQUESTS status codes. See Rate Limiting for more information.

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Query parameters
appNamestringOptional

Application name as registered in SeaLights

branchNamestringOptional

Branch name

periodFromintegerOptional

Start of the time period (Unix epoch milliseconds)

Responses
200

Create Data-Only Quality Trend Report_svg

application/json
get/sl-api/v1/slim-builds/resolve
GET /sl-api/v1/slim-builds/resolve HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "appName": "Boutique",
    "branchName": "public",
    "periodFrom": 1710272645086,
    "periodTo": 1710539431928,
    "builds": []
  }
}

Creating Test Session

post

Request body

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Body
labIdstringRequired

Lab ID in which to open the test session

testStagestringRequired

Test stage name for this session

bsidstringRequired

Build Session ID to associate with this test session

sessionTimeoutintegerOptional

Session timeout in seconds

testGroupIdstringOptional

Test group ID to associate with this session

Responses
200

Creating Test Session

application/json
post/sl-api/v1/test-sessions
POST /sl-api/v1/test-sessions HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 104

{
  "labId": "LabId",
  "testStage": "Unit Tests",
  "bsid": "bsId",
  "sessionTimeout": 10000,
  "testGroupId": "job name"
}
{
  "data": {
    "testSessionId": "341dc795-71a8-4253-b686-27ff09f04468"
  }
}

Delete test session

delete

Delete test session

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
testSessionIdstringRequired

Test session ID returned when the session was opened

Responses
200

Delete test session

No content

delete/sl-api/v1/test-sessions/{testSessionId}
DELETE /sl-api/v1/test-sessions/{testSessionId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

get only the External Tests IDs

get

You can specify to get only the External Tests IDs (instead of Test Names) to be returned in the response

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
testSessionIdstringRequired

Test session ID returned when the session was opened

Query parameters
typestringOptional

type

Responses
200

get only the External Tests IDs

application/json
get/sl-api/v1/test-sessions/{testSessionId}/exclude-tests
GET /sl-api/v1/test-sessions/{testSessionId}/exclude-tests HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    "123-456",
    "adg-457"
  ]
}

Get Tests Runs By Build Name

get

Get list of tests run by specific build of app/branch and test stage.

Request Parameters

Query Parameters

Response Attributes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

buildNamestringRequired

Build name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get Tests Runs By Build Name

application/json
get/sl-api/v1/tests/apps/{appName}/branches/{branchName}/builds/{buildName}/test-stages/{testStage}/runs
GET /sl-api/v1/tests/apps/{appName}/branches/{branchName}/builds/{buildName}/test-stages/{testStage}/runs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
    "data": {
        "total": 3,
        "next" 0,
        "previous": 0,
        "summary": {
            "total": 6,
            "failed": 0,
            "passed": 2,
            "skipped": 4,
        }
        "list": [
            {
                "testName": "should test",
                "executionId": "some-id",
                "externalId": "some-external-id",
                "result": "passed"
            }
        ]
    }
}

Get Tests Runs By Latest Build on Branch

get

Get list of tests runs for the latest build on specific app/branch and test stage.

Request Parameters

Query Parameters

Response Attributes

TestRunSummary Object

TestRun Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get Tests Runs By Latest Build on Branch_svg

application/json
get/sl-api/v1/tests/apps/{appName}/branches/{branchName}/test-stages/{testStage}/runs
GET /sl-api/v1/tests/apps/{appName}/branches/{branchName}/test-stages/{testStage}/runs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 0,
    "list": [],
    "metadata": {
      "appName": "Boutique",
      "branchName": "public",
      "buildName": "Thu, 07 Mar 2024 23:06:27 GMT",
      "buildSessionId": "9284f9f0-e247-4206-b897-7b52bb251916",
      "testStage": "Manual",
      "txId": "APIGW-4336af59-a03f-4442-a95e-977d3d8cb971",
      "dateTime": "Fri, 15 Mar 2024 22:01:53 GMT"
    },
    "summary": {
      "total": 0,
      "passed": 0,
      "skipped": 0,
      "failed": 0
    }
  }
}

Get Test Run By BsId

get

Get list of tests run by specific build session id and test stage.

Request Parameters

Query Parameters

Response Attributes

TestRunSummary Object

TestRun Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get Test Run By BsId_svg

application/json
get/sl-api/v1/tests/builds/{bsid}/test-stages/{testStage}/runs
GET /sl-api/v1/tests/builds/{bsid}/test-stages/{testStage}/runs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 0,
    "list": [],
    "metadata": {
      "appName": "Boutique",
      "branchName": "public",
      "buildName": "Thu, 07 Mar 2024 23:06:27 GMT",
      "buildSessionId": "9284f9f0-e247-4206-b897-7b52bb251916",
      "testStage": "Manual",
      "txId": "APIGW-a122fb98-89b3-4c85-8499-049790949cb6",
      "dateTime": "Fri, 15 Mar 2024 21:59:01 GMT"
    },
    "summary": {
      "total": 0,
      "passed": 0,
      "skipped": 0,
      "failed": 0
    }
  }
}

Search for Multi-App reports

get

Get paged list of TGA reports.

Query Parameters

Note that "appName" and "branchName" must be provided together or not at all.

Note that if you provide "categoryName", you have to provide also at least one labelName in "labelNames". If you provide "labelNames", you have to provide also "categoryName". All code label names have to belong to the same category.

Note that null value for "testStageName" query parameter means all test stages.

Response Attributes

TgaReportTemplatePaged Object

TgaReportTemplate Object

TgaReportMetadata Object

TgaReportCoverage Object

TgaCodeLabel Object

TgaReportMetadataRange Object

TgaReportCoverageSummary Object

TgaReportMetadataRangeDates Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Search for TGA reports Copy

application/json
get/sl-api/v1/tga/report-templates/reports
GET /sl-api/v1/tga/report-templates/reports HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 100,
    "next": 50,
    "previous": 0,
    "list": [
      {
        "status": "In Progress",
        "reportId": "report-123",
        "templateId": "template-123",
        "metadata": {
          "appName": "app1",
          "branchName": "origin/master",
          "teamName": "string",
          "codeLabels": [
            {
              "categoryId": "category-1",
              "categoryName": "category",
              "labelId": "label-1",
              "labelName": "label"
            }
          ],
          "range": {
            "dates": {
              "from": 1649600400000,
              "to": 1649686800000
            },
            "builds": {
              "from": "1.0.3",
              "to": "1.1.4"
            }
          },
          "hasBuildInRange": true
        },
        "coverage": {
          "entireBuild": {
            "name": "string",
            "modifiedCodeCoverage": {
              "coverage": 92,
              "coveredMethods": 92,
              "uncoveredMethods": 8,
              "totalMethods": 100
            },
            "overallCoverage": {
              "coverage": 92,
              "coveredMethods": 92,
              "uncoveredMethods": 8,
              "totalMethods": 100
            },
            "inProdCoverage": {
              "coverage": 92,
              "coveredMethods": 92,
              "uncoveredMethods": 8,
              "totalMethods": 100
            },
            "modifiedInProdCoverage": {
              "coverage": 92,
              "coveredMethods": 92,
              "uncoveredMethods": 8,
              "totalMethods": 100
            }
          },
          "testStages": [
            {
              "name": "string",
              "modifiedCodeCoverage": {
                "coverage": 92,
                "coveredMethods": 92,
                "uncoveredMethods": 8,
                "totalMethods": 100
              },
              "overallCoverage": {
                "coverage": 92,
                "coveredMethods": 92,
                "uncoveredMethods": 8,
                "totalMethods": 100
              },
              "inProdCoverage": {
                "coverage": 92,
                "coveredMethods": 92,
                "uncoveredMethods": 8,
                "totalMethods": 100
              },
              "modifiedInProdCoverage": {
                "coverage": 92,
                "coveredMethods": 92,
                "uncoveredMethods": 8,
                "totalMethods": 100
              }
            }
          ]
        }
      }
    ]
  }
}

Create a new TGA report

post

Create a new TGA report and start to generate it.

Request Body

Note that if you provide "categoryName", you have to provide also at least one labelName in "labelNames". If you provide "labelNames", you have to provide also "categoryName". All code label names have to belong to the same category.

Note that "range" attribute is required, but you can provide either "dates" or "builds", but not both. In both cases, the "from" property is required, "to" property is optional

Note that null value for "selectedTestStages" property means all test stages.

Response Attributes

Response Status Codes

TgaReportTemplateMetadataRange Object

TgaReportTemplateMetadataRangeDates Object

TgaReportTemplateId Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Body
appNamestringRequired

Application name

branchNamestringRequired

Branch name

categoryNamestringOptional

Code label category name

labelNamesarrayOptional

Code label names to include

selectedTestStagesarrayOptional

Test stages to include in the report

rangeobjectOptional

Date range for the report

Responses
201

Create a new TGA report

application/json
post/sl-api/v1/tga/report-templates/reports
POST /sl-api/v1/tga/report-templates/reports HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 239

{
  "appName": "app1",
  "branchName": "origin/master",
  "categoryName": "someCategory",
  "labelNames": [
    "someLabel"
  ],
  "selectedTestStages": [
    "Unit Tests"
  ],
  "range": {
    "dates": {
      "from": 1649600400000,
      "to": 1649686800000
    },
    "builds": {
      "from": "1.0.3",
      "to": "1.1.4"
    }
  }
}
{
  "data": {
    "reportId": "123456",
    "templateId": "987654"
  }
}

Get TGA Report

get

Get TGA report by reportId

Request Parameters

Response Attributes

TgaReportTemplate Object

TgaReportMetadata Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
reportIdstringRequired

Report UUID

Responses
200

Get TGA Report

application/json
get/sl-api/v1/tga/report-templates/reports/{reportId}
GET /sl-api/v1/tga/report-templates/reports/{reportId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "status": "In Progress",
    "reportId": "report-123",
    "templateId": "template-123",
    "metadata": {
      "appName": "app1",
      "branchName": "origin/master",
      "teamName": "string",
      "codeLabels": [
        {
          "categoryId": "category-1",
          "categoryName": "category",
          "labelId": "label-1",
          "labelName": "label"
        }
      ],
      "range": {
        "dates": {
          "from": 1649600400000,
          "to": 1649686800000
        },
        "builds": {
          "from": "1.0.3",
          "to": "1.1.4"
        }
      },
      "hasBuildInRange": true
    },
    "coverage": {
      "entireBuild": {
        "name": "string",
        "modifiedCodeCoverage": {
          "coverage": 92,
          "coveredMethods": 92,
          "uncoveredMethods": 8,
          "totalMethods": 100
        },
        "overallCoverage": {
          "coverage": 92,
          "coveredMethods": 92,
          "uncoveredMethods": 8,
          "totalMethods": 100
        },
        "inProdCoverage": {
          "coverage": 92,
          "coveredMethods": 92,
          "uncoveredMethods": 8,
          "totalMethods": 100
        },
        "modifiedInProdCoverage": {
          "coverage": 92,
          "coveredMethods": 92,
          "uncoveredMethods": 8,
          "totalMethods": 100
        }
      },
      "testStages": [
        {
          "name": "string",
          "modifiedCodeCoverage": {
            "coverage": 92,
            "coveredMethods": 92,
            "uncoveredMethods": 8,
            "totalMethods": 100
          },
          "overallCoverage": {
            "coverage": 92,
            "coveredMethods": 92,
            "uncoveredMethods": 8,
            "totalMethods": 100
          },
          "inProdCoverage": {
            "coverage": 92,
            "coveredMethods": 92,
            "uncoveredMethods": 8,
            "totalMethods": 100
          },
          "modifiedInProdCoverage": {
            "coverage": 92,
            "coveredMethods": 92,
            "uncoveredMethods": 8,
            "totalMethods": 100
          }
        }
      ]
    }
  }
}

Regenerate TGA Report Template

put

Regenerate TGA report for a given reprotId. This action is asynchronous therefore a successful status code is 201 CREATED. The regenerated report is created and generation process is started.

This action will override the existing report with a new one! Use with care.

Request Parameters

Request Body

Note that "range" attribute is required, but you can provide or "dates" or "builds" property in it, and only "from" property is required. If "dates" and "builds" provided, then "dates" takes precedence. If no "to" property provided, then for dates - current time minus 5 minutes will be used, for builds - the latest build will be used.

Response Attributes

TgaReportTemplateId Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
reportIdstringRequired

Report UUID

Body
rangeobjectRequired

Updated date range for the report

Responses
201

Regenerate TGA Report Template

application/json
put/sl-api/v1/tga/report-templates/reports/{reportId}
PUT /sl-api/v1/tga/report-templates/reports/{reportId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 100

{
  "range": {
    "dates": {
      "from": 1649600400000,
      "to": 1649686800000
    },
    "builds": {
      "from": "1.0.3",
      "to": "1.1.4"
    }
  }
}
{
  "data": {
    "reportId": "123456",
    "templateId": "987654"
  }
}

Delete TGA Report

delete

Delete TGA report by reportId.

Request Parameters

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
reportIdstringRequired

Report UUID

Responses
202

Delete TGA Report

No content

delete/sl-api/v1/tga/report-templates/reports/{reportId}
DELETE /sl-api/v1/tga/report-templates/reports/{reportId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Download TGA Report CSV File

get

Download CSV file for given reportId. Successful status code is 200 OK. The response will contain content of CSV file

Request Parameters

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
reportIdstringRequired

Report UUID

Responses
200

Download TGA Report CSV File

No content

get/sl-api/v1/tga/report-templates/reports/{reportId}/csv
GET /sl-api/v1/tga/report-templates/reports/{reportId}/csv HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get latest TGA Report

get

Get latest TGA report for templateId

Request Parameters

Response Attributes

TgaReportTemplate Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
templateIdstringRequired

Report template UUID

Responses
200

Get latest TGA Report

application/json
get/sl-api/v1/tga/report-templates/{templateId}/report
GET /sl-api/v1/tga/report-templates/{templateId}/report HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "status": "In Progress",
    "reportId": "report-123",
    "templateId": "template-123",
    "metadata": {
      "appName": "app1",
      "branchName": "origin/master",
      "teamName": "string",
      "codeLabels": [
        {
          "categoryId": "category-1",
          "categoryName": "category",
          "labelId": "label-1",
          "labelName": "label"
        }
      ],
      "range": {
        "dates": {
          "from": 1649600400000,
          "to": 1649686800000
        },
        "builds": {
          "from": "1.0.3",
          "to": "1.1.4"
        }
      },
      "hasBuildInRange": true
    },
    "coverage": {
      "entireBuild": {
        "name": "string",
        "modifiedCodeCoverage": {
          "coverage": 92,
          "coveredMethods": 92,
          "uncoveredMethods": 8,
          "totalMethods": 100
        },
        "overallCoverage": {
          "coverage": 92,
          "coveredMethods": 92,
          "uncoveredMethods": 8,
          "totalMethods": 100
        },
        "inProdCoverage": {
          "coverage": 92,
          "coveredMethods": 92,
          "uncoveredMethods": 8,
          "totalMethods": 100
        },
        "modifiedInProdCoverage": {
          "coverage": 92,
          "coveredMethods": 92,
          "uncoveredMethods": 8,
          "totalMethods": 100
        }
      },
      "testStages": [
        {
          "name": "string",
          "modifiedCodeCoverage": {
            "coverage": 92,
            "coveredMethods": 92,
            "uncoveredMethods": 8,
            "totalMethods": 100
          },
          "overallCoverage": {
            "coverage": 92,
            "coveredMethods": 92,
            "uncoveredMethods": 8,
            "totalMethods": 100
          },
          "inProdCoverage": {
            "coverage": 92,
            "coveredMethods": 92,
            "uncoveredMethods": 8,
            "totalMethods": 100
          },
          "modifiedInProdCoverage": {
            "coverage": 92,
            "coveredMethods": 92,
            "uncoveredMethods": 8,
            "totalMethods": 100
          }
        }
      ]
    }
  }
}

Get Recommended Tests by app name, branch name, build name and Test Stage

get

Request parameters

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

buildNamestringRequired

Build name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get Recommended Tests by app name, branch name, build name and Test Stage

application/json
get/sl-api/v1/tia/apps/{appName}/branches/{branchName}/builds/{buildName}/test-stages/{testStage}/recommendations
GET /sl-api/v1/tia/apps/{appName}/branches/{branchName}/builds/{buildName}/test-stages/{testStage}/recommendations HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 500,
    "next": 50,
    "previous": 0,
    "list": [
      {
        "testName": "it should return ok",
        "testType": "parameterized",
        "numberOfpermutations": 3,
        "reasons": [
          "impacted"
        ],
        "relativeBuild": {
          "bsId": "123e4567-e89b-12d3-a456-4266141740aa",
          "buildName": "build1",
          "timestamp": 1651545121
        },
        "pinnedBy": "user",
        "pinnedDate": "12/12/2022",
        "pinnedReason": "important test"
      }
    ],
    "metadata": {
      "appName": "app1",
      "branchName": "master",
      "buildName": "build1",
      "buildSessionId": "bsid1",
      "testStage": "Unit Tests",
      "isFullRun": true,
      "scheduledFullRun": true,
      "fullRunType": "manual",
      "status": "notReady",
      "fullRunReason": "No statistical model available for build",
      "changesFrom": {
        "bsId": "123e4567-e89b-12d3-a456-426614174000",
        "branchName": "develop",
        "buildName": "develop"
      }
    }
  }
}

Get Recommended Tests for the latest build from a specific app/branch

get

Request parameters

Optional parameters

| | | |

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get Recommended Tests for the latest build from a specific app/branch

application/json
get/sl-api/v1/tia/apps/{appName}/branches/{branchName}/test-stages/{testStage}/recommendations
GET /sl-api/v1/tia/apps/{appName}/branches/{branchName}/test-stages/{testStage}/recommendations HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 500,
    "next": 50,
    "previous": 0,
    "list": [
      {
        "testName": "it should return ok",
        "testType": "parameterized",
        "numberOfpermutations": 3,
        "reasons": [
          "impacted"
        ],
        "relativeBuild": {
          "bsId": "123e4567-e89b-12d3-a456-4266141740aa",
          "buildName": "build1",
          "timestamp": 1651545121
        },
        "pinnedBy": "user",
        "pinnedDate": "12/12/2022",
        "pinnedReason": "important test"
      }
    ],
    "metadata": {
      "appName": "app1",
      "branchName": "master",
      "buildName": "build1",
      "buildSessionId": "bsid1",
      "testStage": "Unit Tests",
      "isFullRun": true,
      "scheduledFullRun": true,
      "fullRunType": "manual",
      "status": "notReady",
      "fullRunReason": "No statistical model available for build",
      "changesFrom": {
        "bsId": "123e4567-e89b-12d3-a456-426614174000",
        "branchName": "develop",
        "buildName": "develop"
      }
    }
  }
}

Enable/Disable TIA

post

Request body

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

New Request

application/json
post/sl-api/v1/tia/apps/{appName}/branches/{branchName}/test-stages/{testStage}/test-selection-status
POST /sl-api/v1/tia/apps/{appName}/branches/{branchName}/test-stages/{testStage}/test-selection-status HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "testSelectionStatus": true
}

Update full run

put

Update full run

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

New Request

No content

put/sl-api/v1/tia/apps/{appName}/branches/{branchName}/testStages/{testStage}/full-run
PUT /sl-api/v1/tia/apps/{appName}/branches/{branchName}/testStages/{testStage}/full-run HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update full run for BSID

put

Request body

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsIdstringRequired

Build Session ID (BSID)

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
401

Invalid or missing Bearer token

application/json
put/sl-api/v1/tia/builds/{bsId}/test-stages/{testStage}/full-run
PUT /sl-api/v1/tia/builds/{bsId}/test-stages/{testStage}/full-run HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "error": {
    "code": 1002,
    "message": "Bad request - Missing parameter"
  }
}

Get recommendations for a specific build according to buildSessionId

get

Request parameters

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get recommendations for a specific build according to buildSessionId

application/json
get/sl-api/v1/tia/builds/{bsid}/test-stages/{testStage}/recommendations
GET /sl-api/v1/tia/builds/{bsid}/test-stages/{testStage}/recommendations HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 500,
    "next": 50,
    "previous": 0,
    "list": [
      {
        "testName": "it should return ok",
        "testType": "parameterized",
        "numberOfpermutations": 3,
        "reasons": [
          "impacted"
        ],
        "relativeBuild": {
          "bsId": "123e4567-e89b-12d3-a456-4266141740aa",
          "buildName": "build1",
          "timestamp": 1651545121
        },
        "pinnedBy": "user",
        "pinnedDate": "12/12/2022",
        "pinnedReason": "important test"
      }
    ],
    "metadata": {
      "appName": "app1",
      "branchName": "master",
      "buildName": "build1",
      "buildSessionId": "bsid1",
      "testStage": "Unit Tests",
      "isFullRun": true,
      "scheduledFullRun": true,
      "fullRunType": "manual",
      "status": "notReady",
      "fullRunReason": "No statistical model available for build",
      "changesFrom": {
        "bsId": "123e4567-e89b-12d3-a456-426614174000",
        "branchName": "develop",
        "buildName": "develop"
      }
    }
  }
}

Re-calculate Recommendations Based on Baseline BuildSessionId

get

Re-calculate Recommendations Based on Baseline BuildSessionId

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Re-calculate Recommendations Based on Baseline BuildSessionId

application/json
get/sl-api/v1/tia/builds/{bsid}/test-stages/{testStage}/recommendations/calculate
GET /sl-api/v1/tia/builds/{bsid}/test-stages/{testStage}/recommendations/calculate HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "recommendationsUrl": "/sl-api/v1/tia/builds/ff1e8adf-2617-4320-a6ec-aab25b46f15a/test-stages/Unit Tests/recommendations"
  }
}

Get Test Group Code Domains

get

Get code domains attached to test group

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

testGroupIdstringRequired

Test group UUID

Responses
200

Get Test Group Code Domains

application/json
get/sl-api/v1/tia/settings/test-stages/{testStage}/test-groups/{testGroupId}/code-domains
GET /sl-api/v1/tia/settings/test-stages/{testStage}/test-groups/{testGroupId}/code-domains HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "codeDomains": [
      {
        "codeDomainName": "FrontEnd Team"
      },
      {
        "codeDomainName": "Backend Team"
      }
    ]
  }
}

Update Test Group Code Domains

put

Attach/Detach code domains to/from a test group.
Note: Code Domains must be created before using, unless forceDelete=true is used.

Query Parameters

Request Body

Response Status Codes

Response Attributes

TestGroupCodeDomain Object

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

testGroupIdstringRequired

Test group UUID

Body
codeDomainsarrayRequired

List of code domain names to assign to this test group

Responses
200

Update Test Group Code Domains

application/json
put/sl-api/v1/tia/settings/test-stages/{testStage}/test-groups/{testGroupId}/code-domains
PUT /sl-api/v1/tia/settings/test-stages/{testStage}/test-groups/{testGroupId}/code-domains HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "codeDomains": [
    {
      "codeDomainName": "FrontEnd Team"
    },
    {
      "codeDomainName": "Backend Team"
    }
  ]
}
{
  "data": {
    "codeDomains": [
      {
        "codeDomainName": "FrontEnd Team"
      },
      {
        "codeDomainName": "Backend Team"
      }
    ]
  }
}

Enable/Disable TIA per testProjectId

put

Updates the test selection status for a given test stage and testProjectId. Set selectionStatus to true to indicate that TIA is enabled, or false to indicate a full run is required.

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Query parameters
testProjectIdstringRequired

Unique identifier of the test project. Returned by the SeaLights agent during the scan phase.

Body
selectionStatusbooleanRequired

true — TIA selected a subset of tests. false — full run required.

Responses
200

Test selection status updated successfully

application/json
put/sl-api/v1/tia/test-stages/{testStage}/test-selection-status
PUT /sl-api/v1/tia/test-stages/{testStage}/test-selection-status?testProjectId=text HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "selectionStatus": true
}
{
  "data": {
    "testStage": "integration",
    "testProjectId": "tp-abc123",
    "selectionStatus": true
  }
}

Sending test events with status

post

Request Body

  • The tests skipped per the recommendation (GetExcluded Tests API above) must be explicitly included in the results of the test sent to Sealights (with the status skipped)
  • Skipped tests must be provided with start and end parameters, as well. We recommend providing them with start = end = now() value.

In case of Invalid parameters, API will return an Error code 400 INVALID. For example, if the timestamps are not sent in milliseconds format, API will return with code 400 and a message Invalid timestamp

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
testSessionIdstringRequired

Test session ID returned when the session was opened

Body
recommendedTestsarrayOptional

List of test identifiers recommended by TIA

executedTestsarrayOptional

List of test identifiers that were executed

Responses
200

Sending test events with status

No content

post/sl-api/v2/test-sessions/{testSessionId}
POST /sl-api/v2/test-sessions/{testSessionId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 83

[
  {
    "name": "TestToRun1",
    "start": 1619341754996,
    "end": 1619341754998,
    "status": "passed"
  }
]

No content

Get Exclude Tests v2

get

Get Exclude Tests v2

Authorizations
AuthorizationstringRequired

SeaLights Agent Token. Obtain from Settings → Cockpit & Onboarding → Agent Tokens in the SeaLights UI. Used by agent-side endpoints (test sessions, integration builds, etc.).

Path parameters
testSessionIdstringRequired

Test session ID returned when the session was opened

Responses
200

Get Exclude Tests v2

application/json
get/sl-api/v2/test-sessions/{testSessionId}/exclude-tests
GET /sl-api/v2/test-sessions/{testSessionId}/exclude-tests HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "metadata": { // metadata to help DevOps debug their integration
    "appName": "string", // app name requested.
    "branchName": "string", // branch name requested.
    "buildName": "string", // build name requested.
    "testStage": "string", // test stage requested.
    "testGroupId": "string", // test group id requested.
    "testSelectionEnabled": true, // when true TIA is on the given app/branch/test-stage
    "isFullRun": true, // when true it means that on the given app/branch/test-stage for the build
    "status": "notReady", // represent recommendations status [notReady, noHistory, ready, error, wontBeReady]
    "fullRunReason": "No statistical model available for build" // describe the reason why full run is recommended (Optional, only if isFullRun=true)
  },
  "excludedTests": [ // an array of objects representing the execluded tests.
    {
      "testName": "string"
    }
  ]
}

Get Test Runs by app name, branch name, build name and Test Stage

get

Get Test Runs by app name, branch name, build name and Test Stage

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

buildNamestringRequired

Build name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get Test Runs by app name, branch name, build name and Test Stage

application/json
get/sl-api/v2/tests/apps/{appName}/branches/{branchName}/builds/{buildName}/test-stages/{testStage}/runs
GET /sl-api/v2/tests/apps/{appName}/branches/{branchName}/builds/{buildName}/test-stages/{testStage}/runs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 163,
    "list": [
      {
        "executionId": "eId1",
        "testName": "it should return ok",
        "results": {
          "passed": 0,
          "failed": 0,
          "skipped": 1,
          "total": 1
        },
        "testGroupId": "group 1"
      }
    ],
    "metadata": {
      "appName": "My app",
      "branchName": "Development",
      "buildName": "21.2",
      "buildSessionId": "45699dbe-b7a9-4b95-98ba-10e9173a1221",
      "testStage": "Acceptance Tests",
      "txId": "APIGW-2c8688c2-6c93-48df-9e21-c15862f4as5f",
      "dateTime": "Tue, 01 Aug 2023 04:53:12 GMT"
    },
    "summary": {
      "total": 163,
      "passed": 80,
      "skipped": 94,
      "failed": 0
    }
  }
}

Get Test Runs by latest build on app name, branch name and Test Stage

get

Get Test Runs by latest build on app name, branch name and Test Stage

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
appNamestringRequired

Application name as registered in SeaLights

branchNamestringRequired

Branch name

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

New Request

application/json
get/sl-api/v2/tests/apps/{appName}/branches/{branchName}/testStages/{testStage}/runs
GET /sl-api/v2/tests/apps/{appName}/branches/{branchName}/testStages/{testStage}/runs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "total": 163,
    "list": [
      {
        "executionId": "eId1",
        "testName": "it should return ok",
        "results": {
          "passed": 0,
          "failed": 0,
          "skipped": 1,
          "total": 1
        },
        "testGroupId": "group 1"
      }
    ],
    "metadata": {
      "appName": "My app",
      "branchName": "Development",
      "buildName": "21.2",
      "buildSessionId": "45699dbe-b7a9-4b95-98ba-10e9173a1221",
      "testStage": "Acceptance Tests",
      "txId": "APIGW-2c8688c2-6c93-48df-9e21-c15862f4as5f",
      "dateTime": "Tue, 01 Aug 2023 04:53:12 GMT"
    },
    "summary": {
      "total": 163,
      "passed": 80,
      "skipped": 94,
      "failed": 0
    }
  }
}

Get Test Runs by buildSessionId and Test-Stage

get

Get Test Runs by buildSessionId and Test-Stage

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
bsidstringRequired

Build Session ID (BSID) — unique identifier assigned to a build by the SeaLights agent

testStagestringRequired

Test stage name (e.g. unit, integration, e2e)

Responses
200

Get Test Runs by buildSessionId and Test-Stage

No content

get/sl-api/v2/tests/builds/{bsid}/test-stages/{testStage}/runs
GET /sl-api/v2/tests/builds/{bsid}/test-stages/{testStage}/runs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content


Deprecated endpoints

Deprecated

Get TGA Report Configurations

get

Get list of TGA report configurations.

Response Attributes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Get TGA Report Configurations

application/json
get/sl-api/v1/tga/configs
GET /sl-api/v1/tga/configs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "configs": [
      {
        "configId": "configId",
        "appName": "app",
        "branchName": "branch",
        "teamName": "QA",
        "codeLabels": [
          {
            "categoryName": "Layer",
            "labelName": "Backend"
          }
        ],
        "startDate": 1584628060520,
        "frequency": 1
      }
    ]
  }
}
Deprecated

Create TGA Report Configuration

post

In order to create TGA reports, we first need to define a report configuration. App and branch names are required. If you don't know the exact app and branch names, you can use Get Apps and Get Branches.

Note that only one report configuration can be created for every app-branch-team combination.

Request Body

The response is a single TgaConfig object.

Response Status Codes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Body
appNamestringRequired

Application name

branchNamestringRequired

Branch name

teamNamestringOptional

Team name for the report

codeLabelsarrayOptional

Code labels to include in the report

startDatestringOptional

Report start date (ISO 8601)

frequencystringOptional

Report generation frequency

Responses
200

Create TGA Report Configuration

No content

post/sl-api/v1/tga/configs
POST /sl-api/v1/tga/configs HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 174

{
  "appName": "Maven Example",
  "branchName": "origin/master",
  "teamName": "QA",
  "codeLabels": [
    {
      "categoryName": "Layer",
      "labelName": "Backend"
    }
  ],
  "startDate": 1584628060520,
  "frequency": 1
}

No content

Deprecated

Delete TGA Report Configuration

delete

Delete TGA report configuration.

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
configIdstringRequired

Configuration UUID

Responses
200

Delete TGA Report Configuration

No content

delete/sl-api/v1/tga/configs/{configId}
DELETE /sl-api/v1/tga/configs/{configId} HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Deprecated

Get List of TGA Reports

get

Get a list of TGA reports. Optional configIds query parameter will filter for specific configuration IDs.

Query Parameters

Response Attributes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Responses
200

Get List of TGA Reports

application/json
get/sl-api/v1/tga/reports
GET /sl-api/v1/tga/reports HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "configIds": ["5e9ff029b97058d0cb53491c"]
    "reports": [
      {
        "status": "Ready",
        "configId": "5e9ff029b97058d0cb53491c",
        "metadata": {
          "appName": "Maven Example",
          "branchName": "origin/master",
          "teamName": "QA",
          "range": {
            "dates": {
              "from": 1588118400000,
              "to": 1588723199999
            },
            "builds": {
              "from": {
                "branchName": "origin/master",
                "buildName": "0.1.23"
              },
              "to": {
                "branchName": "origin/master",
                "buildName": "0.1.35"
              }
            }
          },
          "hasBuildInRange": true
        }
        "coverage": {
          "entireBuild": {
            "modifiedCodeCoverage": {
              "coverage": 80,
              "coveredMethods": 4,
              "uncoverdMethods": 1,
              "totalMethods": 5
            },
            "overallCoverage": {
              "coverage": 75,
              "coveredMethods": 3,
              "uncoverdMethods": 1,
              "totalMethods": 4
            },
            "modifiedInProdCoverage": {
              "coverage": 80,
              "coveredMethods": 4,
              "uncoverdMethods": 1,
              "totalMethods": 5
            },
            "inProdCoverage": {
              "coverage": 75,
              "coveredMethods": 3,
              "uncoverdMethods": 1,
              "totalMethods": 4
            }
          },
          "testStages": [
            {
              "name": "Unit Tests",
              "modifiedCodeCoverage": {
                "coverage": 80,
                "coveredMethods": 4,
                "uncoverdMethods": 1,
                "totalMethods": 5
              },
              "overallCoverage": {
                "coverage": 75,
                "coveredMethods": 3,
                "uncoverdMethods": 1,
                "totalMethods": 4
              },
              "modifiedInProdCoverage": {
                "coverage": 80,
                "coveredMethods": 4,
                "uncoverdMethods": 1,
                "totalMethods": 5
              },
              "inProdCoverage": {
                "coverage": 75,
                "coveredMethods": 3,
                "uncoverdMethods": 1,
                "totalMethods": 4
              }
            }
          ]
        }
      }
    ]
  }
}
Deprecated

Download TGA Report CSV

get

Download CSV file for given configId. Successful status code is 200 OK. The response will contain content of CSV file

Request Parameters

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
configIdstringRequired

Configuration UUID

Responses
200

Download TGA Report CSV

No content

get/sl-api/v1/tga/reports/{configId}/csv
GET /sl-api/v1/tga/reports/{configId}/csv HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Deprecated

Regenerate TGA Report

get

Regenerate new TGA report for a given configId. This action is asynchronous therefore a successful status code is 202 ACCEPTED. The response will contain a path for acquiring the current status of the regenerated report.

This action will override the existing report with a new one! Use with care.

Request Parameters

Query Parameters

Response Attributes

Authorizations
AuthorizationstringRequired

SeaLights API Token. Obtain from Settings → Integration → API Tokens in the SeaLights UI. Used by the majority of endpoints.

Path parameters
configIdstringRequired

Configuration UUID

Responses
200

Regenerate TGA Report

application/json
get/sl-api/v1/tga/reports/{configId}/regenerate
GET /sl-api/v1/tga/reports/{configId}/regenerate HTTP/1.1
Host: demo.sealights.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "statusLink": "/sl-api/v1/tga/reports?configIds=5e9ff029b97058d0cb53491c"
}

Last updated

Was this helpful?