Skip to content
Snippets Groups Projects
Commit 092ed55b authored by David Trattnig's avatar David Trattnig
Browse files

Extended health info.

parent 2da89d3f
No related branches found
No related tags found
No related merge requests found
...@@ -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
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment