#
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
#
# DataRobot, Inc.
#
# This is proprietary source code of DataRobot, Inc. and its
# affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
"""
Autogenerated DataRobot python client file.  Please don't modify.
"""

import trafaret as t
from datarobot.models.api_object import APIObject

class HumilityStatsRule(APIObject):
    """
    Attributes
    ----------
    rule_id:str
         Id of the humility rule.
    rule_name:str
         Name of the rule.
    value:int
         Number of times the rule was triggered.
    """
    _converter = t.Dict(
        {
            t.Key("rule_id"):  t.String(),
            t.Key("rule_name"):  t.String(),
            t.Key("value"):  t.Int(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        rule_id,
        rule_name,
        value,
    ):
        self.rule_id = rule_id
        self.rule_name = rule_name
        self.value = value

    def __repr__(self):
        return (
            "HumilityStatsRule("
            "rule_id={0.rule_id}, "
            "rule_name={0.rule_name}, "
            "value={0.value}, "
        ).format(self)
