public class HookCreationRequest extends Object
Definition of a hook that can create tasks at defined times.
See http://schemas.taskcluster.net/hooks/v1/create-hook-request.json#
| Modifier and Type | Class and Description |
|---|---|
class |
HookCreationRequest.Metadata |
| Modifier and Type | Field and Description |
|---|---|
String |
deadline
Deadline of the task,
pending and running runs are resolved as failed if not resolved by other means before the deadline. |
String |
expires
Task expiration, time at which task definition and status is deleted.
|
HookCreationRequest.Metadata |
metadata
|
String[] |
schedule
Definition of the times at which a hook will result in creation of a task.
|
TaskTemplate |
task
|
Object |
triggerSchema
Default: { “additionalProperties”: false, “type”: “object” }See http://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/triggerSchema
|
| Constructor and Description |
|---|
HookCreationRequest() |
public String deadline
Deadline of the task, pending and running runs are resolved as failed if not resolved by other means before the deadline. Note, deadline cannot be more than 5 days into the future. Must be specified as A years B months C days D hours E minutes F seconds, though you may leave out zeros. For more details see: taskcluster.fromNow in taskcluster-client
Default: “1 day”
See http://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/deadline
public String expires
Task expiration, time at which task definition and status is deleted. Notice that all artifacts for the must have an expiration that is no later than this. Must be specified as A years B months C days D hours E minutes F seconds, though you may leave out zeros. For more details see: taskcluster.fromNow in taskcluster-client
Default: “3 months”
See http://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/expires
public HookCreationRequest.Metadata metadata
public String[] schedule
Definition of the times at which a hook will result in creation of a task. If several patterns are specified, tasks will be created at any time specified by one or more patterns.
Default: []
See http://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/schedule
public TaskTemplate task
public Object triggerSchema
Default: { “additionalProperties”: false, “type”: “object” }
See http://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/triggerSchema
Copyright © 2014–2018 Mozilla. All rights reserved.