Documentation

AdvisorApi extends AbstractApi
in package

Advisors inspect project content and report insights with metrics and recommendations.

Table of Contents

Methods

createCheck()  : AdvisorCheck|null
Create Advisor Check
getCheck()  : AdvisorCheck|null
Get Advisor Check Status
listInsights()  : ModelCollection
List Advisor Insights
putApplicationInsight()  : mixed
Create or Update Application Advisor Insight
updateInsight()  : AdvisorInsight|null
Edit Advisor Insight

Methods

createCheck()

Create Advisor Check

public createCheck(int $projectId[, array<string|int, mixed> $data = [] ]) : AdvisorCheck|null
Parameters
$projectId : int
$data : array<string|int, mixed> = []

Omit both keys to re-check every inspector
string $data[category] Can't be used with inspectors
array $data[inspectors] Can't be used with category. List of key and options (mode: auto or all, promptId)

Tags
link

API Documentation

API Documentation Enterprise

Return values
AdvisorCheck|null

putApplicationInsight()

Create or Update Application Advisor Insight

public putApplicationInsight(int $projectId, string $applicationIdentifier, string $moduleKey, array<string|int, mixed> $data) : mixed
Parameters
$projectId : int
$applicationIdentifier : string
$moduleKey : string

Key of the application's advisor-inspector module

$data : array<string|int, mixed>

string $data[outcome] required. Enum: "flagged" "clear" "not_applicable"
string $data[checkedAt]
array $data[metrics]
array $data[recommendations]
array $data[payload]

Tags
link

API Documentation

API Documentation Enterprise

On this page

Search results