Skip to content

Empty Metrics Response for Virtual Machine Usage History #97

Open
@stackbill

Description

@stackbill

Hi CloudStack Support Team,

I am currently facing an issue when trying to retrieve the usage history metrics for a specific Virtual Machine (VM). Despite passing the correct VM UUID and required parameters, the response is empty. Below is the code I am using to fetch the metrics:

// Add the required parameters here
params := Client.VirtualMachine.NewListVirtualMachinesUsageHistoryParams()
params.SetId(vmUUID)


// Get Virutal Machine Metrics
vmMetrics, err := Client.VirtualMachine.ListVirtualMachinesUsageHistory(params)

fmt.Println(vmMetrics)

However, I am getting the empty response

&{1 []}

Could you kindly investigate why no metrics are returned for the specified VM and suggest possible solutions?

Looking forward to your prompt assistance.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions