<?xml version="1.0" encoding="UTF-8"?>
<con:resource name="/clusters/{clusterId}/log" path="/clusters/{clusterId}/log" id="2d4149fc-ee49-49fa-8f16-7bbd79099a26" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="2d4149fc-ee49-49fa-8f16-7bbd79099a26fileName">%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="2c12c521-5091-45ad-a237-9743623a2608" method="GET">
    <con:description>search cluster log
search cluster log</con:description>
    <con:settings/>
    <con:parameters>
      <con:parameter>
        <con:name>endTime</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <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: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="de164053-ff2f-45b6-8e1a-2cf97df8194c" mediaType="application/json">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4116</con:endpoint>
      <con:request/>
      <con:credentials>
        <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
        <con:authType>No Authorization</con:authType>
      </con:credentials>
      <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
      <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:environmentSpec>
        <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
          <con:authProfile>Inherit From Parent</con:authProfile>
        </con:entry>
        <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
          <con:authProfile>Inherit From Parent</con:authProfile>
        </con:entry>
      </con:environmentSpec>
    </con:request>
    <con:environmentSpec>
      <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
        <con:authProfile>Inherit From Parent</con:authProfile>
      </con:entry>
      <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
        <con:authProfile>Inherit From Parent</con:authProfile>
      </con:entry>
    </con:environmentSpec>
  </con:method>
  <con:environmentSpec>
    <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
      <con:authProfile>Inherit From Parent</con:authProfile>
    </con:entry>
    <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
      <con:authProfile>Inherit From Parent</con:authProfile>
    </con:entry>
  </con:environmentSpec>
</con:resource>
