Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add test plan

...

{

  "type" : "object",

  "id" : "urn:jsonschema:org:apache:flink:runtime:rest:messages:SubtasksTimesInfo",

  "properties" : {

    "id" : {

      "type" : "string"

    },

    "name" : {

      "type" : "string"

    },

    "now" : {

      "type" : "integer"

    },

    "subtasks" : {

      "type" : "array",

      "items" : {

        "type" : "object",

        "id" : "urn:jsonschema:org:apache:flink:runtime:rest:messages:SubtasksTimesInfo:SubtaskTimeInfo",

        "properties" : {

          "subtask" : {

            "type" : "integer"

          },

          "host" : {

            "type" : "string"

          },

          "duration" : {

            "type" : "integer"

          },

          "timestamps" : {

            "type" : "object",

            "additionalProperties" : {

              "type" : "integer"

            }

          },

          "attempt-num": {

            "type" : "integer"

          },

          "attempts-time-info": {

            "type": "array",

            "items" : {

              "type" : "object",

              "id" : "urn:jsonschema:org:apache:flink:runtime:rest:messages:SubtaskAttemptTimeInfo",

              "properties" : {

                "subtask" : {

                  "type" : "integer"

                },

                "host" : {

                  "type" : "string"

                },

                "duration" : {

                  "type" : "integer"

                },

                "timestamps" : {

                  "type" : "object",

                  "additionalProperties" : {

                    "type" : "integer"

                  }

                },

                "attempt-num": {

                  "type" : "integer"

                },

              }

            }

          } 

        }

      }

    }

  }

}

Test Plan

Everything can be tested with unit tests.