Skip to content

Feature/xpack info usage#2745

Merged
Mpdreamz merged 3 commits into5.4from
feature/xpack-info-usage
May 4, 2017
Merged

Feature/xpack info usage#2745
Mpdreamz merged 3 commits into5.4from
feature/xpack-info-usage

Conversation

@Mpdreamz
Copy link
Copy Markdown
Member

@Mpdreamz Mpdreamz commented May 1, 2017

No description provided.

Copy link
Copy Markdown
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some small comments, otherwise LGTM 👍

public class XPackBuildInformation
{
[JsonProperty("date")]
public DateTime Date { get; internal set; }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thoughts on using DateTimeOffset?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 👍

public LicenseStatus Status { get; internal set; }

[JsonProperty("expiry_date_in_millis")]
public long ExpiryDateInMilliseconds { get; set; }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we expose a DateTime/DateTimeOffset property for this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to leave this as, might be useful for elasticsearch itself to start returning date.


///<summary>descriptor for XpackInfo <pre>Retrieve information about xpack, including build number/timestamp and license status</pre></summary>
public partial class XpackInfoDescriptor : RequestDescriptorBase<XpackInfoDescriptor,XpackInfoRequestParameters, IXpackInfoRequest>, IXpackInfoRequest
public partial class XPackInfoDescriptor : RequestDescriptorBase<XPackInfoDescriptor,XPackInfoRequestParameters, IXPackInfoRequest>, IXPackInfoRequest
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These change the casing of Xpack -> XPack. Should we keep the casing as is here for bwc and update in master?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They change the casing against the generated code in 5.4. 5.x and master do not have this yet so we're good 👍

@Mpdreamz Mpdreamz force-pushed the feature/xpack-info-usage branch from 945f242 to d1efdc4 Compare May 4, 2017 09:12
@Mpdreamz Mpdreamz merged commit c77e504 into 5.4 May 4, 2017
@Mpdreamz Mpdreamz mentioned this pull request May 4, 2017
@Mpdreamz
Copy link
Copy Markdown
Member Author

Mpdreamz commented May 4, 2017

ported to master

@Mpdreamz Mpdreamz deleted the feature/xpack-info-usage branch May 4, 2017 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants