Debian Codegraph @

rds/monitoring.go

raw symbols SCIP
1 package rds
2
3 import (
4 "github.com/denverdino/aliyungo/common"
5 "github.com/denverdino/aliyungo/util"
6 )
7
8 type DescribeDBInstancePerformanceArgs struct {
9 DBInstanceId string
10 Key string
11 StartTime string
12 EndTime string
13 }
14
15 type PerformanceValueType struct {
16 Value string
17 Date util.ISO6801Time
18 }
19
20 type PerformanceKeyType struct {
21 Key string
22 Unit string
23 ValueFormat string
24 Values struct {
25 PerformanceValue []PerformanceValueType
26 }
27 }
28
29 type DescribeDBInstancePerformanceResponse struct {
30 common.Response
31 DBInstanceId string
32 Engine string
33 StartTime util.ISO6801Time
34 EndTime util.ISO6801Time
35 PerformanceKeys struct {
36 PerformanceKey []PerformanceKeyType
37 }
38 }
39
40 func (client *DescribeDBInstancePerformanceArgs) Setkey(key string) {
41 client.Key = key
42 }
43
44 func (client *Client) DescribeDBInstancePerformance(args *DescribeDBInstancePerformanceArgs) (resp DescribeDBInstancePerformanceResponse, err error) {
45
46 response := DescribeDBInstancePerformanceResponse{}
47 err = client.Invoke("DescribeDBInstancePerformance", args, &response)
48 return response, err
49
50 }