class RetryParameters(validation.Validated):
  """Retry parameters for a single cron job."""
  ATTRIBUTES = {
      JOB_RETRY_LIMIT: validation.Optional(
          validation.Range(0, None, range_type=int)),
      JOB_AGE_LIMIT: validation.Optional(validation.TimeValue()),
      MIN_BACKOFF_SECONDS: validation.Optional(
          validation.Range(0.0, None, range_type=float)),
      MAX_BACKOFF_SECONDS: validation.Optional(
          validation.Range(0.0, None, range_type=float)),
      MAX_DOUBLINGS: validation.Optional(
          validation.Range(0, None, range_type=int)),
  }
Beispiel #2
0
class Request(validation.Validated):
    """A Request describes a single http request within a deployment attempt."""
    ATTRIBUTES = {
        PATH: validation.TYPE_STR,
        RESPONSE_CODE: validation.Range(100, 599),
        START_TIME_USEC: validation.TYPE_LONG,
        END_TIME_USEC: validation.TYPE_LONG,
        REQUEST_SIZE_BYTES: validation.TYPE_LONG,
    }