You've already forked pilot-sdk
export custom metrics
This commit is contained in:
@@ -66,6 +66,24 @@ abstract class Action extends Entity
|
||||
];
|
||||
}
|
||||
|
||||
public function exportMetrics(
|
||||
?string $entry = null,
|
||||
?array $entries = null,
|
||||
?string $filter = null,
|
||||
?array $metrics = null
|
||||
)
|
||||
{
|
||||
return [
|
||||
'json' => [
|
||||
'type' => 'export-metrics',
|
||||
'entry' => $entry,
|
||||
'entries' => $entries,
|
||||
'filter' => $filter,
|
||||
'metrics' => $metrics,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
public function error(string $message)
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user