{
  "plugin": {
    "summary": {
      "description": "Diagnostic plugin for internal use.",
      "icon": "ImageQuality"
    },
    "parameters": {
      "schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "anyOf": [
          {
            "$ref": "#/definitions/MemoryTestContiguousParams"
          },
          {
            "$ref": "#/definitions/MemoryTestFragmentedParams"
          }
        ],
        "definitions": {
          "MemoryTestContiguousParams": {
            "properties": {
              "allocate": {
                "enum": [
                  "buffer",
                  "string"
                ],
                "type": "string"
              },
              "mode": {
                "enum": [
                  "memory_test_contiguous"
                ],
                "type": "string"
              }
            },
            "propertyOrder": [
              "allocate",
              "mode"
            ],
            "required": [
              "allocate",
              "mode"
            ],
            "type": "object"
          },
          "MemoryTestFragmentedParams": {
            "properties": {
              "mode": {
                "enum": [
                  "memory_test_fragmented"
                ],
                "type": "string"
              }
            },
            "propertyOrder": [
              "mode"
            ],
            "required": [
              "mode"
            ],
            "type": "object"
          }
        }
      },
      "ui": { }
    }
  },
  "templates": {
    "memory_test_fragmented": {
      "summary": {
        "name": "Memory test (fragmented)",
        "description": "OOMs after allocating many small objects.",
        "category": "diagnostics",
        "icon": "ImageQuality",
        "promoted": false
      },
      "transformation": {
        "description": "OOMs after allocating many small objects.",
        "scope": {
          "mime": ["*"],
          "tag": ["*"]
        },
        "slug": "memory_test_fragmented",
        "steps": [
          {
            "plugin": {
              "packageName": "upload-diagnostic-plugin",
              "packageVersion": "0.8.0"
            },
            "params": {
              "mode": "memory_test_fragmented"
            }
          }
        ]
      },
      "transformationVariables": {
        "schema": null,
        "ui": null
      }
    }
  }
}
