OLD | NEW |
---|---|
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "experimental.record", | 3 "namespace": "experimental.record", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "SessionDetails", | 6 "id": "SessionDetails", |
7 "type": "object", | 7 "type": "object", |
8 "description": "", | 8 "description": "", |
9 "properties": { | 9 "properties": { |
10 "extensionPath": {"type": "string", "optional": true, "description": " A path to an extension to run in the session. Should be an unpacked extension."} | 10 "extensionPath": { |
11 } | 11 "type": "string", |
12 }, | 12 "optional": true, |
13 { | 13 "description": |
14 "id": "ReplayURLsResult", | 14 "Path to an unpacked extension to run in the session." |
Jeffrey Yasskin
2012/08/09 19:27:04
By path, you mean something like "/home/username/f
clintstaley
2012/08/10 00:33:13
Yes, and no, respectively. Or at least, no becaus
| |
15 "type": "object", | 15 } |
16 "description": "", | |
17 "properties": { | |
18 "runTime": {"type": "integer", "description": "Time in milliseconds to complete all runs."}, | |
19 "stats": {"type": "string", "description": "Full multiline dump of out put stats."}, | |
20 "errors": {"type": "array", "items": {"type": "string"}, "description" : "List of errors during replay."} | |
21 } | 16 } |
22 } | 17 } |
23 ], | 18 ], |
24 "functions": [ | 19 "functions": [ |
25 { | 20 { |
26 "name": "captureURLs", | 21 "name": "captureURLs", |
27 "description": "", | 22 "description": "", |
28 "type": "function", | 23 "type": "function", |
29 "parameters": [ | 24 "parameters": [ |
30 { | 25 { |
26 "type": "string", | |
27 "description": "Unique name of the capture.", | |
Jeffrey Yasskin
2012/08/09 19:27:04
How should extensions allocate these names? What h
clintstaley
2012/08/10 00:33:13
These are capture names, and their uniqueness will
Jeffrey Yasskin
2012/08/15 01:03:59
What do you mean by "enforced"? That is, what's th
Jeffrey Yasskin
2012/08/16 18:31:51
Ping. Remember to check for comment replies on mor
clintstaley
2012/08/17 04:12:24
Apologies for that. I've been looking at the CL's
Jeffrey Yasskin
2012/08/17 19:32:14
SGTM.
| |
28 "name": "captureName" | |
29 }, | |
30 { | |
31 "type": "array", | 31 "type": "array", |
32 "items": {"type": "string"}, | 32 "items": {"type": "string"}, |
33 "description": "URL list to visit during capture.", | |
33 "name": "urls" | 34 "name": "urls" |
34 }, | 35 }, |
35 { | 36 { |
36 "type": "string", | |
37 "name": "cacheDirectoryPath" | |
38 }, | |
39 { | |
40 "name": "callback", | 37 "name": "callback", |
41 "type": "function", | 38 "type": "function", |
42 "description": "Called when capture has completed.", | 39 "description": "Called when capture has completed.", |
43 "optional": true, | 40 "optional": true, |
44 "parameters": [ | 41 "parameters": [ |
45 { | 42 { |
46 "type": "array", | 43 "type": "array", |
47 "items": {"type": "string"}, | 44 "items": {"type": "string"}, |
48 "name": "errors" | 45 "name": "errors" |
46 }, | |
47 { | |
48 "type": "string", | |
49 "name": "cacheDirectory", | |
50 "description": "Full path to cache directory used for capture" | |
Jeffrey Yasskin
2012/08/09 19:27:04
Is there a security risk here? What if the directo
clintstaley
2012/08/10 00:33:13
Hmm. Your comment prompts me to think a little mo
| |
49 } | 51 } |
50 ] | 52 ] |
51 } | 53 } |
52 ] | 54 ] |
53 }, | 55 }, |
54 { | 56 { |
55 "name": "replayURLs", | 57 "name": "replayURLs", |
56 "description": "", | 58 "description": "", |
57 "type": "function", | 59 "type": "function", |
58 "parameters": [ | 60 "parameters": [ |
59 { | 61 { |
60 "type": "array", | |
61 "items": {"type": "string"}, | |
62 "name": "urls" | |
63 }, | |
64 { | |
65 "type": "string", | 62 "type": "string", |
66 "name": "captureDirectoryPath" | 63 "name": "captureName", |
64 "description": "Unique name of capture. Use to determine cache." | |
Jeffrey Yasskin
2012/08/09 19:27:04
How is it used to determine the cache? Presumably
clintstaley
2012/08/10 00:33:13
Such an approach was considered (returning a zip o
Jeffrey Yasskin
2012/08/15 01:03:59
Can the extension get at the storage directory usi
clintstaley
2012/08/17 04:12:24
Right, which makes the other stuff moot. I guess
| |
67 }, | 65 }, |
68 { | 66 { |
69 "type": "integer", | 67 "type": "integer", |
70 "name": "repeatCount", | 68 "name": "repeatCount", |
71 "minimum": 0, | 69 "minimum": 0, |
72 "maximum": 100 | 70 "maximum": 100 |
73 }, | 71 }, |
74 { | 72 { |
75 "$ref": "SessionDetails", | 73 "$ref": "SessionDetails", |
76 "name": "details", | 74 "name": "details", |
77 "optional": true | 75 "optional": true |
78 }, | 76 }, |
79 { | 77 { |
80 "name": "callback", | 78 "name": "callback", |
81 "type": "function", | 79 "type": "function", |
82 "description": "Called when playback has completed.", | 80 "description": "Called when playback has completed.", |
83 "parameters": [{"$ref": "ReplayURLsResult", "name": "result"}] | 81 "parameters": [ |
82 { | |
83 "type": "integer", | |
84 "name": "runTime", | |
85 "description": "Time in milliseconds to complete all runs." | |
Jeffrey Yasskin
2012/08/09 19:27:04
I saw there's a new performance-measuring API that
clintstaley
2012/08/10 00:33:13
Given the size of the times we're getting, not sur
Jeffrey Yasskin
2012/08/15 01:03:59
It almost certainly won't be needed for the next c
clintstaley
2012/08/17 04:12:24
Done.
| |
86 }, | |
87 { | |
88 "type": "string", | |
89 "name": "stats", | |
90 "description": "Full multiline dump of output stats." | |
Jeffrey Yasskin
2012/08/09 19:27:04
In what format?
clintstaley
2012/08/17 04:12:24
Here again, is something that will be refined in l
Jeffrey Yasskin
2012/08/17 19:32:14
That's fine. Having a precise format all along wil
clintstaley
2012/08/20 23:17:06
I wouldn't bet against you. That's almost certain
| |
91 }, | |
92 { | |
93 "type": "array", | |
94 "name": "errors", | |
95 "items": {"type": "string"}, | |
96 "description": "List of errors during replay." | |
Jeffrey Yasskin
2012/08/09 19:27:04
What do errors look like? What kinds of errors sho
clintstaley
2012/08/10 00:33:13
I can show you some examples. But I think they'd
Jeffrey Yasskin
2012/08/15 01:03:59
Yes, I think so. Remember that this is all program
clintstaley
2012/08/17 04:12:24
Especially once the capture name is removed, there
| |
97 } | |
98 ] | |
84 } | 99 } |
85 ] | 100 ] |
86 } | 101 } |
87 ] | 102 ] |
88 } | 103 } |
89 ] | 104 ] |
OLD | NEW |