5.2.4. 制限の設定
以下の手順により、メトリクスに 1 日あたり 10 ヒットという制限を設定します。
手順
Catalog > Installed Operators の順にクリックします。
- Installed Operators のリストで、3scale Operator をクリックします。
- Limit タブをクリックします。
- Create Limit をクリックします。
サンプルのコンテンツを消去して以下の YAML 定義をエディターに追加し、続いて Create をクリックします。
apiVersion: capabilities.3scale.net/v1alpha1 kind: Limit metadata: labels: api: api01 name: plan01-metric01-day-10 spec: description: Limit for metric01 in plan01 maxValue: 10 metricRef: name: metric01 period: day