Добавить дизайн Invest Harness и контракты платформы
This commit is contained in:
1 parent
5d31a39aae
commit
2af6dd78ba
21 files changed
+1322
-2
No files matched your search
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"lookbackDays": 90,
|
||||
"reportLanguage": "ru",
|
||||
"includeSources": true
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"type": "object",
|
||||
"title": "Настройки обзора компаний",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"lookbackDays",
|
||||
"reportLanguage",
|
||||
"includeSources"
|
||||
],
|
||||
"properties": {
|
||||
"lookbackDays": {
|
||||
"type": "integer",
|
||||
"title": "Период анализа в днях",
|
||||
"minimum": 1,
|
||||
"maximum": 365,
|
||||
"default": 90
|
||||
},
|
||||
"reportLanguage": {
|
||||
"type": "string",
|
||||
"title": "Язык отчёта",
|
||||
"enum": [
|
||||
"ru",
|
||||
"en"
|
||||
],
|
||||
"default": "ru"
|
||||
},
|
||||
"includeSources": {
|
||||
"type": "boolean",
|
||||
"title": "Показывать источники",
|
||||
"default": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"protocolVersion": "1",
|
||||
"runId": "run_example",
|
||||
"agentRevisionId": "revision_example_1",
|
||||
"templateVersionId": "template_example_1",
|
||||
"packages": [
|
||||
{
|
||||
"packageVersionId": "template_example_1",
|
||||
"kind": "template",
|
||||
"digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
"artifactRef": "artifact_template_example"
|
||||
},
|
||||
{
|
||||
"packageVersionId": "harness_example_1",
|
||||
"kind": "harness",
|
||||
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
||||
"artifactRef": "registry.example.invalid/invest/runtime@sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
||||
}
|
||||
],
|
||||
"configSchemaDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
||||
"config": {
|
||||
"lookbackDays": 90,
|
||||
"reportLanguage": "ru",
|
||||
"includeSources": true
|
||||
},
|
||||
"input": {
|
||||
"company": "Example Company"
|
||||
},
|
||||
"connections": {},
|
||||
"limits": {
|
||||
"cpuMillis": 1000,
|
||||
"memoryBytes": 1073741824,
|
||||
"timeoutSeconds": 900,
|
||||
"outputBytes": 104857600
|
||||
},
|
||||
"requiredCapabilities": [
|
||||
"oci-v1",
|
||||
"cancel-v1"
|
||||
],
|
||||
"entrypoint": [
|
||||
"/app/entrypoint",
|
||||
"/input/execution.json"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"manifestVersion": "1",
|
||||
"kind": "template",
|
||||
"name": "company-review",
|
||||
"version": "1.0.0",
|
||||
"artifact": {
|
||||
"ref": "artifact_template_example",
|
||||
"digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
"mediaType": "application/gzip"
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
"packageVersionId": "harness_example_1",
|
||||
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
||||
}
|
||||
],
|
||||
"harnessVersionId": "harness_example_1",
|
||||
"configSchemaRef": "config.schema.json",
|
||||
"defaultsRef": "config.defaults.json",
|
||||
"uiSchemaRef": "ui.schema.json",
|
||||
"requiredCapabilities": [
|
||||
"oci-v1",
|
||||
"cancel-v1"
|
||||
],
|
||||
"requiredPermissions": [],
|
||||
"retrySafe": false
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "VerticalLayout",
|
||||
"elements": [
|
||||
{
|
||||
"type": "Control",
|
||||
"scope": "#/properties/lookbackDays"
|
||||
},
|
||||
{
|
||||
"type": "Control",
|
||||
"scope": "#/properties/reportLanguage"
|
||||
},
|
||||
{
|
||||
"type": "Control",
|
||||
"scope": "#/properties/includeSources"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user