-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: serve summary of uploads on /uploads
This will eventually be used to serve a "Recent Uploads" section on the analysis server, and potentially a "My Uploads" section. Change-Id: I532fc79310d6f98ff12c80a628606845b40ceb60 Reviewed-on: https://go-review.googlesource.com/36012 Reviewed-by: Russ Cox <[email protected]>
- Loading branch information
1 parent
fd150b4
commit f5c4ca9
Showing
6 changed files
with
384 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,14 +28,28 @@ <h3>POST /upload</h3> | |
|
||
<p>As a convenience for testing, GET on /upload will render an HTML form that can be used for initiating an upload.</p> | ||
|
||
<h3>GET https://perfdata.golang.org/search?q=$search</h3> | ||
<p>A GET request to this URL will return a text file with synthesized benchmark results matching the search. The search string contains space-separated "key:value" pairs which limits the results to only records containing those exact fields. Every "key:value" pair is ANDed together, and each value must be matched exactly, with no regexes or substring matches supported. Range queries will be supported for prespecified date fields. Example searches:</p> | ||
<h3>GET /search?q=$search</h3> | ||
<p>A GET request to this URL will return a text file with synthesized benchmark results matching the search. The search string contains space-separated "key:value" pairs which limits the results to only records containing those exact fields. Every "key:value" pair is ANDed together, and each value must be matched exactly, with no regexes or substring matches supported. The operators ">" and "<" may be used instead of ":" to perform a range query. Example searches:</p> | ||
|
||
<ul> | ||
<li>by:rsc pkg:compress/flate commit:1234</li> | ||
<li>upload-part:4567</li> | ||
<li>upload:123</li> | ||
<li>commit-time>2016-12-01</li> | ||
</ul> | ||
|
||
<h3>GET /uploads?q=$search&extra_label=$label&limit=$limit</h3> | ||
<p>A GET request to this URL returns a list of the most recent <code>$limit</code> uploads that match the search string. If the <code>q</code> parameter is omitted, all uploads will be returned. If the <code>limit</code> parameter is omitted, a server-specified limit is used. If the <code>extra_label</code> parameter is supplied, an arbitrary value for that label will be chosen from the upload's records. (Therefore, this is most useful for labels that do not vary across the upload, such as "by" or "upload-time".)</p> | ||
<p>The result of this query is streaming JSON (readable using <a href="https://godoc.org/encoding/json#NewDecoder">>json.NewDecoder</a>), with one JSON entity per upload:</p> | ||
<pre> | ||
{ | ||
"Count": 10, | ||
"UploadID": "arbitrary-string", | ||
"LabelValues": { | ||
"by": "[email protected]", | ||
"upload-time": "2006-01-02T15:04:05Z", | ||
} | ||
} | ||
</pre> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.