Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Wellbore Domain Services
Commits
8683c4e2
Commit
8683c4e2
authored
Sep 27, 2021
by
Luc Yriarte
Browse files
Update /logs/{logid}/statistics response spec according to real API behavior
parent
c60b8ae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/routers/ddms_v2/log_ddms_v2.py
View file @
8683c4e2
...
...
@@ -14,7 +14,7 @@
import
asyncio
import
json
from
typing
import
List
,
Optional
from
typing
import
Dict
,
List
,
Optional
import
numpy
as
np
import
pandas
as
pd
...
...
@@ -392,15 +392,11 @@ class StatsColumn(BaseModel):
max
:
float
=
Field
(...,
description
=
"Maximum of the values in the object"
)
class
GetStatisticResponse
(
BaseModel
):
columns
:
List
[
StatsColumn
]
@
router
.
get
(
'/logs/{logid}/statistics'
,
summary
=
'Data statistics'
,
description
=
"This API will return count, mean, std, min, max and percentiles of each column. {}"
.
format
(
REQUIRED_ROLES_READ
),
response_model
=
GetStatisticResponse
,
response_model
=
Dict
[
str
,
StatsColumn
]
,
)
async
def
get_log_data_statistics
(
logid
:
str
,
bulk_id_path
:
str
=
Depends
(
bulk_id_path_parameter
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment