public class HookCreationRequest extends Object
Definition of a hook that can create tasks at defined times.
See https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#
Modifier and Type | Field and Description |
---|---|
String |
hookGroupId
Syntax: ^([a-zA-Z0-9-_]*)$ Min length: 1 Max length: 64See https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/hookGroupId
|
String |
hookId
Syntax: ^([a-zA-Z0-9-_/]*)$ Min length: 1 Max length: 64See https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/hookId
|
HookMetadata |
metadata
|
String[] |
schedule
Definition of the times at which a hook will result in creation of a task.
|
Object |
task
Template for the task definition.
|
Object |
triggerSchema
Default: { “additionalProperties”: false, “type”: “object” }See https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/triggerSchema
|
Constructor and Description |
---|
HookCreationRequest() |
public String hookGroupId
Syntax: ^([a-zA-Z0-9-_]*)$ Min length: 1 Max length: 64
See https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/hookGroupId
public String hookId
Syntax: ^([a-zA-Z0-9-_/]*)$ Min length: 1 Max length: 64
See https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/hookId
public HookMetadata 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 https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/schedule
public Object task
Template for the task definition. This is rendered using JSON-e as described in firing hooks to produce a task definition that is submitted to the Queue service.
See https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/task
public Object triggerSchema
Default: { “additionalProperties”: false, “type”: “object” }
See https://schemas.taskcluster.net/hooks/v1/create-hook-request.json#/properties/triggerSchema
Copyright © 2014–2018 Mozilla. All rights reserved.