-
Notifications
You must be signed in to change notification settings - Fork 1
feat(rest-client): timestamp insertion when used with observe #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(rest-client): timestamp insertion when used with observe #6
Conversation
… compute Signed-off-by: KAMEDA Kaito <[email protected]>
docs/rest-client.md
Outdated
| ### Plugin config | ||
|
|
||
| The parameters are required in config: `method`, `url`, `data`, `headers`, `http-basic-authentication`, `tls-verify`, `jpath` and `output`. | ||
| The parameters are required in config: `method`, `url`, `data`, `headers`, `http-basic-authentication`, `tls-verify`, `jpath`, `observtion-timestamp` and `output`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo? observtion -> observation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I missed that.
docs/rest-client.md
Outdated
| ``` | ||
| - `tls-verify`: optional, the server certificate is verified against the list of supplied CAs if true or undefined. `true` is set by default. | ||
| - `jpath`: JSONPath expression and you can use it when using the GET method | ||
| - `observation-timestamp`: optional, the execution timestamp will be automatically inserted into the `inputs` when using this plugin with `observe` if `true`. `false` is set by default. This option should not be set to `true` when used with `compute`. An error will occur if this option is set to `true` while a `timestamp` already exists in the `inputs`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it is better to other name - e.g. insert-timestamp, observe-mode, observe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a nice name. I chose observe-mode
Signed-off-by: KAMEDA Kaito <[email protected]>
|
Thank you for your advice. I fixed them. Could you please check them? |
YaSuenag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks a lot for your contribution!
… compute
Types of changes
A description of the changes proposed in the Pull Request
inputswhen this plugin is used withobserve. If the plugin is used withobserveand atimestampalready exists in theinputs, an error will be returned