Skip to content
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

Incomplete Struct NodeStatusProperties #52

Open
schmikei opened this issue Apr 26, 2022 · 0 comments
Open

Incomplete Struct NodeStatusProperties #52

schmikei opened this issue Apr 26, 2022 · 0 comments

Comments

@schmikei
Copy link

schmikei commented Apr 26, 2022

Is your feature request related to a problem? Please describe.

I'm running NSX 3.1.2 in GCP and noticing some missing info on at least one struct.

The NodeStatusProperties struct is missing a corresponding cpu_usage object when retrieved from the Fabric API.

Endpoint hit: /api/v1/fabric/nodes/status?node_ids=c175ac2a-1070-46ca-8422-4119b9b126da

And /api/v1/transport-nodes/9c9df875-4f16-4298-b02b-c48aeed198c4/status link

{...
            "system_status": {
                "cpu_cores": 8,
                "dpdk_cpu_cores": 4,
                "non_dpdk_cpu_cores": 4,
                "disk_space_total": 162333740,
                "disk_space_used": 4710732,
                 ...
                "cpu_usage": {
                    "highest_cpu_core_usage_dpdk": 0.02,
                    "avg_cpu_core_usage_dpdk": 0.01,
                    "highest_cpu_core_usage_non_dpdk": 9.25,
                    "avg_cpu_core_usage_non_dpdk": 6.48
                },
                "edge_mem_usage": ...
                "mem_cache": 2761640,
                "mem_total": 32734844,
                "mem_used": 16683928,
                "source": "cached",
                "swap_total": 0,
                "swap_used": 0,
                "system_time": 1650917111000,
                "uptime": 16863459000
            },

Describe the solution you'd like

Add the missing struct fields with omitempty flags. Should be pretty straightforward I think.

Describe alternatives you've considered

I believe that this code may be autogenerated otherwise I would have made a PR but figured it was going to be a trivial feature request!

Let me know if you need any more details.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant