トポロジー図のデータ構造について¶
サービス関係図のデータ構造について¶
{
"services": [
{
"data": {
"__size": 10,
"__fill": 10,
"fieldA": "1.0",
"fieldB": "test"
},
"name": "demo_web",
"type": "web"
},
{
"data": {
"__size": 10,
"__fill": 10,
"fieldA": "1.0",
"fieldB": "test"
},
"name": "demo_framework",
"type": "framework"
}
],
"maps": [
{
"source": "demo_web",
"target": "demo_framework"
}
]
}
フィールドの説明:
| パラメータ名 | 型 | 説明 |
|---|---|---|
| maps | arrary | トポロジー図の有向エッジリスト |
| maps.source | string | ソースサービス名 |
| maps.target | string | ターゲットサービス名 |
| services | arrary | トポロジー図のサービスノードリスト |
| services.name | string | サービス名 |
| services.type | string | サービス種別。現在のサービス種別は ["app", "framework", "cache", "message_queue", "custom", "db", "web", "aws_lambda"] カスタム種別も指定可能 |
| services.data | json | サービスノードデータ |
| services.data.__size | double | 円のサイズフィールドの値。範囲はなく、 設定されたサイズに応じて自動調整されます |
| services.data.__fill | double | 塗りつぶし色フィールドの値。範囲は、 設定されたグラデーション色系の最大値と最小値の間です |
| services.data.fieldA | string | ツールチップに表示されるフィールド |
| services.data.fieldB | string | ツールチップに表示されるフィールド |
リソース関係図のデータ構造について¶
{
"serviceResource": [
{
"data": {
"__fill": 10,
"avg_per_second_title": "AAA",
"avg_per_second": 1,
"p99_title": "AAA",
"p99": 1,
"error_rate_title": "AAA",
"error_rate": 1
},
"service": "demo_web",
"resource": "demo_web_resource",
"source_type": "web"
},
{
"data": {
"__fill": 10,
"avg_per_second_title": "AAA",
"avg_per_second": 1,
"p99_title": "AAA",
"p99": 1,
"error_rate_title": "AAA",
"error_rate": 1
},
"service": "demo_framework",
"resource": "demo_framework_resource",
"source_type": "framework"
}
],
"maps": [
{
"source": "demo_web",
"source_resource": "demo_web_resource",
"target": "demo_framework",
"target_resource": "demo_framework_resource"
}
]
}
フィールドの説明:
| パラメータ名 | 型 | 説明 |
|---|---|---|
| maps | arrary | トポロジー図の有向エッジリスト |
| maps.source | string | ソースサービス名 |
| maps.source_resource | string | ソースリソース名 |
| maps.target | string | ターゲットサービス名 |
| maps.target_resource | string | ターゲットリソース名 |
| serviceResource | arrary | トポロジー図のリソースノードリスト |
| serviceResource.service | string | サービス名 |
| serviceResource.resource | string | リソース名 |
| serviceResource.source_type | string | リソース種別。現在のリソース種別は ["app", "framework", "cache", "message_queue", "custom", "db", "web", "aws_lambda"] カスタム種別も指定可能 |
| serviceResource.data | json | リソースノードデータ |
| serviceResource.data.__fill | double | 塗りつぶし色フィールドの値。範囲は、 設定されたグラデーション色系の最大値と最小値の間です |
| serviceResource.data.avg_per_second_title | string | 左側フィールドのタイトル |
| serviceResource.data.avg_per_second | double | 左側フィールドの値 |
| serviceResource.data.p99_title | string | 中央フィールドのタイトル |
| serviceResource.data.p99 | double | 中央フィールドの値 |
| serviceResource.data.error_rate_title | string | 右側フィールドのタイトル |
| serviceResource.data.error_rate | double | 右側フィールドの値 |