Skip to content

[ML] Scheduled Event Resources : Inconsistent Request Parameter types #39676

@codebrain

Description

@codebrain

The documentation (https://www.elastic.co/guide/en/elasticsearch/reference/6.2/ml-event-resource.html) indicates that both start_time and end_time are to be represented as strings - The datetime string is in ISO 8601 format.

If the API is called with the string ISO 8601 format for these properties, the results are echo'd back in the response having been converted to unix milliseconds. If the values are sent in the original request as unix milliseconds, they are echo'd back having not been transformed.

For the sake of consistency the .NET client has implemented both the request and response parsing using unix milliseconds - it may be worth updating the specification and documentation to point the user towards doing the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :mlMachine learning

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions