U vik*@s4dZddlZddlZddlmZGdddeZdS)a InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech N)CheckDiscriminatorc@seZdZdZddddddddddddddddddddddd d d Zd d ddddddddddddddddddd d!d"d#d ZdMd&d'Zed(d)Zej d*d)Zed+d,Z e j d-d,Z ed.d/Z e j d0d/Z ed1d2Z e j d3d2Z ed4d5Z e j d6d5Z ed7d8Zej d9d8Zed:d;Zej dZej d?d>Zed@dAZej dBdAZdCdDZdEdFZdGdHZdIdJZdKdLZd%S)N DeadmanCheckzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strboolZCheckStatusLevelz list[object]datetimeZDashboardQueryZTaskStatusTypez list[Label]ZCheckBaseLinks)type time_since stale_time report_zeroleveleveryoffsettagsstatus_message_templateidnameorg_idtask_idowner_id created_at updated_atquerystatus descriptionlatest_completedlast_run_statuslast_run_errorlabelslinksrZ timeSinceZ staleTimeZ reportZeror r r rZstatusMessageTemplaterrZorgIDZtaskIDZownerIDZ createdAtZ updatedAtrrrZlatestCompletedZ lastRunStatusZ lastRunErrorrrdeadmanNcCstj|| | | | |||||||||||dd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ ||_ |dk rz||_ |dk r||_|dk r||_|dk r||_|dk r||_|dk r||_|dk r||_| dk r| |_dS)z*DeadmanCheck - a model defined in OpenAPI.)rrrrrrrrrrrrrrrN)r__init___type _time_since _stale_time _report_zero_level_every_offset_tags_status_message_templateZ discriminatorrrr r r r r rr)selfrrr r r r r rrrrrrrrrrrrrrrrrr+U/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/deadman_check.pyr Xs8*zDeadmanCheck.__init__cCs|jS)zpGet the type of this DeadmanCheck. :return: The type of this DeadmanCheck. :rtype: str )r!r*r+r+r,ryszDeadmanCheck.typecCs|dkrtd||_dS)zsSet the type of this DeadmanCheck. :param type: The type of this DeadmanCheck. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr!)r*rr+r+r,rscCs|jS)zGet the time_since of this DeadmanCheck. String duration before deadman triggers. :return: The time_since of this DeadmanCheck. :rtype: str r"r-r+r+r,rs zDeadmanCheck.time_sincecCs ||_dS)zSet the time_since of this DeadmanCheck. String duration before deadman triggers. :param time_since: The time_since of this DeadmanCheck. :type: str Nr/)r*rr+r+r,rs cCs|jS)zGet the stale_time of this DeadmanCheck. String duration for time that a series is considered stale and should not trigger deadman. :return: The stale_time of this DeadmanCheck. :rtype: str r#r-r+r+r,r s zDeadmanCheck.stale_timecCs ||_dS)zSet the stale_time of this DeadmanCheck. String duration for time that a series is considered stale and should not trigger deadman. :param stale_time: The stale_time of this DeadmanCheck. :type: str Nr0)r*r r+r+r,r s cCs|jS)zGet the report_zero of this DeadmanCheck. If only zero values reported since time, trigger an alert :return: The report_zero of this DeadmanCheck. :rtype: bool r$r-r+r+r,r s zDeadmanCheck.report_zerocCs ||_dS)zSet the report_zero of this DeadmanCheck. If only zero values reported since time, trigger an alert :param report_zero: The report_zero of this DeadmanCheck. :type: bool Nr1)r*r r+r+r,r s cCs|jS)zGet the level of this DeadmanCheck. :return: The level of this DeadmanCheck. :rtype: CheckStatusLevel r%r-r+r+r,r szDeadmanCheck.levelcCs ||_dS)zSet the level of this DeadmanCheck. :param level: The level of this DeadmanCheck. :type: CheckStatusLevel Nr2)r*r r+r+r,r scCs|jS)zGet the every of this DeadmanCheck. Check repetition interval. :return: The every of this DeadmanCheck. :rtype: str r&r-r+r+r,r s zDeadmanCheck.everycCs ||_dS)zSet the every of this DeadmanCheck. Check repetition interval. :param every: The every of this DeadmanCheck. :type: str Nr3)r*r r+r+r,r s cCs|jS)zGet the offset of this DeadmanCheck. Duration to delay after the schedule, before executing check. :return: The offset of this DeadmanCheck. :rtype: str r'r-r+r+r,r s zDeadmanCheck.offsetcCs ||_dS)zSet the offset of this DeadmanCheck. Duration to delay after the schedule, before executing check. :param offset: The offset of this DeadmanCheck. :type: str Nr4)r*r r+r+r,r s cCs|jS)zGet the tags of this DeadmanCheck. List of tags to write to each status. :return: The tags of this DeadmanCheck. :rtype: list[object] r(r-r+r+r,r s zDeadmanCheck.tagscCs ||_dS)zSet the tags of this DeadmanCheck. List of tags to write to each status. :param tags: The tags of this DeadmanCheck. :type: list[object] Nr5)r*rr+r+r,rs cCs|jS)zGet the status_message_template of this DeadmanCheck. The template used to generate and write a status message. :return: The status_message_template of this DeadmanCheck. :rtype: str r)r-r+r+r,r#s z$DeadmanCheck.status_message_templatecCs ||_dS)zSet the status_message_template of this DeadmanCheck. The template used to generate and write a status message. :param status_message_template: The status_message_template of this DeadmanCheck. :type: str Nr6)r*rr+r+r,r.s cCsi}|jD]z\}}t||}t|trBttdd|||<qt|drZ|||<qt|trttdd|||<q|||<q|S)z&Return the model properties as a dict.cSst|dr|S|S)Nto_dicthasattrr7)xr+r+r,Az&DeadmanCheck.to_dict..r7cSs&t|ddr"|d|dfS|S)Nr7rr8)itemr+r+r,r;Hs ) openapi_typesitemsgetattr isinstancelistmapr9r7dict)r*resultattr_valuer+r+r,r79s"       zDeadmanCheck.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr7r-r+r+r,to_strQszDeadmanCheck.to_strcCs|S)zFor `print` and `pprint`.)rLr-r+r+r,__repr__UszDeadmanCheck.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rBr__dict__r*otherr+r+r,__eq__Ys zDeadmanCheck.__eq__cCs ||k S)z*Return true if both objects are not equal.r+rOr+r+r,__ne__`szDeadmanCheck.__ne__)rNNNNNNNNNNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__r?Z attribute_mapr propertyrsetterrr r r r r rrr7rLrMrQrRr+r+r+r,rs !                  r)rVrJreZ*influxdb_client.domain.check_discriminatorrrr+r+r+r,s