
Open Banking规范中定义了https://openbanking-brasil.github.io/areadesenvolvedor/#obtem-as-metricas-de-disponibilidade-das-apis%EF%BC%8C%E7%94%A8%E4%BA%8E%E6%8F%90%E4%BE%9B%E5%8F%82%E4%B8%8E%E6%9C%BA%E6%9E%84Open Banking生态系统中其他API的可用性信息。本镜像提供的验证器用于检查发送到该应用的Payload是否符合该API的文档规范,确保参与机构能够验证其API的响应有效性。
bash$ docker pull openbankingbrasil/metrics-validator:latest
bash$ docker run -dp 3005:3005 openbankingbrasil/metrics-validator
容器启动后,验证服务将在本地3005端口运行。
通过发送POST请求到以下端点进行Payload验证:
POST http://localhost:3005/validator/metrics
请求Payload格式
输入Payload需符合https://openbanking-brasil.github.io/areadesenvolvedor/#obtem-as-metricas-de-disponibilidade-das-apis%E7%9A%84%E8%A7%84%E8%8C%83%EF%BC%8C%E9%9C%80%E5%B0%86%E6%8C%87%E6%A0%87API%EF%BC%88API Admin)的响应包含在"resource"属性中。
请求示例
json{ "data": { "requestTime": "teste", "errors": { "currentDay": 10, "previousDays": [ 270, 298, 303, 244, 274, 249, 253 ] }, "peakTps": { "currentDay": 10, "previousDays": [ 2, 2, 2, 2, 2, 2, 2 ] }, "averageTps": { "currentDay": 10, "previousDays": [ 1, 1, 1, 1, 1, 1, 1 ] }, "rejections": { "currentDay": 10, "previousDays": [ 137, 149, 115, 125, 152, 141, 148 ] }, "availability": { "uptime": { "generalUptimeRate": "0.99", "endpoints": [ { "url": "https://api.demo.obconnect.io/br/open-banking/products-services/v1", "uptimeRate": "0.99" }, { "url": "https://api.demo.obconnect.io/br/open-banking/discovery/v1", "uptimeRate": "0.99" }, { "url": "https://api.demo.obconnect.io/br/open-banking/channels/v1", "uptimeRate": "0.99" } ] }, "downtime": { "generalDowntime": 153, "scheduledOutage": 0, "endpoints": [ { "url": "https://api.demo.obconnect.io/br/open-banking/products-services/v1", "partialDowntime": 67 }, { "url": "https://api.demo.obconnect.io/br/open-banking/discovery/v1", "partialDowntime": 7 }, { "url": "https://api.demo.obconnect.io/br/open-banking/channels/v1", "partialDowntime": 79 } ] } }, "invocations": { "unauthenticated": { "currentDay": 384, "previousDays": [ 453, 416, 415, 375, 433, 452, 407 ] }, "unattended": { "currentDay": 84, "previousDays": [ 78, 71, 81, 56, 81, 72, 79 ] }, "highPriority": { "currentDay": 205, "previousDays": [ 208, 221, 195, 180, 210, 189, 216 ] }, "mediumPriority": { "currentDay": 713, "previousDays": [ 635, 762, 670, 655, 722, 637, 662 ] } }, "averageResponse": { "unauthenticated": { "currentDay": 1027, "previousDays": [ 1024, 1004, 970, 1012, 995, 1021, 981 ] }, "unattended": { "currentDay": 919, "previousDays": [ 972, 1103, 1018, 941, 985, 911, 1016 ] }, "highPriority": { "currentDay": 1053, "previousDays": [ 1012, 963, 981, 1029, 1019, 974, 1001 ] }, "mediumPriority": { "currentDay": 985, "previousDays": [ 983, 1011, 1029, 1013, 999, 1004, 994 ] } } } }
响应说明
json{ "data": [], "status": 200 }
json{ "data": [ "instance.resource.data.invocations.unattended.previousDays does not meet minimum length of 7", "instance.resource.data.invocations.mediumPriority.currentDay is not of a type(s) integer", "instance.resource.data.averageResponse.unattended.previousDays[4] is not of a type(s) integer" ], "status": 200 }
错误示例解释
instance.resource.data.invocations.unattended.previousDays does not meet minimum length of 7:根据文档,"previousDays"数组必须至少包含7个元素instance.resource.data.invocations.mediumPriority.currentDay is not of a type(s) integer:"currentDay"属性必须是整数类型instance.resource.data.averageResponse.unattended.previousDays[4] is not of a type(s) integer:"previousDays"数组的第4个元素必须是整数类型您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。



探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务