We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
go 1.18 GetMonitor无任何报错 但是返回值为空 iOutput, err := Instance.GetMonitor( &qc.GetMonitorInput{ EndTime: qc.Time(time.Now()), StartTime: qc.Time(time.Now().Add(-time.Hour * 24)), Meters: []*string{ qc.String("cpu_utilization"), qc.String("memory_utilization"), qc.String("disk_utilization"), }, Resource: qc.String("i-x x x x"), Step: qc.String("2h"), }, ) if err != nil { logrus.Errorf("Get instance monitor failed, err:%v\n", err) } for _, meter := range iOutput.MeterSet { fmt.Println(meter.Data...) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
go 1.18

GetMonitor无任何报错 但是返回值为空
iOutput, err := Instance.GetMonitor(
&qc.GetMonitorInput{
EndTime: qc.Time(time.Now()),
StartTime: qc.Time(time.Now().Add(-time.Hour * 24)),
Meters: []*string{
qc.String("cpu_utilization"),
qc.String("memory_utilization"),
qc.String("disk_utilization"),
},
Resource: qc.String("i-x x x x"),
Step: qc.String("2h"),
},
)
if err != nil {
logrus.Errorf("Get instance monitor failed, err:%v\n", err)
}
for _, meter := range iOutput.MeterSet {
fmt.Println(meter.Data...)
}
The text was updated successfully, but these errors were encountered: