context:
  id: petstore-sample-tenant1
  sla: 1.0
  type: instance
  api: ./petstore-service.yml
  provider: ISAGroup
  consumer: tenant1
  validity:
    effectiveDate: 2015-05-16T09:00:54Z
    expirationDate: 2016-05-16T09:00:54Z
infrastructure:
  supervisor: http://supervisor.sla4oai.governify.io/v1/
  monitor: http://monitor.sla4oai.governify.io/v1/
metrics:
  animalTypes:
    type: integer
    format: int64
    description: Number of different animal types.
    resolution: check
  resourceInstances:
    type: integer
    format: int64
    description: Number of pet resources
    resolution: consumption
  requests:
    $ref: ./metrics.yml#requests
  responseTimeMs:
    $ref: ./metrics.yml#responseTimeMs
pricing:
  cost: 50
  currency: EUR
  billing: monthly
  plan: pro
availability: R/00:00:00Z/23:59:59Z
configuration:
  filteringType: multipleTags
  xmlFormat: 'true'
quotas:
  /pets:
    get:
      requests:
        - max: 20
          period: minutely
          scope: account
        - max: 100
          period: hourly
          scope: tenant
    post:
      requests:
        - max: 100
          period: minutely
      resourceInstances:
        - max: 500
      animalTypes:
        - max: 5
rates:
  /pets/{id}:
    get:
      requests:
        - max: 3
          period: secondly
guarantees:
  global:
    global:
      - objective: responseTimeMs <= 250
        period: daily
        window: dynamic
