---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.2.5
  creationTimestamp: null
  name: systemrules.datasource.sentinel.io
spec:
  group: datasource.sentinel.io
  names:
    kind: SystemRules
    listKind: SystemRulesList
    plural: systemrules
    singular: systemrules
  scope: Namespaced
  validation:
    openAPIV3Schema:
      description: SystemRules is the Schema for the systemrules API
      properties:
        apiVersion:
          description: 'APIVersion defines the versioned schema of this representation
            of an object. Servers should convert recognized schemas to the latest
            internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
          type: string
        kind:
          description: 'Kind is a string value representing the REST resource this
            object represents. Servers may infer this from the endpoint the client
            submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
          type: string
        metadata:
          type: object
        spec:
          description: SystemRulesSpec defines the desired state of SystemRules
          properties:
            rules:
              items:
                properties:
                  id:
                    maxLength: 32
                    minLength: 0
                    type: string
                  metricType:
                    enum:
                      - Load
                      - AvgRT
                      - Concurrency
                      - InboundQPS
                      - CpuUsage
                    type: string
                  strategy:
                    enum:
                      - NoAdaptive
                      - BBR
                    type: string
                  triggerCount:
                    format: int64
                    minimum: 0
                    type: integer
                required:
                  - metricType
                  - strategy
                  - triggerCount
                type: object
              type: array
          type: object
        status:
          description: SystemRulesStatus defines the observed state of SystemRules
          type: object
      type: object
  version: v1alpha1
  versions:
    - name: v1alpha1
      served: true
      storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
