GET
/
api
/
automations
/
related-to
/
{resource_id}
[
  {
    "name": "<string>",
    "description": "",
    "enabled": true,
    "tags": [
      "<string>"
    ],
    "trigger": {
      "type": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "match": {},
      "match_related": {},
      "after": [
        "<any>"
      ],
      "expect": [
        "<any>"
      ],
      "for_each": [
        "<any>"
      ],
      "posture": "Reactive",
      "threshold": 123,
      "within": 123
    },
    "actions": [
      {
        "type": "do-nothing"
      }
    ],
    "actions_on_trigger": [
      {
        "type": "<string>"
      }
    ],
    "actions_on_resolve": [
      {
        "type": "<string>"
      }
    ],
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created": "2023-11-07T05:31:56Z",
    "updated": "2023-11-07T05:31:56Z"
  }
]

Headers

x-prefect-api-version
string

Path Parameters

resource_id
string
required

Response

Successful Response

name
string
required

The name of this automation

trigger
object
required

The criteria for which events this Automation covers and how it will respond to the presence or absence of those events A trigger that fires based on the presence or absence of events within a given period of time.

actions
Actions · array
required

The actions to perform when this Automation triggers

id
string<uuid>
required
created
string<date-time> | null
required
updated
string<date-time> | null
required
description
string
default:""

A longer description of this automation

enabled
boolean
default:true

Whether this automation will be evaluated

tags
string[]

A list of tags associated with this automation

actions_on_trigger
Actions On Trigger · array

The actions to perform when an Automation goes into a triggered state

actions_on_resolve
Actions On Resolve · array

The actions to perform when an Automation goes into a resolving state