class_docstr: This class defines methods to generate RestartStrategyConfigurations. These configurations are
  used to create RestartStrategies at runtime.
  
  The RestartStrategyConfigurations are used to decouple the core module from the runtime module.
class_docstr_tok: ["This","class","defines","methods","to","generate","RestartStrategyConfigurations",".","These","configurations","are","used","to","create","RestartStrategies","at","runtime",".","The","RestartStrategyConfigurations","are","used","to","decouple","the","core","module","from","the","runtime","module","."]
docstr: Generates a FailureRateRestartStrategyConfiguration.
  
  :param failure_rate: Maximum number of restarts in given interval ``failure_interval``
                       before failing a job.
  :param failure_interval: Time interval for failures, the input could be integer value
                           in milliseconds or datetime.timedelta object.
  :param delay_interval: Delay in-between restart attempts, the input could be integer value
                         in milliseconds or datetime.timedelta object.
docstr_tok: ["Generates","a","FailureRateRestartStrategyConfiguration",".",":","param","failure_rate",":","Maximum","number","of","restarts","in","given","interval","``","failure_interval","``","before","failing","a","job",".",":","param","failure_interval",":","Time","interval","for","failures",",","the","input","could","be","integer","value","in","milliseconds","or","datetime.timedelta","object",".",":","param","delay_interval",":","Delay","in-between","restart","attempts",",","the","input","could","be","integer","value","in","milliseconds","or","datetime.timedelta","object","."]
code: def failure_rate_restart(
      failure_rate: int, failure_interval: int, delay_interval: int
  ) -> "FailureRateRestartStrategyConfiguration":
      """
      Generates a FailureRateRestartStrategyConfiguration.
  
      :param failure_rate: Maximum number of restarts in given interval ``failure_interval``
                           before failing a job.
      :param failure_interval: Time interval for failures, the input could be integer value
                               in milliseconds or datetime.timedelta object.
      :param delay_interval: Delay in-between restart attempts, the input could be integer value
                             in milliseconds or datetime.timedelta object.
      """
      return RestartStrategies.FailureRateRestartStrategyConfiguration(
          failure_rate, failure_interval, delay_interval
      )
  
file_path: flink/flink-python/pyflink/common/restart_strategy.py
imports: from abc import ABCMeta
  from datetime import timedelta
  from typing import Optional
  from py4j.java_gateway import get_java_class
  from pyflink.java_gateway import get_gateway
  from pyflink.util.java_utils import to_j_flink_time, from_j_flink_time
label_desc: Use image node_id 5 for calling the RestartStrategies obj's underlying member method code with example usage: obj.failure_rate_restart(failure_rate, failure_interval, delay_interval) and returns: RestartStrategies