summaryrefslogtreecommitdiff
path: root/data/paillmtrace/2024-03-11/api-docs.php
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
commit814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch)
tree29e1692a067b17e56886a7d246d2b9521b2b7777 /data/paillmtrace/2024-03-11/api-docs.php
parenteccd5cd5a067f5659982685afdeea209b1888efb (diff)
downloadafterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz
afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip
update APIs 20260712
Diffstat (limited to 'data/paillmtrace/2024-03-11/api-docs.php')
-rw-r--r--data/paillmtrace/2024-03-11/api-docs.php993
1 files changed, 272 insertions, 721 deletions
diff --git a/data/paillmtrace/2024-03-11/api-docs.php b/data/paillmtrace/2024-03-11/api-docs.php
index a72480d..fac7b92 100644
--- a/data/paillmtrace/2024-03-11/api-docs.php
+++ b/data/paillmtrace/2024-03-11/api-docs.php
@@ -1,10 +1,6 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'PaiLLMTrace',
- 'version' => '2024-03-11',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'PaiLLMTrace', 'version' => '2024-03-11'],
'components' => [
'schemas' => [
'EvaluationConfig' => [
@@ -13,49 +9,25 @@
'Context' => [
'type' => 'object',
'properties' => [
- 'JsonPathInSpan' => [
- 'type' => 'string',
- 'minLength' => 1,
- ],
- 'SpanName' => [
- 'type' => 'string',
- 'minLength' => 1,
- ],
- 'JsonPathInSpanValue' => [
- 'type' => 'string',
- ],
+ 'JsonPathInSpan' => ['type' => 'string', 'minLength' => 1],
+ 'SpanName' => ['type' => 'string', 'minLength' => 1],
+ 'JsonPathInSpanValue' => ['type' => 'string'],
],
],
'Answer' => [
'type' => 'object',
'properties' => [
- 'JsonPathInSpan' => [
- 'type' => 'string',
- 'minLength' => 1,
- ],
- 'SpanName' => [
- 'type' => 'string',
- 'minLength' => 1,
- ],
- 'JsonPathInSpanValue' => [
- 'type' => 'string',
- ],
+ 'JsonPathInSpan' => ['type' => 'string', 'minLength' => 1],
+ 'SpanName' => ['type' => 'string', 'minLength' => 1],
+ 'JsonPathInSpanValue' => ['type' => 'string'],
],
],
'Query' => [
'type' => 'object',
'properties' => [
- 'JsonPathInSpan' => [
- 'type' => 'string',
- 'minLength' => 1,
- ],
- 'SpanName' => [
- 'type' => 'string',
- 'minLength' => 1,
- ],
- 'JsonPathInSpanValue' => [
- 'type' => 'string',
- ],
+ 'JsonPathInSpan' => ['type' => 'string', 'minLength' => 1],
+ 'SpanName' => ['type' => 'string', 'minLength' => 1],
+ 'JsonPathInSpanValue' => ['type' => 'string'],
],
],
],
@@ -63,98 +35,117 @@
'ModelConfig' => [
'type' => 'object',
'properties' => [
- 'Temperature' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'ApiKey' => [
- 'type' => 'string',
- ],
- 'Endpoint' => [
- 'type' => 'string',
- ],
- 'UseFunctionCall' => [
- 'type' => 'boolean',
- ],
- 'TopP' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'Name' => [
- 'type' => 'string',
- ],
- 'IsSelfHost' => [
- 'type' => 'boolean',
- ],
+ 'Temperature' => ['type' => 'number', 'format' => 'float'],
+ 'ApiKey' => ['type' => 'string'],
+ 'Endpoint' => ['type' => 'string'],
+ 'UseFunctionCall' => ['type' => 'boolean'],
+ 'TopP' => ['type' => 'number', 'format' => 'float'],
+ 'Name' => ['type' => 'string'],
+ 'IsSelfHost' => ['type' => 'boolean'],
],
],
- 'QuestionAnswer' => [
- 'type' => 'object',
- 'properties' => [
- 'Answer' => [
- 'type' => 'object',
- 'properties' => [
- 'Text' => [
- 'type' => 'string',
- ],
- 'Contexts' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- ],
- ],
- 'Question' => [
- 'type' => 'string',
- ],
- 'GroundTruth' => [
+ ],
+ ],
+ 'apis' => [
+ 'CreateOnlineEvalTask' => [
+ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
'type' => 'object',
+ 'required' => false,
'properties' => [
- 'Text' => [
- 'type' => 'string',
- ],
- 'Contexts' => [
+ 'TaskName' => ['type' => 'string', 'required' => false],
+ 'AppName' => ['type' => 'string', 'required' => false],
+ 'StartTime' => ['type' => 'string', 'required' => false],
+ 'EndTime' => ['type' => 'string', 'required' => false],
+ 'SamplingFrequencyMinutes' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'Description' => ['type' => 'string', 'required' => false],
+ 'Filters' => [
'type' => 'array',
+ 'required' => false,
'items' => [
- 'type' => 'string',
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Key' => ['type' => 'string', 'required' => false],
+ 'Operator' => ['type' => 'string', 'required' => false],
+ 'Value' => ['type' => 'string', 'required' => false],
+ ],
],
],
+ 'SamplingRatio' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'EvaluationConfig' => ['$ref' => '#/components/schemas/EvaluationConfig', 'required' => false],
+ 'ModelConfig' => ['$ref' => '#/components/schemas/ModelConfig', 'required' => false],
],
],
],
],
],
- ],
- 'apis' => [
- 'EvaluateTrace' => [
- 'path' => '/api/v1/PAILLMTrace/eval/trace/{TraceId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
+ 'CreateServiceIdentityRole' => [
+ 'path' => '/api/v1/PAILLMTrace/ServiceIdentityRole',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'DeleteOnlineEvalTask' => [
+ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'TaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
],
- 'produces' => [
- 'application/json',
+ ],
+ 'EvaluateTrace' => [
+ 'path' => '/api/v1/PAILLMTrace/eval/trace/{TraceId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TraceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'body',
@@ -164,138 +155,135 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'AppName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'MinTime' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'MaxTime' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'EvaluationConfig' => [
- '$ref' => '#/components/schemas/EvaluationConfig',
- 'required' => true,
- ],
- 'ModelConfig' => [
- '$ref' => '#/components/schemas/ModelConfig',
- 'required' => false,
- ],
- 'EvaluationId' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'AppName' => ['type' => 'string', 'required' => false],
+ 'MinTime' => ['type' => 'string', 'required' => false],
+ 'MaxTime' => ['type' => 'string', 'required' => false],
+ 'EvaluationConfig' => ['$ref' => '#/components/schemas/EvaluationConfig', 'required' => true],
+ 'ModelConfig' => ['$ref' => '#/components/schemas/ModelConfig', 'required' => false],
+ 'EvaluationId' => ['type' => 'string', 'required' => false],
],
],
],
],
],
- 'DeleteOnlineEvalTask' => [
- 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetEvaluationTemplates' => [
+ 'path' => '/api/v1/PAILLMTrace/eval/templates',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'GetOnlineEvalTask' => [
+ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetEvaluationTemplates' => [
- 'path' => '/api/v1/PAILLMTrace/eval/templates',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetServiceIdentityRole' => [
+ 'path' => '/api/v1/PAILLMTrace/ServiceIdentityRole',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [],
],
- 'GetOnlineEvalTask' => [
- 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetXtraceToken' => [
+ 'path' => '/api/v1/PAILLMTrace/XtraceToken',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'ListEvalResults' => [
+ 'path' => '/api/v1/PAILLMTrace/eval/results',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'TaskId',
- 'in' => 'path',
+ 'name' => 'RecordIds',
+ 'in' => 'query',
+ 'style' => 'simple',
'schema' => [
- 'type' => 'string',
- 'required' => true,
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
],
],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'EvaluationId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Keyword',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
],
],
'ListOnlineEvalTaskResults' => [
'path' => '/api/v1/PAILLMTrace/onlineevaltaskresults',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -305,399 +293,107 @@
'schema' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'EvaluationId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'MostRecentResultsOnly',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
],
],
'ListOnlineEvalTasks' => [
'path' => '/api/v1/PAILLMTrace/onlineevaltasks',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'MinTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'MaxTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'AppName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Status',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Keyword',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SamplingMethod',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SortOrder',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'StopOnlineEvalTask' => [
- 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}/stop',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'TaskId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
- ],
- 'UpdateOnlineEvalTask' => [
- 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'TaskId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'TaskName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'AppName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Filters' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Operator' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'StartTime' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'EndTime' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SamplingFrequencyMinutes' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'SamplingRatio' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'EvaluationConfig' => [
- '$ref' => '#/components/schemas/EvaluationConfig',
- 'required' => false,
- ],
- 'ModelConfig' => [
- '$ref' => '#/components/schemas/ModelConfig',
- 'required' => false,
- ],
- ],
- ],
- ],
- ],
- ],
- 'CreateOnlineEvalTask' => [
- 'path' => '/api/v1/PAILLMTrace/onlineevaltasks',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'body',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'TaskName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'AppName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'StartTime' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'EndTime' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SamplingFrequencyMinutes' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Filters' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Operator' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'SamplingRatio' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'EvaluationConfig' => [
- '$ref' => '#/components/schemas/EvaluationConfig',
- 'required' => false,
- ],
- 'ModelConfig' => [
- '$ref' => '#/components/schemas/ModelConfig',
- 'required' => false,
- ],
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
'ListTracesDatas' => [
'path' => '/api/v1/PAILLMTrace/TracesDatas',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -707,10 +403,7 @@
'schema' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
],
[
@@ -720,127 +413,78 @@
'schema' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
],
[
'name' => 'SessionId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'MinTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'MaxTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'SpanName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'LlmAppName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'MinDuration',
'in' => 'query',
- 'schema' => [
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'number', 'format' => 'float', 'required' => false],
],
[
'name' => 'MaxDuration',
'in' => 'query',
- 'schema' => [
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'number', 'format' => 'float', 'required' => false],
],
[
'name' => 'OpentelemetryCompatible',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
[
'name' => 'HasStatusMessage',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
[
'name' => 'HasEvents',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
[
'name' => 'OwnerSubId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'EndUserId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Filters',
@@ -853,18 +497,9 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Operator' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Key' => ['type' => 'string', 'required' => false],
+ 'Operator' => ['type' => 'string', 'required' => false],
+ 'Value' => ['type' => 'string', 'required' => false],
],
],
],
@@ -872,182 +507,98 @@
[
'name' => 'TraceReduceMethod',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SortOrder',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'CreateServiceIdentityRole' => [
- 'path' => '/api/v1/PAILLMTrace/ServiceIdentityRole',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'StopOnlineEvalTask' => [
+ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}/stop',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
- 'parameters' => [],
- ],
- 'GetServiceIdentityRole' => [
- 'path' => '/api/v1/PAILLMTrace/ServiceIdentityRole',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
+ 'parameters' => [
[
- 'AK' => [],
+ 'name' => 'TaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [],
],
- 'GetXtraceToken' => [
- 'path' => '/api/v1/PAILLMTrace/XtraceToken',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [],
- ],
- 'ListEvalResults' => [
- 'path' => '/api/v1/PAILLMTrace/eval/results',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'UpdateOnlineEvalTask' => [
+ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'RecordIds',
- 'in' => 'query',
- 'style' => 'simple',
- 'schema' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'EvaluationId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'TaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'Keyword',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'TaskName' => ['type' => 'string', 'required' => false],
+ 'AppName' => ['type' => 'string', 'required' => false],
+ 'Filters' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Key' => ['type' => 'string', 'required' => false],
+ 'Operator' => ['type' => 'string', 'required' => false],
+ 'Value' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ ],
+ 'StartTime' => ['type' => 'string', 'required' => false],
+ 'EndTime' => ['type' => 'string', 'required' => false],
+ 'SamplingFrequencyMinutes' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'SamplingRatio' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'Description' => ['type' => 'string', 'required' => false],
+ 'EvaluationConfig' => ['$ref' => '#/components/schemas/EvaluationConfig', 'required' => false],
+ 'ModelConfig' => ['$ref' => '#/components/schemas/ModelConfig', 'required' => false],
+ ],
],
],
],
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'paillmtrace.cn-hangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'paillmtrace.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'paillmtrace.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'paillmtrace.cn-shenzhen.aliyuncs.com',
- ],
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paillmtrace.cn-shenzhen.aliyuncs.com', 'endpoint' => 'paillmtrace.cn-shenzhen.aliyuncs.com', 'vpc' => 'paillmtrace-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paillmtrace.cn-beijing.aliyuncs.com', 'endpoint' => 'paillmtrace.cn-beijing.aliyuncs.com', 'vpc' => 'paillmtrace-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paillmtrace.cn-shanghai.aliyuncs.com', 'endpoint' => 'paillmtrace.cn-shanghai.aliyuncs.com', 'vpc' => 'paillmtrace-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paillmtrace.cn-hangzhou.aliyuncs.com', 'endpoint' => 'paillmtrace.cn-hangzhou.aliyuncs.com', 'vpc' => 'paillmtrace-vpc.cn-hangzhou.aliyuncs.com'],
],
];