Daniel Nichter
|
2dbe188d5b
|
Add service, data_ts, and entry_ts to LogEntry resource. Add corresponding attribs to Logger, as well as queue_wait.
|
2013-05-28 20:00:59 -07:00 |
|
Daniel Nichter
|
20c3bd6c29
|
Destroy Logger object. Add LogEntry module/resource.
|
2013-05-20 13:49:51 -07:00 |
|
Daniel Nichter
|
983af3b158
|
Always save response object in PWS client before returning or dying.
|
2013-05-10 12:15:34 -07:00 |
|
Daniel Nichter
|
cb9cc2794f
|
Add Agent.actions. Make pqd warn if resume file does not exist. Print which services have been added, removed, and updated.
|
2013-05-10 10:12:40 -07:00 |
|
Daniel Nichter
|
89db22894e
|
Test get_services(). Need to fix/update other tests.
|
2013-04-19 14:49:01 -06:00 |
|
Daniel Nichter
|
7cee5a480e
|
Add ts to Service resource. Rewrite how pt-agent handles applying services: use new meta attrib to find real service, then look for start-service and stop-service; schedule anything with a run_schedule or spool_schedule. Remove Percona/WebAPI/Util.
|
2013-04-18 16:47:15 -06:00 |
|
Daniel Nichter
|
d63bc8c9d1
|
Make Agent.username and .hostname optional so they can be loaded from a minimal agent file and updated at runtime.
|
2013-04-10 17:03:27 -06:00 |
|
Daniel Nichter
|
230d8e0394
|
Fix Agent.username default.
|
2013-04-10 16:57:43 -06:00 |
|
Daniel Nichter
|
7bfc694be4
|
Change Agent.user to Agent.username and make it and hostname rw.
|
2013-04-10 16:57:06 -06:00 |
|
Daniel Nichter
|
aecdca7420
|
Add Agent.user attribute.
|
2013-04-10 15:52:18 -06:00 |
|
Daniel Nichter
|
79c8705f02
|
Update default entry link. Handle catch/exit on signal better, faster.
|
2013-04-09 17:32:43 -06:00 |
|
Daniel Nichter
|
a9e06286af
|
Handle run-once services. Stub implementation of --stop.
|
2013-04-08 16:17:08 -06:00 |
|
Daniel Nichter
|
afa6533f43
|
Fix and test resource_diff().
|
2013-03-27 11:12:38 -06:00 |
|
Daniel Nichter
|
9e1d935e19
|
Add Service.run_once_on_start. Refactor get config and get services blocks.
|
2013-03-22 12:08:45 -06:00 |
|
Daniel Nichter
|
0e9e897791
|
Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data.
|
2013-03-21 07:52:21 -06:00 |
|
Daniel Nichter
|
846daa6c31
|
Fix/update/test sending data. Rename query-monitor to query-server in tests.
|
2013-03-19 16:35:37 -06:00 |
|
Daniel Nichter
|
d28faa9b25
|
Don't require Task program or output attrib values.
|
2013-03-19 11:31:22 -06:00 |
|
Daniel Nichter
|
5e5943bd36
|
Change Run to Task. Add Percona/WebAPI/Exception/Resource.pm.
|
2013-03-01 09:47:49 -07:00 |
|
Daniel Nichter
|
0be24a3b8d
|
Misc work-in-progress updates to pt-agent, Agent and Config resources. Config will change again. Make Client::put() return Location header like POST.
|
2013-02-13 13:45:52 -07:00 |
|
Daniel Nichter
|
3b64102f17
|
Normalize newlines on end of JSON text, to handle whatever is wrong with JSON on CentOS 6.
|
2013-01-31 17:48:25 -07:00 |
|
Daniel Nichter
|
3f4a02e1fb
|
Update pt-agent to implement new specs.
|
2013-01-31 17:00:38 -07:00 |
|
Daniel Nichter
|
24e505a43d
|
Simplify and test Percona::WebAPI::Client.pm according to new web API specs.
|
2013-01-31 12:58:09 -07:00 |
|
Daniel Nichter
|
f999686610
|
Fix Lmo::Types in pt-agent. Change Run->queries to query, Maybe[Str].
|
2013-01-17 18:21:02 -07:00 |
|
Daniel Nichter
|
8f59c9f357
|
Change --check-spool to --send-data, and Run->schedule to Run->run_schedule. Add Run->spool_schedule and Run->queries. Remove Service->alias.
|
2013-01-14 15:02:07 -07:00 |
|
Daniel Nichter
|
526437632c
|
Implement and test --check-spool. Make Mock/UserAgent save put and post data in an array. Make Percona/WebAPI/Client accept ready-made text resources, for multi-part resources.
|
2013-01-08 18:49:42 -07:00 |
|
Daniel Nichter
|
0495f9aa8a
|
Test and implement more run_agent(). Fix as_json() for lists of resources. Add alias attrib to Service for its friendly name; make name its code-friendly name. Fix ts in log messages.
|
2012-12-26 17:44:19 -07:00 |
|
Daniel Nichter
|
66fb54e793
|
Fix Client to expect X-Percona-Resource-Type else links. Add headers to Mock/UserAgent. Start testing run_agent(). As TO_JSON() magic to Run so encode can encode Service contain blessed Run objs. Use BUILDARGS to convert Run as hashref to real objs.
|
2012-12-26 13:00:46 -07:00 |
|
Daniel Nichter
|
87080d44b2
|
Fix WebAPI::Client to always expect links: in reponse.
|
2012-12-26 09:16:53 -07:00 |
|
Daniel Nichter
|
5051abc7ec
|
Partly working and tested pt-agent. Fix Percona/WebAPI/Client.pm. Add Percona/WebAPI/Util.pm, Percona/Test.pm, and /Test/Mock/UserAgent.pm.
|
2012-12-25 19:40:42 -07:00 |
|
Daniel Nichter
|
9241c27b7c
|
Almost working pt-agent main process. Clean up HTTP::Micro. Add Percona/WebAPI/Util, and some basic Percona/WebAPI/Representation tests.
|
2012-12-25 16:51:18 -07:00 |
|
Daniel Nichter
|
6f2d543653
|
Condense lib/Percona/WebAPI/Representation/* into lib/Percona/WebAPI/Representation.pm since our MO doesn't support roles. Continue building pt-agent.
|
2012-12-25 12:20:06 -07:00 |
|
Daniel Nichter
|
d035125729
|
Add headers to Lmo and WebAPI modules, and put the modules in pt-agent.
|
2012-12-24 18:20:25 -07:00 |
|
Daniel Nichter
|
593e64e6ec
|
Begin to fill in pt-agent. Use new, experimental Percona::Toolkit. Remove Versions resource; add as optional attrib to Agent resource.
|
2012-12-24 13:17:48 -07:00 |
|
Daniel Nichter
|
93416d4cb6
|
Skeleton bin/pt-agent and lib/Percona/WebAPI.
|
2012-12-24 11:24:53 -07:00 |
|