vmware / vmware/pyvmomi

Does pyvmonic has the equivalent function of PowerCLI Get-Stat to get statistical information

Open
#907 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

Typically, I want to get the average memory usage of a host during a specified period of time.
I can use powercli to run like

Get-Stat -Entity $host -Start 5/5/2020 -Finish 6 /5/2020 -Stat "mem.usage.average"

Wondering I can implement this with pyvmonic.

Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by investigating pyvmomi's vSphere performance-statistics API for the host and time range described, then determine whether it can provide average memory usage comparable to PowerCLI Get-Stat. Done means the supported approach or its absence is clearly documented, with an example if the API supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.