Skip to content

Commit

Permalink
Remove unsed katib-manager-rest (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougangliu authored and k8s-ci-robot committed Oct 14, 2019
1 parent 198a63a commit 9d7164a
Show file tree
Hide file tree
Showing 15 changed files with 118 additions and 445 deletions.
15 changes: 0 additions & 15 deletions cmd/manager-rest/v1alpha3/Dockerfile

This file was deleted.

43 changes: 0 additions & 43 deletions cmd/manager-rest/v1alpha3/proxy.go

This file was deleted.

26 changes: 0 additions & 26 deletions manifests/v1alpha3/manager-rest/deployment.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions manifests/v1alpha3/manager-rest/service.yaml

This file was deleted.

212 changes: 104 additions & 108 deletions pkg/apis/manager/v1alpha3/api.pb.go

Large diffs are not rendered by default.

20 changes: 3 additions & 17 deletions pkg/apis/manager/v1alpha3/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,17 @@ service Manager {
* Katib store every log of metrics.
* You can see accuracy curve or other metric logs on UI.
*/
rpc ReportObservationLog(ReportObservationLogRequest) returns (ReportObservationLogReply){
option (google.api.http) = {
post: "/api/Manager/ReportObservationLog"
body: "*"
};
};
rpc ReportObservationLog(ReportObservationLogRequest) returns (ReportObservationLogReply);

/**
* Get all log of Observations for a Trial.
*/
rpc GetObservationLog(GetObservationLogRequest) returns (GetObservationLogReply){
option (google.api.http) = {
post: "/api/Manager/GetObservationLog"
body: "*"
};
};
rpc GetObservationLog(GetObservationLogRequest) returns (GetObservationLogReply);

/**
* Delete all log of Observations for a Trial.
*/
rpc DeleteObservationLog(DeleteObservationLogRequest) returns (DeleteObservationLogReply){
option (google.api.http) = {
delete: "/api/Manager/DeleteObservationLog/{trial_name}"
};
};
rpc DeleteObservationLog(DeleteObservationLogRequest) returns (DeleteObservationLogReply);
}

service Suggestion {
Expand Down
110 changes: 1 addition & 109 deletions pkg/apis/manager/v1alpha3/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,87 +14,7 @@
"produces": [
"application/json"
],
"paths": {
"/api/Manager/DeleteObservationLog/{trial_name}": {
"delete": {
"summary": "*\nDelete all log of Observations for a Trial.",
"operationId": "DeleteObservationLog",
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/alpha3DeleteObservationLogReply"
}
}
},
"parameters": [
{
"name": "trial_name",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"Manager"
]
}
},
"/api/Manager/GetObservationLog": {
"post": {
"summary": "*\nGet all log of Observations for a Trial.",
"operationId": "GetObservationLog",
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/alpha3GetObservationLogReply"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/alpha3GetObservationLogRequest"
}
}
],
"tags": [
"Manager"
]
}
},
"/api/Manager/ReportObservationLog": {
"post": {
"summary": "* \nReport a log of Observations for a Trial.\nThe log consists of timestamp and value of metric.\nKatib store every log of metrics.\nYou can see accuracy curve or other metric logs on UI.",
"operationId": "ReportObservationLog",
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/alpha3ReportObservationLogReply"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/alpha3ReportObservationLogRequest"
}
}
],
"tags": [
"Manager"
]
}
}
},
"paths": {},
"definitions": {
"alpha3AlgorithmSetting": {
"type": "object",
Expand Down Expand Up @@ -138,23 +58,6 @@
}
}
},
"alpha3GetObservationLogRequest": {
"type": "object",
"properties": {
"trial_name": {
"type": "string"
},
"metric_name": {
"type": "string"
},
"start_time": {
"type": "string"
},
"end_time": {
"type": "string"
}
}
},
"alpha3GetSuggestionsReply": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -227,17 +130,6 @@
"alpha3ReportObservationLogReply": {
"type": "object"
},
"alpha3ReportObservationLogRequest": {
"type": "object",
"properties": {
"trial_name": {
"type": "string"
},
"observation_log": {
"$ref": "#/definitions/alpha3ObservationLog"
}
}
},
"alpha3ValidateAlgorithmSettingsReply": {
"type": "object",
"title": "*\nReturn INVALID_ARGUMENT Error if Algorithm Settings are not Valid"
Expand Down
48 changes: 0 additions & 48 deletions pkg/apis/manager/v1alpha3/gen-doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1569,54 +1569,6 @@ <h3 id="api.v1.alpha3.Manager">Manager</h3>
</table>




<h4>Methods with HTTP bindings</h4>
<table>
<thead>
<tr>
<td>Method Name</td>
<td>Method</td>
<td>Pattern</td>
<td>Body</td>
</tr>
</thead>
<tbody>



<tr>
<td>ReportObservationLog</td>
<td>POST</td>
<td>/api/Manager/ReportObservationLog</td>
<td>*</td>
</tr>




<tr>
<td>GetObservationLog</td>
<td>POST</td>
<td>/api/Manager/GetObservationLog</td>
<td>*</td>
</tr>




<tr>
<td>DeleteObservationLog</td>
<td>DELETE</td>
<td>/api/Manager/DeleteObservationLog/{trial_name}</td>
<td></td>
</tr>


</tbody>
</table>


<h3 id="api.v1.alpha3.Suggestion">Suggestion</h3>
<p></p>
<table class="enum-table">
Expand Down
Loading

0 comments on commit 9d7164a

Please sign in to comment.