Function getTaskRuns

  • Returns runs for the specified task.

    Parameters

    • id: string

      The task's unique identifier.

    • query: {
          limit?: number;
          page?: string;
          sort?:
              | "+status"
              | "-status"
              | "+startedAt"
              | "-startedAt"
              | "+endedAt"
              | "-endedAt"
              | "+taskId"
              | "-taskId"
              | "+actionId"
              | "-actionId";
      }

      an object with query parameters

      • Optionallimit?: number

        The maximum number of task runs to return for a request.

      • Optionalpage?: string

        The page cursor.

      • Optionalsort?:
            | "+status"
            | "-status"
            | "+startedAt"
            | "-startedAt"
            | "+endedAt"
            | "-endedAt"
            | "+taskId"
            | "-taskId"
            | "+actionId"
            | "-actionId"

        The property of a resource to sort on (default sort is -startedAt). A property must be prefixed by + or - to indicate ascending or descending sort order respectively.

    • Optionaloptions: ApiCallOptions

    Returns Promise<GetTaskRunsHttpResponse>

    GetTaskRunsHttpError