Skip to content
Navigation

getOrgAutomationHealth

How the automations of each of the caller's repos in the org stand: the workflow runs waiting for a signal, how many more are queued or running, and the schedules and triggers main runs whose latest finished run failed or was interrupted. Pass repo_ids, comma-separated, for just those repos; an id that names no repo of the org is left out.

GET
/orgs/{org_id}/automation-health

Path parameters

  • org_id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$

Query parameters

  • repo_ids
    optional
    string

Returns

200

Success

JSON
  • waiting_workflow_runs
    array of
    object
    required
    • id
      string
      required
      pattern: ^extension_workflow_run_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • extension_name
      string
      required
      maxLength: 129 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$
    • version
      required

      One of the following:

      • string
      • string
    • branch
      string
      required
      minLength: 1
    • workflow
      string
      required
      minLength: 1
    • key
      string
      required
      minLength: 1
    • enqueued_by_id
      string
      required
      pattern: ^(?:user|extension)_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • enqueued_by_extension
      required

      One of the following:

      • string
      • null
    • status
      queued
      or
      running
      or
      waiting
      or
      complete
      or
      errored
      or
      terminated
      required
    • waiting_for_signal
      required

      One of the following:

      • string
      • null
    • signal_sequence
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • failure
      required

      One of the following:

      • string
      • null
    • queued_at
      string
      required
    • started_at
      required

      One of the following:

      • string
      • null
    • finished_at
      required

      One of the following:

      • string
      • null
    • input_bytes
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • output_bytes
      required

      One of the following:

      • integer
      • null
  • active_workflow_run_count
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • failing_automations
    array of
    object
    required
    • extension_name
      string
      required
      maxLength: 129 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$
    • kind
      schedule
      or
      trigger
      required
    • name
      string
      required
      minLength: 1
    • status
      failed
      or
      interrupted
      required
    • failure
      required

      One of the following:

      • string
      • null
    • finished_at
      string
      required
  • repo_id
    string
    required
    pattern: ^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • repo_name
    string
    required
    minLength: 1

400

InvalidRequest
JSON
  • _tag
    InvalidRequest
    required
  • part
    path
    or
    query
    or
    headers
    or
    body
    required
  • issues
    array of
    object
    required
    • path
      array of
      required

      One of the following:

      • string
      • integer
    • message
      string
      required

401

InvalidCredentials
JSON
  • _tag
    InvalidCredentials
    required

403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

  • ForbiddenEncoded
    • _tag
      Forbidden
      required
    • message
      string
      required
  • ForbiddenOriginEncoded
    • _tag
      ForbiddenOrigin
      required
  • RequiresPersonalSessionEncoded
    • _tag
      RequiresPersonalSession
      required
  • RunBranchRequiredEncoded
    • _tag
      RunBranchRequired
      required
    • branch
      string
      required
      minLength: 1
    • message
      string
      required

404

OrgNotFound
JSON
  • _tag
    OrgNotFound
    required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

OrgFailure | RepoFailure
JSON

One of the following:

  • OrgFailureEncoded
    • _tag
      OrgFailure
      required
    • reason
      string
      required
  • RepoFailureEncoded
    • _tag
      RepoFailure
      required
    • reason
      string
      required

503

SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close