eBay / restcommander

Fast Parallel Async HTTP client as a Service to monitor and manage 10,000 web servers. (Java+Akka)
Apache License 2.0
902 stars 132 forks source link

Can the variable defined support current timestamp? #8

Closed kenspirit closed 8 years ago

kenspirit commented 10 years ago

It's better if variable can be defined as current timestamp with specific format. It would be great if support derived datetime from the current timestamp.

jeffpeiyt commented 10 years ago

Hi, could u elaborate? If you are using the REST API, you can define any value to replace the variable. u can put the timestamp or anything for sure.

kenspirit commented 10 years ago

How can I obtain the current system timestamp? Function like SYSDATE or SYSTIMESTAMP in SQL. And possibly format the time to specific format like YYYYMMDD

On Fri, Mar 14, 2014 at 12:42 PM, Yuanteng (Jeff) Pei < notifications@github.com> wrote:

Hi, could u elaborate? If you are using the REST API, you can define any value to replace the variable. u can put the timestamp or anything for sure.

Reply to this email directly or view it on GitHubhttps://github.com/eBay/restcommander/issues/8#issuecomment-37616336 .


Ken Chen

jeffpeiyt commented 10 years ago

if you are using rest client or rest API, you can generate that timestamp string and put it in your rest call.

Here is a python rest client: http://www.restcommander.com/monitoring-sample.html

we also have a java rest client to be published too

http://www.restcommander.com/usecase.html#usecase-different-servers

"map":{ "APIVARREPLACE_TIME_STAMP":"20140310" }

jeffpeiyt commented 8 years ago

closed as for now. can be reopened if there are further discussions