<?xml version="1.0" encoding="UTF-8"?>
<con:resource name="/clusters/{clusterId}/log" path="/clusters/{clusterId}/log" id="ba65a3aa-1e79-4460-b644-176a69f85f63" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="ba65a3aa-1e79-4460-b644-176a69f85f63fileName">%2Fclusters%2F%7BclusterId%7D%2Flog</con:setting>
  </con:settings>
  <con:parameters>
    <con:parameter required="true">
      <con:name>clusterId</con:name>
      <con:value/>
      <con:style>TEMPLATE</con:style>
      <con:default/>
      <con:description>clusterId</con:description>
    </con:parameter>
  </con:parameters>
  <con:method name="GET" id="14f0e848-40dd-4518-9a27-6fc5b1d245cc" method="GET">
    <con:description>query cluster log
query cluster log</con:description>
    <con:settings/>
    <con:parameters>
      <con:parameter>
        <con:name>endTime</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:dataType>integer</con:dataType>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>ip</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>level</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>message</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>module</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>page</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:dataType>integer</con:dataType>
        <con:default/>
        <con:description>Current page location</con:description>
      </con:parameter>
      <con:parameter>
        <con:name>pageSize</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:dataType>integer</con:dataType>
        <con:default/>
        <con:description>Number of this request</con:description>
      </con:parameter>
      <con:parameter>
        <con:name>startTime</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:dataType>integer</con:dataType>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
    </con:parameters>
    <con:representation type="RESPONSE">
      <con:mediaType>application/json</con:mediaType>
      <con:status>200</con:status>
      <con:params/>
      <con:sampleContent>{
  "controller.ResultWithPage" : {
    "code" : 0,
    "data" : { },
    "message" : "string",
    "page" : {
      "page" : 0,
      "pageSize" : 0,
      "total" : 0
    }
  },
  "data" : {
    "results" : [ {
      "clusterId" : "abc",
      "ext" : { },
      "id" : "zvadfwf",
      "index" : "tiem-tidb-cluster-2021.09.23",
      "ip" : "127.0.0.1",
      "level" : "warn",
      "message" : "tidb log",
      "module" : "tidb",
      "sourceLine" : "main.go:210",
      "timestamp" : "2021-09-23 14:23:10"
    } ],
    "took" : 10
  }
}</con:sampleContent>
    </con:representation>
    <con:representation type="RESPONSE">
      <con:mediaType>application/json</con:mediaType>
      <con:status>401</con:status>
      <con:params/>
      <con:sampleContent>{
  "code" : 0,
  "data" : { },
  "message" : "string"
}</con:sampleContent>
    </con:representation>
    <con:representation type="RESPONSE">
      <con:mediaType>application/json</con:mediaType>
      <con:status>500</con:status>
      <con:params/>
      <con:sampleContent>{
  "code" : 0,
  "data" : { },
  "message" : "string"
}</con:sampleContent>
    </con:representation>
    <con:representation type="REQUEST">
      <con:mediaType>application/json</con:mediaType>
      <con:params/>
    </con:representation>
    <con:request name="Request 1" id="39b0c73a-9738-40d5-8914-f4a8a2b2b8ee" mediaType="application/json">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4100</con:endpoint>
      <con:credentials>
        <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
        <con:authType>No Authorization</con:authType>
      </con:credentials>
      <con:parameters>
        <con:entry key="level" value=""/>
        <con:entry key="ip" value=""/>
        <con:entry key="module" value=""/>
        <con:entry key="pageSize" value=""/>
        <con:entry key="startTime" value=""/>
        <con:entry key="clusterId" value=""/>
        <con:entry key="endTime" value=""/>
        <con:entry key="page" value=""/>
        <con:entry key="message" value=""/>
      </con:parameters>
    </con:request>
  </con:method>
</con:resource>
