Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine-api
Commits
092ed55b
Commit
092ed55b
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Extended health info.
parent
2da89d3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/engine.yaml
+15
-2
15 additions, 2 deletions
api/engine.yaml
src/models/health_info.py
+57
-1
57 additions, 1 deletion
src/models/health_info.py
with
72 additions
and
3 deletions
api/engine.yaml
+
15
−
2
View file @
092ed55b
...
@@ -362,6 +362,19 @@ components:
...
@@ -362,6 +362,19 @@ components:
engine_host
:
engine1.local
engine_host
:
engine1.local
log_time
:
2020-08-29T09:12:33.001Z
log_time
:
2020-08-29T09:12:33.001Z
HealthInfo
:
HealthInfo
:
type
:
string
required
:
example
:
'
{}'
-
details
-
log_time
type
:
object
properties
:
log_time
:
type
:
string
format
:
date-time
example
:
2020-08-29T09:12:33.001Z
details
:
type
:
string
example
:
Stringified JSON Object
example
:
details
:
Stringified JSON Object
log_time
:
2020-08-29T09:12:33.001Z
This diff is collapsed.
Click to expand it.
src/models/health_info.py
+
57
−
1
View file @
092ed55b
...
@@ -14,15 +14,25 @@ class HealthInfo(Model):
...
@@ -14,15 +14,25 @@ class HealthInfo(Model):
Do not edit the class manually.
Do not edit the class manually.
"""
"""
def
__init__
(
self
):
# noqa: E501
def
__init__
(
self
,
log_time
=
None
,
details
=
None
):
# noqa: E501
"""
HealthInfo - a model defined in Swagger
"""
HealthInfo - a model defined in Swagger
:param log_time: The log_time of this HealthInfo. # noqa: E501
:type log_time: datetime
:param details: The details of this HealthInfo. # noqa: E501
:type details: str
"""
"""
self
.
swagger_types
=
{
self
.
swagger_types
=
{
'
log_time
'
:
datetime
,
'
details
'
:
str
}
}
self
.
attribute_map
=
{
self
.
attribute_map
=
{
'
log_time
'
:
'
log_time
'
,
'
details
'
:
'
details
'
}
}
self
.
_log_time
=
log_time
self
.
_details
=
details
@classmethod
@classmethod
def
from_dict
(
cls
,
dikt
):
def
from_dict
(
cls
,
dikt
):
...
@@ -34,3 +44,49 @@ class HealthInfo(Model):
...
@@ -34,3 +44,49 @@ class HealthInfo(Model):
:rtype: HealthInfo
:rtype: HealthInfo
"""
"""
return
util
.
deserialize_model
(
dikt
,
cls
)
return
util
.
deserialize_model
(
dikt
,
cls
)
@property
def
log_time
(
self
):
"""
Gets the log_time of this HealthInfo.
:return: The log_time of this HealthInfo.
:rtype: datetime
"""
return
self
.
_log_time
@log_time.setter
def
log_time
(
self
,
log_time
):
"""
Sets the log_time of this HealthInfo.
:param log_time: The log_time of this HealthInfo.
:type log_time: datetime
"""
if
log_time
is
None
:
raise
ValueError
(
"
Invalid value for `log_time`, must not be `None`
"
)
# noqa: E501
self
.
_log_time
=
log_time
@property
def
details
(
self
):
"""
Gets the details of this HealthInfo.
:return: The details of this HealthInfo.
:rtype: str
"""
return
self
.
_details
@details.setter
def
details
(
self
,
details
):
"""
Sets the details of this HealthInfo.
:param details: The details of this HealthInfo.
:type details: str
"""
if
details
is
None
:
raise
ValueError
(
"
Invalid value for `details`, must not be `None`
"
)
# noqa: E501
self
.
_details
=
details
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment