-
Notifications
You must be signed in to change notification settings - Fork 10
/
BoringAPI.yml
157 lines (155 loc) · 4.29 KB
/
BoringAPI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
openapi: "3.0.0"
info:
description: "BoringAPI descripton for mining"
version: "1.0.0"
title: "BoringAPI"
servers:
- url: http://127.0.0.1:9090
paths:
/stats:
get:
tags:
- "Stats"
summary: "Get miner stats"
responses:
200:
description: "Success"
content:
application/json:
schema:
$ref: "#/components/schemas/Statsreply"
500:
description: "Internal server error"
components:
schemas:
Statsreply:
type: "object"
properties:
Algorithms:
type: "array"
items:
type: object
additionalProperties:
oneOf:
- $ref: "#/components/schemas/AlgoStats"
- type: string
- type: integer
example:
"CrypoNightV8":
"CurrentPool": "xmr-eu1.nanopool.org:14444"
"GPU 1":
"Accepted": 2
"Denied": 0
"Hashrate": "2.040000e+02"
"GPU 3":
"Accepted": 4
"Denied": 0
"Hashrate": "1.990000e+02"
"ReconnectionCount": 0
"Total":
"Accepted": 6
"Denied": 0
"Hashrate": "4.030000e+02"
"Ethash":
"CurrentPool": "etc-eu1.nanopool.org:19999"
"GPU 0":
"Accepted": 3
"Denied": 0
"Hashrate": "2.040000e+07"
"GPU 2":
"Accepted": 2
"Denied": 0
"Hashrate": "2.020000e+07"
"GPU 4":
"Accepted": 5
"Denied": 0
"Hashrate": "1.970000e+07"
"ReconnectionCount": 0
"Total":
"Accepted": 10
"Denied": 0
"Hashrate": "6.030000e+07"
"RandomHash":
"CPU":
"Accepted": 6
"Denied": 6
"Hashrate": "1.980000e+02"
"CurrentPool": "pasc-eu1.nanopool.org:15556"
"ReconnectionCount": 0
"Total":
"Accepted": 6
"Denied": 6
"Hashrate": "1.980000e+02"
Devices:
type: "array"
items:
additionalProperties:
$ref: "#/components/schemas/DeviceStats"
example:
"CPU":
"Name": "Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz"
"Platform": "CPU"
"GPU 0":
"Name": "P106-100"
"Platform": "CUDA"
"Pci": "01:00.0"
"Fan": 48
"Temperature": 65
"Power": 104.3
"GPU 1":
"Name": "RX 550"
"Platform": "OpenCL"
"Pci": "02:00.0"
"Fan": 48
"Temperature": 62
"Power": 104.3
"GPU 2":
"Name": "P106-100"
"Platform": "CUDA"
"Pci": "03:00.0"
"Fan": 48
"Temperature": 62
"Power": 104.3
"GPU 3":
"Name": "RX 550"
"Platform": "OpenCL"
"Pci": "04:00.0"
"Fan": 48
"Temperature": 59
"Power": 104.3
"GPU 4":
"Name": "P106-100"
"Platform": "CUDA"
"Pci": "05:00.0"
"Fan": 48
"Temperature": 59
"Power": 104.3
WorkTime:
type: "integer"
example: 143
AlgoStats:
type: object
properties:
Accepted:
type: integer
Denied:
type: integer
Hashrate:
type: string
DeviceStats:
type: object
properties:
Name:
type: string
Platform:
type: string
Pci:
type: string
description: Bus:Device.Function notation
Fan:
type: integer
Temperature:
type: integer
Power:
type: number
format: double