Version 2 Goals

Introduction

Goals are groups of triggers that have matched some business criteria based on rules.

Goal Properties

Goal Range Properties

Goal ranges are now DEPRECATED - use the criteriaConfig and actionConfig properties of the goal instead

Goal Criteria Fields

Goal criteria fields may be any of those defined in the trigger reports (see Field Definitions), except for the following fields:

List Goals for an IGRP

This lists the Goals configured for an IGRP.

Request:

GET /config/v2/igrps/{IGRP SPECIFIER}/goals

URL Path Params

GET Params

Filter Types

The Goals list may be filtered by any of the returned fields. Additionally Goals can be filtered by goalGroupId and goalGroupTypeId.

Sort Types

The Goals list may be sorted by any of the returned fields. Additionally Goals can be sorted by goalGroupId and goalGroupTypeId.

Response:

Returns a list of Goals.

{"goalId":"100","goalTitle":"Call Pass","goalDescription":"Test goal 1","goalOrder":"0","deDupeFields":[["test1"]],"deDupeLookbackDays":"60","goalStatus":200,"actionConfig":[{"mode":"test","args":"test"}],"criteriaConfig":[{"field":"act","op":"eq","value":"call"}]}
{"goalId":"101","goalTitle":"New Goal","goalDescription":"Test goal 2","goalOrder":"1","deDupeFields":[["test2"]],"deDupeLookbackDays":"30","goalStatus":410,"actionConfig":[{"mode":"test","args":"test"}],"criteriaConfig":[{"field":"act","op":"eq","value":"call"}]}

Read Goal

Read Goal details for the specified Goal and IGRP.

Request:

GET /config/v2/igrps/{IGRP SPECIFIER}/goals/{GOAL SPECIFIER}

URL Path Params

Response:

{"goalId":"2","goalTitle":"testGoal","goalDescription":"testDesc","goalOrder":"2","deDupeFields":[["vid"]],"deDupeLookbackDays":"90","goalStatus":200,"actionConfig":[{"mode":"test","args":"test"}],"criteriaConfig":[{"field":"act","op":"eq","value":"call"}]}

Create Goal

This creates a new Goal for an IGRP.

Request:

POST /config/v2/igrps/{IGRP SPECIFIER}/goals

URL Path Params

POST Params

Response:

{"goalId":"2"}

Update Goal Config

Updates the configuration of an existing Goal.

Request:

POST /config/v2/igrps/{IGRP SPECIFIER}/goals/{GOAL SPECIFIER}

URL Path Params

POST Params

Response:

Returns the HTTP 204 (No Content) status code if update successful.

HTTP 204 - NO CONTENT

Delete Goal Config

Remove existing Goal.

Request:

DELETE /config/v2/igrps/{IGRP SPECIFIER}/goals/{GOAL SPECIFIER}

Goal Params

Response:

Returns the HTTP 204 (No Content) status code if delete successful.

HTTP 204 - NO CONTENT

Order Goal Config

Sets the goals order.

Request:

PUT /config/v2/igrps/{IGRP SPECIFIER}/goals/order

URL Path Params

PUT Params

Response:

HTTP 204 - NO CONTENT

Required Criteria

All goals require an action set in the criteria to define what actions the goal should be triggered for. See examples below

Visits to a particular page

{"criteria":[{"field":"act","op":"in","value":"land,page"},{"field":"href","op":"eq","value":"http://www.example.com/some/page.html"}]}

Calls over 60 seconds

{"criteria":[{"field":"act","op":"eq","value":"call"},{"field":"bridgeDuration","op":"gt","value":"60"}]}

Response:

Returns the HTTP response code to reflect the request outcome.

HTTP 204 - NO CONTENT