api.swagger.json 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "api/v1/api.proto",
  5. "version": "version not set"
  6. },
  7. "schemes": [
  8. "http",
  9. "https"
  10. ],
  11. "consumes": [
  12. "application/json"
  13. ],
  14. "produces": [
  15. "application/json"
  16. ],
  17. "paths": {
  18. "/x/internal/dapper/clt-status": {
  19. "get": {
  20. "summary": "CltStatus 获取 collector 信息",
  21. "operationId": "CltStatus",
  22. "responses": {
  23. "200": {
  24. "description": "A successful response.",
  25. "schema": {
  26. "$ref": "#/definitions/v1CltStatusReply"
  27. }
  28. }
  29. },
  30. "tags": [
  31. "DapperQuery"
  32. ]
  33. }
  34. },
  35. "/x/internal/dapper/depends-rank": {
  36. "get": {
  37. "summary": "DependsRank 查询某一个 service_name:operation_name 下所有依赖组件排名",
  38. "operationId": "DependsRank",
  39. "responses": {
  40. "200": {
  41. "description": "A successful response.",
  42. "schema": {
  43. "$ref": "#/definitions/v1DependsRankReply"
  44. }
  45. }
  46. },
  47. "parameters": [
  48. {
  49. "name": "service_name",
  50. "in": "query",
  51. "required": false,
  52. "type": "string"
  53. },
  54. {
  55. "name": "start",
  56. "in": "query",
  57. "required": false,
  58. "type": "string",
  59. "format": "int64"
  60. },
  61. {
  62. "name": "end",
  63. "in": "query",
  64. "required": false,
  65. "type": "string",
  66. "format": "int64"
  67. },
  68. {
  69. "name": "rank_type",
  70. "description": "排序类型 max_duration 最大耗时, min_duration 最小耗时, avg_duration 平均耗时, errors 错误数.",
  71. "in": "query",
  72. "required": false,
  73. "type": "string"
  74. }
  75. ],
  76. "tags": [
  77. "DapperQuery"
  78. ]
  79. }
  80. },
  81. "/x/internal/dapper/depends-topology": {
  82. "get": {
  83. "summary": "DependsTopology 获取依赖拓扑图",
  84. "operationId": "DependsTopology",
  85. "responses": {
  86. "200": {
  87. "description": "A successful response.",
  88. "schema": {
  89. "$ref": "#/definitions/v1DependsTopologyReply"
  90. }
  91. }
  92. },
  93. "tags": [
  94. "DapperQuery"
  95. ]
  96. }
  97. },
  98. "/x/internal/dapper/list-span": {
  99. "get": {
  100. "summary": "ListSpan 列出一个 service_name 某一 operation_name 所有采样到 Span",
  101. "operationId": "ListSpan",
  102. "responses": {
  103. "200": {
  104. "description": "A successful response.",
  105. "schema": {
  106. "$ref": "#/definitions/v1ListSpanReply"
  107. }
  108. }
  109. },
  110. "parameters": [
  111. {
  112. "name": "service_name",
  113. "in": "query",
  114. "required": false,
  115. "type": "string"
  116. },
  117. {
  118. "name": "operation_name",
  119. "in": "query",
  120. "required": false,
  121. "type": "string"
  122. },
  123. {
  124. "name": "start",
  125. "in": "query",
  126. "required": false,
  127. "type": "string",
  128. "format": "int64"
  129. },
  130. {
  131. "name": "end",
  132. "in": "query",
  133. "required": false,
  134. "type": "string",
  135. "format": "int64"
  136. },
  137. {
  138. "name": "order",
  139. "description": "目前支持的 order \ntime:desc time:asc 按时间排序\nduration:desc duration:asc 按耗时排序.",
  140. "in": "query",
  141. "required": false,
  142. "type": "string"
  143. },
  144. {
  145. "name": "only_error",
  146. "description": "只显示 error 的 span.",
  147. "in": "query",
  148. "required": false,
  149. "type": "boolean",
  150. "format": "boolean"
  151. },
  152. {
  153. "name": "offset",
  154. "in": "query",
  155. "required": false,
  156. "type": "integer",
  157. "format": "int32"
  158. },
  159. {
  160. "name": "limit",
  161. "in": "query",
  162. "required": false,
  163. "type": "integer",
  164. "format": "int32"
  165. }
  166. ],
  167. "tags": [
  168. "DapperQuery"
  169. ]
  170. }
  171. },
  172. "/x/internal/dapper/operation-names": {
  173. "get": {
  174. "summary": "ListOperationName 列出某一 service 下所有 operation_name 仅 span.kind 为 server 的 operation_name",
  175. "operationId": "ListOperationName",
  176. "responses": {
  177. "200": {
  178. "description": "A successful response.",
  179. "schema": {
  180. "$ref": "#/definitions/v1ListOperationNameReply"
  181. }
  182. }
  183. },
  184. "parameters": [
  185. {
  186. "name": "service_name",
  187. "in": "query",
  188. "required": false,
  189. "type": "string"
  190. }
  191. ],
  192. "tags": [
  193. "DapperQuery"
  194. ]
  195. }
  196. },
  197. "/x/internal/dapper/operation-names-rank": {
  198. "get": {
  199. "summary": "OperationNameRank 查询 OperationName 排名列表",
  200. "operationId": "OperationNameRank",
  201. "responses": {
  202. "200": {
  203. "description": "A successful response.",
  204. "schema": {
  205. "$ref": "#/definitions/v1OperationNameRankReply"
  206. }
  207. }
  208. },
  209. "parameters": [
  210. {
  211. "name": "service_name",
  212. "in": "query",
  213. "required": false,
  214. "type": "string"
  215. },
  216. {
  217. "name": "start",
  218. "in": "query",
  219. "required": false,
  220. "type": "string",
  221. "format": "int64"
  222. },
  223. {
  224. "name": "end",
  225. "in": "query",
  226. "required": false,
  227. "type": "string",
  228. "format": "int64"
  229. },
  230. {
  231. "name": "rank_type",
  232. "description": "排序类型 max_duration 最大耗时, min_duration 最小耗时, avg_duration 平均耗时, errors 错误数.",
  233. "in": "query",
  234. "required": false,
  235. "type": "string"
  236. }
  237. ],
  238. "tags": [
  239. "DapperQuery"
  240. ]
  241. }
  242. },
  243. "/x/internal/dapper/ops-log": {
  244. "get": {
  245. "summary": "OpsLog 获取 通过 trace-id 获取 opslog 记录\n如果请求的 trace-id 没有被记录到, 则需要提供 service_name operation_name 和 timestamp 进行模糊查询",
  246. "operationId": "OpsLog",
  247. "responses": {
  248. "200": {
  249. "description": "A successful response.",
  250. "schema": {
  251. "$ref": "#/definitions/v1OpsLogReply"
  252. }
  253. }
  254. },
  255. "parameters": [
  256. {
  257. "name": "trace_id",
  258. "in": "query",
  259. "required": false,
  260. "type": "string"
  261. },
  262. {
  263. "name": "span_id",
  264. "in": "query",
  265. "required": false,
  266. "type": "string"
  267. },
  268. {
  269. "name": "trace_field",
  270. "in": "query",
  271. "required": false,
  272. "type": "string"
  273. },
  274. {
  275. "name": "service_name",
  276. "in": "query",
  277. "required": false,
  278. "type": "string"
  279. },
  280. {
  281. "name": "operation_name",
  282. "in": "query",
  283. "required": false,
  284. "type": "string"
  285. },
  286. {
  287. "name": "start",
  288. "description": "开始时间.",
  289. "in": "query",
  290. "required": false,
  291. "type": "string",
  292. "format": "int64"
  293. },
  294. {
  295. "name": "end",
  296. "description": "结束时间.",
  297. "in": "query",
  298. "required": false,
  299. "type": "string",
  300. "format": "int64"
  301. }
  302. ],
  303. "tags": [
  304. "DapperQuery"
  305. ]
  306. }
  307. },
  308. "/x/internal/dapper/raw-trace": {
  309. "get": {
  310. "summary": "RawTrace 原始 Trace 数据",
  311. "operationId": "RawTrace",
  312. "responses": {
  313. "200": {
  314. "description": "A successful response.",
  315. "schema": {
  316. "$ref": "#/definitions/v1RawTraceReply"
  317. }
  318. }
  319. },
  320. "parameters": [
  321. {
  322. "name": "trace_id",
  323. "in": "query",
  324. "required": false,
  325. "type": "string"
  326. }
  327. ],
  328. "tags": [
  329. "DapperQuery"
  330. ]
  331. }
  332. },
  333. "/x/internal/dapper/sample-point": {
  334. "get": {
  335. "summary": "SamplePoint 获取采样点数据",
  336. "operationId": "SamplePoint",
  337. "responses": {
  338. "200": {
  339. "description": "A successful response.",
  340. "schema": {
  341. "$ref": "#/definitions/v1SamplePointReply"
  342. }
  343. }
  344. },
  345. "parameters": [
  346. {
  347. "name": "service_name",
  348. "in": "query",
  349. "required": false,
  350. "type": "string"
  351. },
  352. {
  353. "name": "operation_name",
  354. "in": "query",
  355. "required": false,
  356. "type": "string"
  357. },
  358. {
  359. "name": "only_error",
  360. "description": "only_error 在 errors 那个图可以指定为 true.",
  361. "in": "query",
  362. "required": false,
  363. "type": "boolean",
  364. "format": "boolean"
  365. },
  366. {
  367. "name": "interval",
  368. "description": "interval 使用 span-series 返回的 interval 即可.",
  369. "in": "query",
  370. "required": false,
  371. "type": "string",
  372. "format": "int64"
  373. },
  374. {
  375. "name": "time",
  376. "description": "time 使用 time-series 返回的时间即可,相同格式型如 2006-01-02T15:04:05.",
  377. "in": "query",
  378. "required": false,
  379. "type": "string"
  380. }
  381. ],
  382. "tags": [
  383. "DapperQuery"
  384. ]
  385. }
  386. },
  387. "/x/internal/dapper/service-depend": {
  388. "get": {
  389. "summary": "ServiceDepend 查询服务的直接依赖\nTODO: 通过最近收集的到3 个 span 实时计算的,在当前查询的服务出现不正常的时候,查询结果可能不准确",
  390. "operationId": "ServiceDepend",
  391. "responses": {
  392. "200": {
  393. "description": "A successful response.",
  394. "schema": {
  395. "$ref": "#/definitions/v1ServiceDependReply"
  396. }
  397. }
  398. },
  399. "parameters": [
  400. {
  401. "name": "service_name",
  402. "description": "service_name 不解释!.",
  403. "in": "query",
  404. "required": false,
  405. "type": "string"
  406. },
  407. {
  408. "name": "operation_name",
  409. "description": "operation_name 当 operation_name 为空时查询所有 operation_name 然后 merge 结果.",
  410. "in": "query",
  411. "required": false,
  412. "type": "string"
  413. }
  414. ],
  415. "tags": [
  416. "DapperQuery"
  417. ]
  418. }
  419. },
  420. "/x/internal/dapper/service-names": {
  421. "get": {
  422. "summary": "ListServiceName 列出所有 service",
  423. "operationId": "ListServiceName",
  424. "responses": {
  425. "200": {
  426. "description": "A successful response.",
  427. "schema": {
  428. "$ref": "#/definitions/v1ListServiceNameReply"
  429. }
  430. }
  431. },
  432. "tags": [
  433. "DapperQuery"
  434. ]
  435. }
  436. },
  437. "/x/internal/dapper/span-series": {
  438. "get": {
  439. "summary": "SpanSeries 获取 span 的时间序列数据",
  440. "operationId": "SpanSeries",
  441. "responses": {
  442. "200": {
  443. "description": "A successful response.",
  444. "schema": {
  445. "$ref": "#/definitions/v1SpanSeriesReply"
  446. }
  447. }
  448. },
  449. "parameters": [
  450. {
  451. "name": "service_name",
  452. "in": "query",
  453. "required": false,
  454. "type": "string"
  455. },
  456. {
  457. "name": "operation_name",
  458. "in": "query",
  459. "required": false,
  460. "type": "string"
  461. },
  462. {
  463. "name": "start",
  464. "in": "query",
  465. "required": false,
  466. "type": "string",
  467. "format": "int64"
  468. },
  469. {
  470. "name": "end",
  471. "in": "query",
  472. "required": false,
  473. "type": "string",
  474. "format": "int64"
  475. },
  476. {
  477. "name": "fields",
  478. "description": "可选的 fields 有 max_duration, min_duration, avg_duration, errors\n其中除 errors 返回的是一段时间内的总数 其他返回的都是平均数\nfields 是个数组可以通过 fields=max_duration,min_duration,avg_duration 逗号分隔.",
  479. "in": "query",
  480. "required": false,
  481. "type": "string"
  482. }
  483. ],
  484. "tags": [
  485. "DapperQuery"
  486. ]
  487. }
  488. },
  489. "/x/internal/dapper/trace": {
  490. "get": {
  491. "summary": "Trace 查询一个 Trace",
  492. "operationId": "Trace",
  493. "responses": {
  494. "200": {
  495. "description": "A successful response.",
  496. "schema": {
  497. "$ref": "#/definitions/v1TraceReply"
  498. }
  499. }
  500. },
  501. "parameters": [
  502. {
  503. "name": "trace_id",
  504. "in": "query",
  505. "required": false,
  506. "type": "string"
  507. },
  508. {
  509. "name": "span_id",
  510. "in": "query",
  511. "required": false,
  512. "type": "string"
  513. }
  514. ],
  515. "tags": [
  516. "DapperQuery"
  517. ]
  518. }
  519. }
  520. },
  521. "definitions": {
  522. "v1Client": {
  523. "type": "object",
  524. "properties": {
  525. "addr": {
  526. "type": "string"
  527. },
  528. "err_count": {
  529. "type": "string",
  530. "format": "int64"
  531. },
  532. "rate": {
  533. "type": "string",
  534. "format": "int64"
  535. },
  536. "up_time": {
  537. "type": "string",
  538. "format": "int64"
  539. }
  540. }
  541. },
  542. "v1CltNode": {
  543. "type": "object",
  544. "properties": {
  545. "node": {
  546. "type": "string"
  547. },
  548. "queue_len": {
  549. "type": "string",
  550. "format": "int64"
  551. },
  552. "clients": {
  553. "type": "array",
  554. "items": {
  555. "$ref": "#/definitions/v1Client"
  556. }
  557. }
  558. }
  559. },
  560. "v1CltStatusReply": {
  561. "type": "object",
  562. "properties": {
  563. "nodes": {
  564. "type": "array",
  565. "items": {
  566. "$ref": "#/definitions/v1CltNode"
  567. }
  568. }
  569. }
  570. },
  571. "v1DependsRankReply": {
  572. "type": "object",
  573. "properties": {
  574. "rank_type": {
  575. "type": "string"
  576. },
  577. "items": {
  578. "type": "array",
  579. "items": {
  580. "$ref": "#/definitions/v1RankItem"
  581. }
  582. }
  583. }
  584. },
  585. "v1DependsTopologyItem": {
  586. "type": "object",
  587. "properties": {
  588. "service_name": {
  589. "type": "string"
  590. },
  591. "depend_on": {
  592. "type": "string"
  593. }
  594. }
  595. },
  596. "v1DependsTopologyReply": {
  597. "type": "object",
  598. "properties": {
  599. "items": {
  600. "type": "array",
  601. "items": {
  602. "$ref": "#/definitions/v1DependsTopologyItem"
  603. }
  604. }
  605. }
  606. },
  607. "v1Field": {
  608. "type": "object",
  609. "properties": {
  610. "key": {
  611. "type": "string"
  612. },
  613. "value": {
  614. "type": "string"
  615. }
  616. }
  617. },
  618. "v1ListOperationNameReply": {
  619. "type": "object",
  620. "properties": {
  621. "operation_names": {
  622. "type": "array",
  623. "items": {
  624. "type": "string"
  625. }
  626. }
  627. }
  628. },
  629. "v1ListServiceNameReply": {
  630. "type": "object",
  631. "properties": {
  632. "service_names": {
  633. "type": "array",
  634. "items": {
  635. "type": "string"
  636. }
  637. }
  638. }
  639. },
  640. "v1ListSpanReply": {
  641. "type": "object",
  642. "properties": {
  643. "items": {
  644. "type": "array",
  645. "items": {
  646. "$ref": "#/definitions/v1SpanListItem"
  647. }
  648. }
  649. }
  650. },
  651. "v1Log": {
  652. "type": "object",
  653. "properties": {
  654. "timestamp": {
  655. "type": "string",
  656. "format": "int64"
  657. },
  658. "fields": {
  659. "type": "array",
  660. "items": {
  661. "$ref": "#/definitions/v1Field"
  662. }
  663. }
  664. }
  665. },
  666. "v1OperationNameRankReply": {
  667. "type": "object",
  668. "properties": {
  669. "rank_type": {
  670. "type": "string"
  671. },
  672. "items": {
  673. "type": "array",
  674. "items": {
  675. "$ref": "#/definitions/v1RankItem"
  676. }
  677. }
  678. }
  679. },
  680. "v1OpsLogRecord": {
  681. "type": "object",
  682. "properties": {
  683. "time": {
  684. "type": "string"
  685. },
  686. "fields": {
  687. "type": "object",
  688. "additionalProperties": {
  689. "$ref": "#/definitions/v1TagValue"
  690. }
  691. },
  692. "level": {
  693. "type": "string"
  694. },
  695. "message": {
  696. "type": "string"
  697. }
  698. }
  699. },
  700. "v1OpsLogReply": {
  701. "type": "object",
  702. "properties": {
  703. "records": {
  704. "type": "array",
  705. "items": {
  706. "$ref": "#/definitions/v1OpsLogRecord"
  707. }
  708. }
  709. }
  710. },
  711. "v1RankItem": {
  712. "type": "object",
  713. "properties": {
  714. "service_name": {
  715. "type": "string"
  716. },
  717. "operation_name": {
  718. "type": "string"
  719. },
  720. "value": {
  721. "type": "number",
  722. "format": "double",
  723. "title": "当 rank type 是 max_duration, min_duration, avg_duration 时 value 是纳秒\n当 rank type 是 errors 是 value 是错误数"
  724. }
  725. }
  726. },
  727. "v1RawTraceReply": {
  728. "type": "object",
  729. "properties": {
  730. "items": {
  731. "type": "array",
  732. "items": {
  733. "$ref": "#/definitions/v1Span"
  734. }
  735. }
  736. }
  737. },
  738. "v1SamplePointItem": {
  739. "type": "object",
  740. "properties": {
  741. "trace_id": {
  742. "type": "string"
  743. },
  744. "span_id": {
  745. "type": "string"
  746. },
  747. "duration": {
  748. "type": "string",
  749. "format": "int64"
  750. },
  751. "is_error": {
  752. "type": "boolean",
  753. "format": "boolean"
  754. }
  755. }
  756. },
  757. "v1SamplePointReply": {
  758. "type": "object",
  759. "properties": {
  760. "items": {
  761. "type": "array",
  762. "items": {
  763. "$ref": "#/definitions/v1SamplePointItem"
  764. }
  765. }
  766. }
  767. },
  768. "v1SeriesItem": {
  769. "type": "object",
  770. "properties": {
  771. "field": {
  772. "type": "string",
  773. "title": "名称一般是请求的 field+{count|mean}"
  774. },
  775. "values": {
  776. "type": "array",
  777. "items": {
  778. "type": "string",
  779. "format": "int64"
  780. }
  781. }
  782. }
  783. },
  784. "v1ServiceDependItem": {
  785. "type": "object",
  786. "properties": {
  787. "service_name": {
  788. "type": "string",
  789. "title": "service_name 依赖服务名称, service 为 AppID 其他为组件名 mysql, redis, http 等"
  790. },
  791. "component": {
  792. "type": "string",
  793. "title": "component, 通讯组件 e.g. net/http, goRPC, gRPC"
  794. },
  795. "operation_names": {
  796. "type": "array",
  797. "items": {
  798. "type": "string"
  799. },
  800. "title": "operation_names 被依赖服务的 operation_names, mysql, redis 等为空"
  801. }
  802. }
  803. },
  804. "v1ServiceDependReply": {
  805. "type": "object",
  806. "properties": {
  807. "items": {
  808. "type": "array",
  809. "items": {
  810. "$ref": "#/definitions/v1ServiceDependItem"
  811. }
  812. }
  813. }
  814. },
  815. "v1Span": {
  816. "type": "object",
  817. "properties": {
  818. "service_name": {
  819. "type": "string"
  820. },
  821. "operation_name": {
  822. "type": "string"
  823. },
  824. "trace_id": {
  825. "type": "string"
  826. },
  827. "span_id": {
  828. "type": "string"
  829. },
  830. "parent_id": {
  831. "type": "string"
  832. },
  833. "start_time": {
  834. "type": "string",
  835. "format": "int64"
  836. },
  837. "duration": {
  838. "type": "string",
  839. "format": "int64"
  840. },
  841. "tags": {
  842. "type": "object",
  843. "additionalProperties": {
  844. "$ref": "#/definitions/v1TagValue"
  845. }
  846. },
  847. "logs": {
  848. "type": "array",
  849. "items": {
  850. "$ref": "#/definitions/v1Log"
  851. }
  852. },
  853. "level": {
  854. "type": "integer",
  855. "format": "int32"
  856. },
  857. "childs": {
  858. "type": "array",
  859. "items": {
  860. "$ref": "#/definitions/v1Span"
  861. }
  862. }
  863. }
  864. },
  865. "v1SpanListItem": {
  866. "type": "object",
  867. "properties": {
  868. "trace_id": {
  869. "type": "string"
  870. },
  871. "span_id": {
  872. "type": "string"
  873. },
  874. "parent_id": {
  875. "type": "string"
  876. },
  877. "service_name": {
  878. "type": "string"
  879. },
  880. "operation_name": {
  881. "type": "string"
  882. },
  883. "start_time": {
  884. "type": "string"
  885. },
  886. "duration": {
  887. "type": "string"
  888. },
  889. "tags": {
  890. "type": "object",
  891. "additionalProperties": {
  892. "$ref": "#/definitions/v1TagValue"
  893. }
  894. },
  895. "is_error": {
  896. "type": "boolean",
  897. "format": "boolean",
  898. "title": "Deprecated: use tags"
  899. },
  900. "container_ip": {
  901. "type": "string"
  902. },
  903. "region_zone": {
  904. "type": "string"
  905. },
  906. "mark": {
  907. "type": "string"
  908. }
  909. }
  910. },
  911. "v1SpanSeriesReply": {
  912. "type": "object",
  913. "properties": {
  914. "interval": {
  915. "type": "string",
  916. "format": "int64",
  917. "title": "返回点的间隔"
  918. },
  919. "times": {
  920. "type": "array",
  921. "items": {
  922. "type": "string"
  923. }
  924. },
  925. "items": {
  926. "type": "array",
  927. "items": {
  928. "$ref": "#/definitions/v1SeriesItem"
  929. }
  930. }
  931. }
  932. },
  933. "v1TagValue": {
  934. "type": "object",
  935. "properties": {
  936. "string_value": {
  937. "type": "string"
  938. },
  939. "int64_value": {
  940. "type": "string",
  941. "format": "int64"
  942. },
  943. "bool_value": {
  944. "type": "boolean",
  945. "format": "boolean"
  946. },
  947. "float_value": {
  948. "type": "number",
  949. "format": "float"
  950. }
  951. }
  952. },
  953. "v1TraceReply": {
  954. "type": "object",
  955. "properties": {
  956. "service_count": {
  957. "type": "integer",
  958. "format": "int32"
  959. },
  960. "span_count": {
  961. "type": "integer",
  962. "format": "int32"
  963. },
  964. "max_level": {
  965. "type": "integer",
  966. "format": "int32"
  967. },
  968. "root": {
  969. "$ref": "#/definitions/v1Span"
  970. }
  971. }
  972. }
  973. }
  974. }