Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71392

Track usage of JSON Schema for validation

    • Query Execution
    • Fully Compatible
    • v6.0, v5.0, v4.4
    • QE 2023-02-06

      Add additional counters in serverStatus().metrics.commands for collMod and create.

      Something like:

      {
      create: { 
      failed: Long("0"), 
      validator: { total: Long("0"), failed: Long("0"), jsonSchema: Long("0")}, 
      total: Long("23") 
      },
      collMod: { 
      failed: Long("0"), 
      validator: { total: Long("0"), failed: Long("0"), jsonSchema: Long("0")}, 
      total: Long("0") 
      }
      ...
      }
      

      Increment count for 'validator.total' if non-empty 'validator' object was passed as option to the command. Increment 'validator.jsonSchema' if $jsonSchema was used anywhere within 'validator' object. 

            Assignee:
            gil.alon@mongodb.com Gil Alon
            Reporter:
            kateryna.kamenieva@mongodb.com Katya Kamenieva
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: