public class HookDefinition extends Object
Definition of a hook that will create tasks when defined events occur.
See https://schemas.taskcluster.net/hooks/v1/hook-definition.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/hook-definition.json#/properties/hookGroupId
|
String |
hookId
Syntax: ^([a-zA-Z0-9-_/]*)$ Min length: 1 Max length: 64See https://schemas.taskcluster.net/hooks/v1/hook-definition.json#/properties/hookId
|
HookMetadata |
metadata
|
Object |
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
|
Constructor and Description |
---|
HookDefinition() |
public String hookGroupId
Syntax: ^([a-zA-Z0-9-_]*)$ Min length: 1 Max length: 64
See https://schemas.taskcluster.net/hooks/v1/hook-definition.json#/properties/hookGroupId
public String hookId
Syntax: ^([a-zA-Z0-9-_/]*)$ Min length: 1 Max length: 64
See https://schemas.taskcluster.net/hooks/v1/hook-definition.json#/properties/hookId
public HookMetadata metadata
public Object 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. Note that tasks may not be created at exactly the time specified. {$ref: “schedule.json#”}
See https://schemas.taskcluster.net/hooks/v1/hook-definition.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/hook-definition.json#/properties/task
public Object triggerSchema
Copyright © 2014–2018 Mozilla. All rights reserved.