U wiL!@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@s>eZdZdZddddddddddddddddddddd d Zd d d ddddddddddddddddddd Zd@d"d#Zed$d%Zej d&d%Zed'd(Z e j d)d(Z ed*d+Z e j d,d+Z ed-d.Z e j d/d.Z ed0d1Z e j d2d1Z ed3d4Zej d5d4Zd6d7Zd8d9Zd:d;Zdd?Zd!S)AThresholdCheckzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzlist[Threshold]z list[object]datetimeZDashboardQueryZTaskStatusTypez list[Label]ZCheckBaseLinks)type thresholdseveryoffsettagsstatus_message_templateidnameorg_idtask_idowner_id created_at updated_atquerystatus descriptionlatest_completedlast_run_statuslast_run_errorlabelslinksrrrr r ZstatusMessageTemplater r ZorgIDZtaskIDZownerIDZ createdAtZ updatedAtrrrZlatestCompletedZ lastRunStatusZ lastRunErrorrr thresholdNcCstj|||| | | | | ||||||||dd|_d|_d|_d|_d|_d|_d|_||_ |dk rh||_ |dk rv||_ |dk r||_ |dk r||_ |dk r||_dS)z,ThresholdCheck - a model defined in OpenAPI.)r r rrrrrrrrrrrrrN)r__init___type _thresholds_every_offset_tags_status_message_templateZ discriminatorrrrr r r )selfrrrr r r r r rrrrrrrrrrrrrr$W/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/threshold_check.pyrRs&*zThresholdCheck.__init__cCs|jS)ztGet the type of this ThresholdCheck. :return: The type of this ThresholdCheck. :rtype: str )rr#r$r$r%rjszThresholdCheck.typecCs|dkrtd||_dS)zwSet the type of this ThresholdCheck. :param type: The type of this ThresholdCheck. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr)r#rr$r$r%rsscCs|jS)zGet the thresholds of this ThresholdCheck. :return: The thresholds of this ThresholdCheck. :rtype: list[Threshold] rr&r$r$r%r~szThresholdCheck.thresholdscCs ||_dS)zSet the thresholds of this ThresholdCheck. :param thresholds: The thresholds of this ThresholdCheck. :type: list[Threshold] Nr()r#rr$r$r%rscCs|jS)zGet the every of this ThresholdCheck. Check repetition interval. :return: The every of this ThresholdCheck. :rtype: str rr&r$r$r%rs zThresholdCheck.everycCs ||_dS)zSet the every of this ThresholdCheck. Check repetition interval. :param every: The every of this ThresholdCheck. :type: str Nr))r#rr$r$r%rs cCs|jS)zGet the offset of this ThresholdCheck. Duration to delay after the schedule, before executing check. :return: The offset of this ThresholdCheck. :rtype: str r r&r$r$r%r s zThresholdCheck.offsetcCs ||_dS)zSet the offset of this ThresholdCheck. Duration to delay after the schedule, before executing check. :param offset: The offset of this ThresholdCheck. :type: str Nr*)r#r r$r$r%r s cCs|jS)zGet the tags of this ThresholdCheck. List of tags to write to each status. :return: The tags of this ThresholdCheck. :rtype: list[object] r!r&r$r$r%r s zThresholdCheck.tagscCs ||_dS)zSet the tags of this ThresholdCheck. List of tags to write to each status. :param tags: The tags of this ThresholdCheck. :type: list[object] Nr+)r#r r$r$r%r s cCs|jS)zGet the status_message_template of this ThresholdCheck. The template used to generate and write a status message. :return: The status_message_template of this ThresholdCheck. :rtype: str r"r&r$r$r%r s z&ThresholdCheck.status_message_templatecCs ||_dS)zSet the status_message_template of this ThresholdCheck. The template used to generate and write a status message. :param status_message_template: The status_message_template of this ThresholdCheck. :type: str Nr,)r#r r$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_dicthasattrr-)xr$r$r%z(ThresholdCheck.to_dict..r-cSs&t|ddr"|d|dfS|S)Nr-rr.)itemr$r$r%r1s ) openapi_typesitemsgetattr isinstancelistmapr/r-dict)r#resultattr_valuer$r$r%r-s"       zThresholdCheck.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr-r&r$r$r%to_strszThresholdCheck.to_strcCs|S)zFor `print` and `pprint`.)rBr&r$r$r%__repr__szThresholdCheck.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r8r__dict__r#otherr$r$r%__eq__s zThresholdCheck.__eq__cCs ||k S)z*Return true if both objects are not equal.r$rEr$r$r%__ne__szThresholdCheck.__ne__)rNNNNNNNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__r5Z attribute_maprpropertyrsetterrrr r r r-rBrCrGrHr$r$r$r%rs             r)rLr@reZ*influxdb_client.domain.check_discriminatorrrr$r$r$r%s