Monitors

List monitors for target

Returns live monitors matching the supplied target type and/or filter subset.

post/v1/projects/{projectSlug}/monitors/for-target

Path parameters

projectSlugstring required

Project slug (human-readable identifier)

Project slug (human-readable identifier)

Request body

targetType'savedSearch' | 'tool' | 'user' | 'session'

Optional target type to match.

filterSetContainsobject required

Filter subset to match against monitor targets. For one user use userId; for one tool use operation = execute_tool and toolName.

Response

Matching monitors

Changes

Changed in 6 of the 67 revisions of this API.1339

    • added the new urgent enum value to the items/items/rule/severity response property for the response status 200

      response-property-enum-value-added

    • added subschema #3 to the items/items/rule/config/condition/oneOf[AlertEscalatingCondition]/metric response property oneOf list for the response status 200

      response-property-one-of-added

    • added subschema #3 to the items/items/rule/config/condition/oneOf[AlertThresholdCondition]/metric response property oneOf list for the response status 200

      response-property-one-of-added

    • added subschema #3 to the items/items/rule/config/metric/allOf[MonitorMetric]/ response property oneOf list for the response status 200

      response-property-one-of-added

    • added subschema #3 to the items/items/target/metric/allOf[MonitorMetric]/ response property oneOf list for the response status 200

      response-property-one-of-added

  • 5cedc15b21b5926See the full diff
    • the request property filterSetContains/allOf[MonitorFilterSet]/ became not nullable

      request-property-became-not-nullable

    • the response property items/items/target/filterSet became optional for the status 200

      response-property-became-optional

    • the response property items/items/target/kind became optional for the status 200

      response-property-became-optional

    • the response property items/items/target/metric became optional for the status 200

      response-property-became-optional

    • the response property items/items/target/query became optional for the status 200

      response-property-became-optional

    • the response property items/items/target/savedSearchId became optional for the status 200

      response-property-became-optional

    • the response property items/items/target/stream became optional for the status 200

      response-property-became-optional

    • added subschema #5 subschema #6 subschema #7 to the items/items/target/metric/allOf[MonitorMetric]/ response property oneOf list for the response status 200

      response-property-one-of-added

    • removed the required property items/items/alerts from the response with the 200 status

      response-required-property-removed

    • removed the request property stream

      request-property-removed

    • removed the request property targetKind

      request-property-removed

    • added the new optional request property targetType

      new-optional-request-property

    • removed the signal enum value from the items/items/target/kind response property for the response status 200

      response-property-enum-value-removed

    • removed subschema #4 from the items/items/target/metric/allOf[MonitorMetric]/ response property oneOf list for the response status 200

      response-property-one-of-removed

    • added the required property items/items/rule to the response with the 200 status

      response-required-property-added

    • added the required property items/items/target/id to the response with the 200 status

      response-required-property-added

    • added the required property items/items/target/type to the response with the 200 status

      response-required-property-added

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property targetKind

      new-optional-request-property

    • added the required property items/items/target/kind to the response with the 200 status

      response-required-property-added

    • endpoint added

      endpoint-added