Changes between Version 13 and Version 14 of documentation/tools/monitoring/rest/collector
- Timestamp:
- 03/20/12 16:12:24 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/tools/monitoring/rest/collector
v13 v14 1 1 = Collector interface = 2 2 3 ==== std::string function_wrapper::group_list(std::vector<std::string> args)====3 ==== group_list ==== 4 4 5 5 Description: This call returns a list of HAMcast groups. The groups in this list are a merged set of groups gathered from all reachable HAMcast nodes. … … 9 9 Arguments : none 10 10 11 XML : 11 Query : 12 {{{ 13 POST /group_list HTTP/1.1 14 User-Agent: HAMcast Monitoring 15 Content-Length:0 16 Content-Type: text/plain; charset=utf-8 17 }}} 18 19 Response : 12 20 {{{ 13 <method> 14 /group_list 15 <\method> 21 HTTP/1.1 200 OK 22 Content-Length: 124 23 Content-Type: text/xml; charset=utf-8 24 25 <?xml version="1.0" encoding="utf-8"?> 26 <method>/group_list</method> 16 27 <groups> 17 <group> 18 group1 19 <\group> 20 <group> 21 group2 22 <\group> 23 <\groups> 24 }}} 25 26 ==== std::string function_wrapper::node_list(std::vector<std::string> args) ==== 28 <group>ip://239.0.0.2:1234</group> 29 </groups> 30 }}} 31 32 ==== node_list ==== 27 33 28 34 Description: Returns a list of daemon-id. The list contains the daemon-ids of all reachable HAMcast nodes. … … 31 37 32 38 Arguments : none 33 34 XML : 35 {{{ 36 <method> 37 /node_list 38 <\method> 39 40 Query : 41 {{{ 42 POST /node_list HTTP/1.1 43 User-Agent: HAMcast Monitoring 44 Content-Length:0 45 Content-Type: text/plain; charset=utf-8 46 }}} 47 48 Response : 49 {{{ 50 HTTP/1.1 200 OK 51 Content-Length: 402 52 Content-Type: text/xml; charset=utf-8 53 54 <?xml version="1.0" encoding="utf-8"?> 55 <method>/node_list</method> 39 56 <nodes> 40 <node> 41 daemon-id 42 <node> 43 <node> 44 daemon-id 45 <node> 46 <\nodes> 47 }}} 48 49 ==== std::string function_wrapper::group_data(std::vector<std::string> args) ==== 57 <node>129.13.214.10</node> 58 <node>129.13.214.210</node> 59 <node>129.187.143.20</node> 60 <node>130.75.73.66</node> 61 <node>130.83.244.170</node> 62 <node>131.246.112.2</node> 63 <node>131.246.112.31</node> 64 <node>132.187.230.65</node> 65 <node>84.46.89.78</node> 66 </nodes> 67 }}} 68 69 ==== group_data ==== 50 70 51 71 Description: Returns a list of daemon-id. The list contains the daemon-ids of all reachable HAMcast nodes that joined the given group. … … 55 75 Arguments : HAMcast group uri 56 76 57 XML : 58 {{{ 59 <method> 60 /group_data 61 </method> 77 Query : 78 {{{ 79 POST /group_data HTTP/1.1 80 User-Agent: HAMcast Monitoring 81 Content-Length:26 82 Content-Type: text/plain; charset=utf-8 83 84 arg0=ip://239.0.0.2:1234 85 }}} 86 87 Response : 88 {{{ 89 HTTP/1.1 200 OK 90 Content-Length: 419 91 Content-Type: text/xml; charset=utf-8 92 93 <?xml version="1.0" encoding="utf-8"?> 94 <method>/group_data</method> 62 95 <group> 63 <name> 64 group name 65 </name> 66 <member> 67 daemon-id 68 </member> 69 <member> 70 daemon-id 71 </member> 96 <name>ip://239.0.0.2:1234</name> 97 <member>129.13.214.10</member> 98 <member>129.13.214.210</member> 99 <member>129.187.143.20</member> 100 <member>130.75.73.66</member> 101 <member>130.83.244.170</member> 102 <member>131.246.112.2</member> 103 <member>131.246.112.31</member> 104 <member>132.187.230.65</member> 105 <member>84.46.89.78</member> 72 106 </group> 73 107 }}} 74 108 75 ==== std::string function_wrapper::node_data(std::vector<std::string> args)====109 ==== node_data ==== 76 110 77 111 Description: Returns detailed interface and group information about a node, interface and groups. … … 85 119 Arguments : daemon-id 86 120 87 XML : 88 {{{ 89 <name> 90 daemon-id 91 </name> 121 Query : 122 {{{ 123 POST /node_data HTTP/1.1 124 User-Agent: HAMcast Monitoring 125 Content-Length:20 126 Content-Type: text/plain; charset=utf-8 127 128 arg0=129.13.214.10 129 }}} 130 131 Response : 132 {{{ 133 HTTP/1.1 200 OK 134 Content-Length: 676 135 Content-Type: text/xml; charset=utf-8 136 137 <?xml version="1.0" encoding="utf-8"?> 138 <name>129.13.214.10</name> 139 <img>false</img> 92 140 <interfaces> 93 <interface> 94 <name> 95 IPv4 96 <name> 97 <technology> 98 native 99 </technology> 100 <id> 101 1 102 </id> 103 <address> 104 ip-address 105 </address> 106 <groups> 107 <group> 108 <name> 109 group1 110 </name> 111 <parent> 112 address 113 </parent> 114 <children> 115 <child> 116 address 117 </child> 118 <child> 119 address 120 </child> 121 </children> 122 </group> 123 </groups> 124 <interface> 141 <interface> 142 <name>scribe</name> 143 <tech>ALM</tech> 144 <id>1</id> 145 <addr>scribe://31001132311312033110130111220211220021133010133323303030310133321221122203113311</addr> 146 <groups> 147 <group> 148 <name>ip://239.0.0.2:1234</name> 149 <parent>scribe://00303033131001320112231003213203131012203111132203012230202101012110210313231210</parent> 150 <children> 151 <child>scribe://21002321012323310010133022332200330131312130003122221031210122310033231011211301</child> 152 </children> 153 </group> 154 </groups> 155 </interface> 125 156 </interfaces> 126 157 }}} 127 158 128 ==== std::string function_wrapper::group_tree(std::vector<std::string> args)====159 ==== group_tree ==== 129 160 130 161 Description: Returns a list of edges between nodes for a given group. The edges are directed from source to destination. 131 162 132 133 163 URL : /group_tree 134 164 135 165 Arguments : HAMcast group uri 136 137 XML : 138 {{{ 139 <method> 140 /group_tree 141 </method> 166 167 Query : 168 {{{ 169 POST /group_tree HTTP/1.1 170 User-Agent: HAMcast Monitoring 171 Content-Length:26 172 Content-Type: text/plain; charset=utf-8 173 174 arg0=ip://239.0.0.2:1234 175 }}} 176 177 Response : 178 {{{ 179 HTTP/1.1 200 OK 180 Content-Length: 913 181 Content-Type: text/xml; charset=utf-8 182 183 <?xml version="1.0" encoding="utf-8"?> 184 <method>/group_tree</method> 185 <name>ip://239.0.0.2:1234</name> 142 186 <edges> 143 <edge> 144 <from> 145 daemon-id 146 </from> 147 <to> 148 daemon-id 149 </to> 150 </edge> 151 <edge> 152 <from> 153 daemon-id 154 </from> 155 <to> 156 daemon-id 157 </to> 158 </edge> 187 <edge> 188 <from>129.13.214.10</from> 189 <to>131.246.112.31</to> 190 </edge> 191 <edge> 192 <from>130.75.73.66</from> 193 <to>131.246.112.31</to> 194 </edge> 195 <edge> 196 <from>130.75.73.66</from> 197 <to>84.46.89.71</to> 198 </edge> 199 <edge> 200 <from>130.75.73.66</from> 201 <to>129.13.214.10</to> 202 </edge> 203 <edge> 204 <from>130.83.244.170</from> 205 <to>130.75.73.66</to> 206 </edge> 207 <edge> 208 <from>130.83.244.170</from> 209 <to>129.13.214.210</to> 210 </edge> 211 <edge> 212 <from>130.83.244.170</from> 213 <to>132.187.230.65</to> 214 </edge> 215 <edge> 216 <from>130.83.244.170</from> 217 <to>129.187.143.20</to> 218 </edge> 219 <edge> 220 <from>130.83.244.170</from> 221 <to>129.13.214.10</to> 222 </edge> 223 <edge> 224 <from>130.83.244.170</from> 225 <to>131.246.112.2</to> 226 </edge> 159 227 </edges> 160 228 }}}