GitLab · Arazzo Workflow

GitLab Attach a Metric Image to an Alert

Version 1.0.0

Authorize an upload, attach a metric image to an alert, then list images.

1 workflow 1 source API 1 provider
View Spec View on GitHub CodePlatformSoftware DevelopmentSource ControlArazzoWorkflows

Provider

gitlab

Workflows

attach-alert-metric-image
Authorize, upload, and confirm a metric image on an alert.
Authorizes the upload via Workhorse, uploads the metric image to the alert, then lists the alert's metric images to verify it was attached.
3 steps inputs: alertIid, file, privateToken, projectId, url, urlText outputs: metricImageId
1
authorizeUpload
Ask Workhorse to authorize the metric image file upload.
2
uploadImage
Upload the metric image to the alert.
3
listImages
List the alert's metric images to confirm the attachment.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: GitLab Attach a Metric Image to an Alert
  summary: Authorize an upload, attach a metric image to an alert, then list images.
  description: >-
    An incident-enrichment flow. The workflow first asks GitLab Workhorse to
    authorize a metric image upload for an alert, uploads the image file with an
    optional reference URL, and then lists the alert's metric images to confirm
    the attachment. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-4200.40
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4200.40
      capability_name: Software Construction Management
      spec: gitlab-projects-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: projectsApi
  url: ../openapi/gitlab-projects-api-openapi.yml
  type: openapi
workflows:
- workflowId: attach-alert-metric-image
  summary: Authorize, upload, and confirm a metric image on an alert.
  description: >-
    Authorizes the upload via Workhorse, uploads the metric image to the alert,
    then lists the alert's metric images to verify it was attached.
  inputs:
    type: object
    required:
    - privateToken
    - projectId
    - alertIid
    - file
    properties:
      privateToken:
        type: string
        description: GitLab Private-Token used to authenticate the API calls.
      projectId:
        type: string
        description: The ID or URL-encoded path of the project.
      alertIid:
        type: integer
        description: The IID of the alert.
      file:
        type: string
        description: The metric image file to upload.
      url:
        type: string
        description: Optional URL to view more metric info.
        default: ''
      urlText:
        type: string
        description: Optional description of the image or URL.
        default: ''
  steps:
  - stepId: authorizeUpload
    description: Ask Workhorse to authorize the metric image file upload.
    operationId: postApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImagesAuthorize
    parameters:
    - name: Private-Token
      in: header
      value: $inputs.privateToken
    - name: id
      in: path
      value: $inputs.projectId
    - name: alert_iid
      in: path
      value: $inputs.alertIid
    successCriteria:
    - condition: $statusCode == 200
  - stepId: uploadImage
    description: Upload the metric image to the alert.
    operationId: postApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImages
    parameters:
    - name: Private-Token
      in: header
      value: $inputs.privateToken
    - name: id
      in: path
      value: $inputs.projectId
    - name: alert_iid
      in: path
      value: $inputs.alertIid
    requestBody:
      contentType: multipart/form-data
      payload:
        file: $inputs.file
        url: $inputs.url
        url_text: $inputs.urlText
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      metricImageId: $response.body#/id
  - stepId: listImages
    description: List the alert's metric images to confirm the attachment.
    operationId: getApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImages
    parameters:
    - name: Private-Token
      in: header
      value: $inputs.privateToken
    - name: id
      in: path
      value: $inputs.projectId
    - name: alert_iid
      in: path
      value: $inputs.alertIid
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstImageId: $response.body#/0/id
  outputs:
    metricImageId: $steps.uploadImage.outputs.metricImageId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/gitlab-attach-alert-metric-image-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.