Commit fdfca6e2 authored by Michel Roy's avatar Michel Roy Committed by Kevin Di Lallo
Browse files

metrics engine swagger update

parent c7abe970
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -41,18 +41,21 @@ paths:
        required: false
        type: "string"
        x-exportParamName: "Dest"
        x-optionalDataType: "String"
      - name: "dataType"
        in: "query"
        description: "Log Message Type"
        required: false
        type: "string"
        x-exportParamName: "DataType"
        x-optionalDataType: "String"
      - name: "src"
        in: "query"
        description: "Pod that originated the metrics logged in the message"
        required: false
        type: "string"
        x-exportParamName: "Src"
        x-optionalDataType: "String"
      - name: "starTime"
        in: "query"
        description: "Starting timestamp of time range"
@@ -71,8 +74,6 @@ paths:
        200:
          description: "Successful response to a query regarding metrics based on\
            \ search criteria"
          schema:
            $ref: "#/definitions/LogResponseList"
          examples:
            application/json:
              logResponseList:
@@ -85,6 +86,8 @@ paths:
                  dataType: "latency"
                  src: "pod1"
                  timestamp: "2019-07-09T13:47:04.379+0000"
          schema:
            $ref: "#/definitions/LogResponseList"
        404:
          description: "Not found"
        500:
@@ -128,6 +131,7 @@ definitions:
      logResponseList:
        $ref: "#/definitions/LogResponseList"
  LogResponse_data:
    type: "object"
    properties:
      rx:
        type: "integer"
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)

- API version: 1.0.0
- Build date: 2019-11-01T08:58:47.141-04:00
- Build date: 2019-11-07T07:57:44.623-05:00


### Running the server
+2 −1
Original line number Diff line number Diff line
@@ -14,5 +14,6 @@ import (
)

func MetricsGet(w http.ResponseWriter, r *http.Request) {
	metricsGet(w, r)
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	w.WriteHeader(http.StatusOK)
}
Loading