tencentcloud-sdk-monitor 3.0.498 → 3.0.500
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180724/client.rb +360 -0
- data/lib/v20180724/models.rb +972 -5
- metadata +2 -2
data/lib/v20180724/models.rb
CHANGED
@@ -2008,6 +2008,209 @@ module TencentCloud
|
|
2008
2008
|
end
|
2009
2009
|
end
|
2010
2010
|
|
2011
|
+
# CreatePrometheusAlertPolicy请求参数结构体
|
2012
|
+
class CreatePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
|
2013
|
+
# @param InstanceId: 实例id
|
2014
|
+
# @type InstanceId: String
|
2015
|
+
# @param AlertRule: 告警配置
|
2016
|
+
# @type AlertRule: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusAlertPolicyItem`
|
2017
|
+
|
2018
|
+
attr_accessor :InstanceId, :AlertRule
|
2019
|
+
|
2020
|
+
def initialize(instanceid=nil, alertrule=nil)
|
2021
|
+
@InstanceId = instanceid
|
2022
|
+
@AlertRule = alertrule
|
2023
|
+
end
|
2024
|
+
|
2025
|
+
def deserialize(params)
|
2026
|
+
@InstanceId = params['InstanceId']
|
2027
|
+
unless params['AlertRule'].nil?
|
2028
|
+
@AlertRule = PrometheusAlertPolicyItem.new
|
2029
|
+
@AlertRule.deserialize(params['AlertRule'])
|
2030
|
+
end
|
2031
|
+
end
|
2032
|
+
end
|
2033
|
+
|
2034
|
+
# CreatePrometheusAlertPolicy返回参数结构体
|
2035
|
+
class CreatePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
|
2036
|
+
# @param Id: 告警id
|
2037
|
+
# @type Id: String
|
2038
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2039
|
+
# @type RequestId: String
|
2040
|
+
|
2041
|
+
attr_accessor :Id, :RequestId
|
2042
|
+
|
2043
|
+
def initialize(id=nil, requestid=nil)
|
2044
|
+
@Id = id
|
2045
|
+
@RequestId = requestid
|
2046
|
+
end
|
2047
|
+
|
2048
|
+
def deserialize(params)
|
2049
|
+
@Id = params['Id']
|
2050
|
+
@RequestId = params['RequestId']
|
2051
|
+
end
|
2052
|
+
end
|
2053
|
+
|
2054
|
+
# CreatePrometheusClusterAgent请求参数结构体
|
2055
|
+
class CreatePrometheusClusterAgentRequest < TencentCloud::Common::AbstractModel
|
2056
|
+
# @param InstanceId: 实例ID
|
2057
|
+
# @type InstanceId: String
|
2058
|
+
# @param Agents: agent列表
|
2059
|
+
# @type Agents: Array
|
2060
|
+
|
2061
|
+
attr_accessor :InstanceId, :Agents
|
2062
|
+
|
2063
|
+
def initialize(instanceid=nil, agents=nil)
|
2064
|
+
@InstanceId = instanceid
|
2065
|
+
@Agents = agents
|
2066
|
+
end
|
2067
|
+
|
2068
|
+
def deserialize(params)
|
2069
|
+
@InstanceId = params['InstanceId']
|
2070
|
+
unless params['Agents'].nil?
|
2071
|
+
@Agents = []
|
2072
|
+
params['Agents'].each do |i|
|
2073
|
+
prometheusclusteragentbasic_tmp = PrometheusClusterAgentBasic.new
|
2074
|
+
prometheusclusteragentbasic_tmp.deserialize(i)
|
2075
|
+
@Agents << prometheusclusteragentbasic_tmp
|
2076
|
+
end
|
2077
|
+
end
|
2078
|
+
end
|
2079
|
+
end
|
2080
|
+
|
2081
|
+
# CreatePrometheusClusterAgent返回参数结构体
|
2082
|
+
class CreatePrometheusClusterAgentResponse < TencentCloud::Common::AbstractModel
|
2083
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2084
|
+
# @type RequestId: String
|
2085
|
+
|
2086
|
+
attr_accessor :RequestId
|
2087
|
+
|
2088
|
+
def initialize(requestid=nil)
|
2089
|
+
@RequestId = requestid
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
def deserialize(params)
|
2093
|
+
@RequestId = params['RequestId']
|
2094
|
+
end
|
2095
|
+
end
|
2096
|
+
|
2097
|
+
# CreatePrometheusConfig请求参数结构体
|
2098
|
+
class CreatePrometheusConfigRequest < TencentCloud::Common::AbstractModel
|
2099
|
+
# @param InstanceId: 实例id
|
2100
|
+
# @type InstanceId: String
|
2101
|
+
# @param ClusterType: 集群类型
|
2102
|
+
# @type ClusterType: String
|
2103
|
+
# @param ClusterId: 集群id
|
2104
|
+
# @type ClusterId: String
|
2105
|
+
# @param ServiceMonitors: ServiceMonitors配置
|
2106
|
+
# @type ServiceMonitors: Array
|
2107
|
+
# @param PodMonitors: PodMonitors配置
|
2108
|
+
# @type PodMonitors: Array
|
2109
|
+
# @param RawJobs: prometheus原生Job配置
|
2110
|
+
# @type RawJobs: Array
|
2111
|
+
|
2112
|
+
attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs
|
2113
|
+
|
2114
|
+
def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil)
|
2115
|
+
@InstanceId = instanceid
|
2116
|
+
@ClusterType = clustertype
|
2117
|
+
@ClusterId = clusterid
|
2118
|
+
@ServiceMonitors = servicemonitors
|
2119
|
+
@PodMonitors = podmonitors
|
2120
|
+
@RawJobs = rawjobs
|
2121
|
+
end
|
2122
|
+
|
2123
|
+
def deserialize(params)
|
2124
|
+
@InstanceId = params['InstanceId']
|
2125
|
+
@ClusterType = params['ClusterType']
|
2126
|
+
@ClusterId = params['ClusterId']
|
2127
|
+
unless params['ServiceMonitors'].nil?
|
2128
|
+
@ServiceMonitors = []
|
2129
|
+
params['ServiceMonitors'].each do |i|
|
2130
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
2131
|
+
prometheusconfigitem_tmp.deserialize(i)
|
2132
|
+
@ServiceMonitors << prometheusconfigitem_tmp
|
2133
|
+
end
|
2134
|
+
end
|
2135
|
+
unless params['PodMonitors'].nil?
|
2136
|
+
@PodMonitors = []
|
2137
|
+
params['PodMonitors'].each do |i|
|
2138
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
2139
|
+
prometheusconfigitem_tmp.deserialize(i)
|
2140
|
+
@PodMonitors << prometheusconfigitem_tmp
|
2141
|
+
end
|
2142
|
+
end
|
2143
|
+
unless params['RawJobs'].nil?
|
2144
|
+
@RawJobs = []
|
2145
|
+
params['RawJobs'].each do |i|
|
2146
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
2147
|
+
prometheusconfigitem_tmp.deserialize(i)
|
2148
|
+
@RawJobs << prometheusconfigitem_tmp
|
2149
|
+
end
|
2150
|
+
end
|
2151
|
+
end
|
2152
|
+
end
|
2153
|
+
|
2154
|
+
# CreatePrometheusConfig返回参数结构体
|
2155
|
+
class CreatePrometheusConfigResponse < TencentCloud::Common::AbstractModel
|
2156
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2157
|
+
# @type RequestId: String
|
2158
|
+
|
2159
|
+
attr_accessor :RequestId
|
2160
|
+
|
2161
|
+
def initialize(requestid=nil)
|
2162
|
+
@RequestId = requestid
|
2163
|
+
end
|
2164
|
+
|
2165
|
+
def deserialize(params)
|
2166
|
+
@RequestId = params['RequestId']
|
2167
|
+
end
|
2168
|
+
end
|
2169
|
+
|
2170
|
+
# CreatePrometheusGlobalNotification请求参数结构体
|
2171
|
+
class CreatePrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
|
2172
|
+
# @param InstanceId: 实例ID
|
2173
|
+
# @type InstanceId: String
|
2174
|
+
# @param Notification: 告警通知渠道
|
2175
|
+
# @type Notification: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusNotificationItem`
|
2176
|
+
|
2177
|
+
attr_accessor :InstanceId, :Notification
|
2178
|
+
|
2179
|
+
def initialize(instanceid=nil, notification=nil)
|
2180
|
+
@InstanceId = instanceid
|
2181
|
+
@Notification = notification
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
def deserialize(params)
|
2185
|
+
@InstanceId = params['InstanceId']
|
2186
|
+
unless params['Notification'].nil?
|
2187
|
+
@Notification = PrometheusNotificationItem.new
|
2188
|
+
@Notification.deserialize(params['Notification'])
|
2189
|
+
end
|
2190
|
+
end
|
2191
|
+
end
|
2192
|
+
|
2193
|
+
# CreatePrometheusGlobalNotification返回参数结构体
|
2194
|
+
class CreatePrometheusGlobalNotificationResponse < TencentCloud::Common::AbstractModel
|
2195
|
+
# @param Id: 全局告警通知渠道ID
|
2196
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2197
|
+
# @type Id: String
|
2198
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2199
|
+
# @type RequestId: String
|
2200
|
+
|
2201
|
+
attr_accessor :Id, :RequestId
|
2202
|
+
|
2203
|
+
def initialize(id=nil, requestid=nil)
|
2204
|
+
@Id = id
|
2205
|
+
@RequestId = requestid
|
2206
|
+
end
|
2207
|
+
|
2208
|
+
def deserialize(params)
|
2209
|
+
@Id = params['Id']
|
2210
|
+
@RequestId = params['RequestId']
|
2211
|
+
end
|
2212
|
+
end
|
2213
|
+
|
2011
2214
|
# CreatePrometheusMultiTenantInstancePostPayMode请求参数结构体
|
2012
2215
|
class CreatePrometheusMultiTenantInstancePostPayModeRequest < TencentCloud::Common::AbstractModel
|
2013
2216
|
# @param InstanceName: 实例名
|
@@ -2702,6 +2905,141 @@ module TencentCloud
|
|
2702
2905
|
end
|
2703
2906
|
end
|
2704
2907
|
|
2908
|
+
# DeletePrometheusAlertPolicy请求参数结构体
|
2909
|
+
class DeletePrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
|
2910
|
+
# @param InstanceId: 实例id
|
2911
|
+
# @type InstanceId: String
|
2912
|
+
# @param AlertIds: 告警策略id列表
|
2913
|
+
# @type AlertIds: Array
|
2914
|
+
# @param Names: 告警策略名称
|
2915
|
+
# @type Names: Array
|
2916
|
+
|
2917
|
+
attr_accessor :InstanceId, :AlertIds, :Names
|
2918
|
+
|
2919
|
+
def initialize(instanceid=nil, alertids=nil, names=nil)
|
2920
|
+
@InstanceId = instanceid
|
2921
|
+
@AlertIds = alertids
|
2922
|
+
@Names = names
|
2923
|
+
end
|
2924
|
+
|
2925
|
+
def deserialize(params)
|
2926
|
+
@InstanceId = params['InstanceId']
|
2927
|
+
@AlertIds = params['AlertIds']
|
2928
|
+
@Names = params['Names']
|
2929
|
+
end
|
2930
|
+
end
|
2931
|
+
|
2932
|
+
# DeletePrometheusAlertPolicy返回参数结构体
|
2933
|
+
class DeletePrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
|
2934
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2935
|
+
# @type RequestId: String
|
2936
|
+
|
2937
|
+
attr_accessor :RequestId
|
2938
|
+
|
2939
|
+
def initialize(requestid=nil)
|
2940
|
+
@RequestId = requestid
|
2941
|
+
end
|
2942
|
+
|
2943
|
+
def deserialize(params)
|
2944
|
+
@RequestId = params['RequestId']
|
2945
|
+
end
|
2946
|
+
end
|
2947
|
+
|
2948
|
+
# DeletePrometheusClusterAgent请求参数结构体
|
2949
|
+
class DeletePrometheusClusterAgentRequest < TencentCloud::Common::AbstractModel
|
2950
|
+
# @param Agents: agent列表
|
2951
|
+
# @type Agents: Array
|
2952
|
+
# @param InstanceId: 实例id
|
2953
|
+
# @type InstanceId: String
|
2954
|
+
|
2955
|
+
attr_accessor :Agents, :InstanceId
|
2956
|
+
|
2957
|
+
def initialize(agents=nil, instanceid=nil)
|
2958
|
+
@Agents = agents
|
2959
|
+
@InstanceId = instanceid
|
2960
|
+
end
|
2961
|
+
|
2962
|
+
def deserialize(params)
|
2963
|
+
unless params['Agents'].nil?
|
2964
|
+
@Agents = []
|
2965
|
+
params['Agents'].each do |i|
|
2966
|
+
prometheusagentinfo_tmp = PrometheusAgentInfo.new
|
2967
|
+
prometheusagentinfo_tmp.deserialize(i)
|
2968
|
+
@Agents << prometheusagentinfo_tmp
|
2969
|
+
end
|
2970
|
+
end
|
2971
|
+
@InstanceId = params['InstanceId']
|
2972
|
+
end
|
2973
|
+
end
|
2974
|
+
|
2975
|
+
# DeletePrometheusClusterAgent返回参数结构体
|
2976
|
+
class DeletePrometheusClusterAgentResponse < TencentCloud::Common::AbstractModel
|
2977
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2978
|
+
# @type RequestId: String
|
2979
|
+
|
2980
|
+
attr_accessor :RequestId
|
2981
|
+
|
2982
|
+
def initialize(requestid=nil)
|
2983
|
+
@RequestId = requestid
|
2984
|
+
end
|
2985
|
+
|
2986
|
+
def deserialize(params)
|
2987
|
+
@RequestId = params['RequestId']
|
2988
|
+
end
|
2989
|
+
end
|
2990
|
+
|
2991
|
+
# DeletePrometheusConfig请求参数结构体
|
2992
|
+
class DeletePrometheusConfigRequest < TencentCloud::Common::AbstractModel
|
2993
|
+
# @param InstanceId: 实例id
|
2994
|
+
# @type InstanceId: String
|
2995
|
+
# @param ClusterType: 集群类型
|
2996
|
+
# @type ClusterType: String
|
2997
|
+
# @param ClusterId: 集群id
|
2998
|
+
# @type ClusterId: String
|
2999
|
+
# @param ServiceMonitors: 要删除的ServiceMonitor名字列表
|
3000
|
+
# @type ServiceMonitors: Array
|
3001
|
+
# @param PodMonitors: 要删除的PodMonitor名字列表
|
3002
|
+
# @type PodMonitors: Array
|
3003
|
+
# @param RawJobs: 要删除的RawJobs名字列表
|
3004
|
+
# @type RawJobs: Array
|
3005
|
+
|
3006
|
+
attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs
|
3007
|
+
|
3008
|
+
def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil)
|
3009
|
+
@InstanceId = instanceid
|
3010
|
+
@ClusterType = clustertype
|
3011
|
+
@ClusterId = clusterid
|
3012
|
+
@ServiceMonitors = servicemonitors
|
3013
|
+
@PodMonitors = podmonitors
|
3014
|
+
@RawJobs = rawjobs
|
3015
|
+
end
|
3016
|
+
|
3017
|
+
def deserialize(params)
|
3018
|
+
@InstanceId = params['InstanceId']
|
3019
|
+
@ClusterType = params['ClusterType']
|
3020
|
+
@ClusterId = params['ClusterId']
|
3021
|
+
@ServiceMonitors = params['ServiceMonitors']
|
3022
|
+
@PodMonitors = params['PodMonitors']
|
3023
|
+
@RawJobs = params['RawJobs']
|
3024
|
+
end
|
3025
|
+
end
|
3026
|
+
|
3027
|
+
# DeletePrometheusConfig返回参数结构体
|
3028
|
+
class DeletePrometheusConfigResponse < TencentCloud::Common::AbstractModel
|
3029
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3030
|
+
# @type RequestId: String
|
3031
|
+
|
3032
|
+
attr_accessor :RequestId
|
3033
|
+
|
3034
|
+
def initialize(requestid=nil)
|
3035
|
+
@RequestId = requestid
|
3036
|
+
end
|
3037
|
+
|
3038
|
+
def deserialize(params)
|
3039
|
+
@RequestId = params['RequestId']
|
3040
|
+
end
|
3041
|
+
end
|
3042
|
+
|
2705
3043
|
# DeletePrometheusRecordRuleYaml请求参数结构体
|
2706
3044
|
class DeletePrometheusRecordRuleYamlRequest < TencentCloud::Common::AbstractModel
|
2707
3045
|
# @param InstanceId: 实例id
|
@@ -6685,13 +7023,68 @@ module TencentCloud
|
|
6685
7023
|
end
|
6686
7024
|
end
|
6687
7025
|
|
6688
|
-
#
|
6689
|
-
class
|
7026
|
+
# DescribePrometheusClusterAgents请求参数结构体
|
7027
|
+
class DescribePrometheusClusterAgentsRequest < TencentCloud::Common::AbstractModel
|
6690
7028
|
# @param InstanceId: 实例id
|
6691
7029
|
# @type InstanceId: String
|
6692
|
-
# @param
|
6693
|
-
# @type
|
6694
|
-
# @param
|
7030
|
+
# @param Offset: 用于分页
|
7031
|
+
# @type Offset: Integer
|
7032
|
+
# @param Limit: 用于分页
|
7033
|
+
# @type Limit: Integer
|
7034
|
+
|
7035
|
+
attr_accessor :InstanceId, :Offset, :Limit
|
7036
|
+
|
7037
|
+
def initialize(instanceid=nil, offset=nil, limit=nil)
|
7038
|
+
@InstanceId = instanceid
|
7039
|
+
@Offset = offset
|
7040
|
+
@Limit = limit
|
7041
|
+
end
|
7042
|
+
|
7043
|
+
def deserialize(params)
|
7044
|
+
@InstanceId = params['InstanceId']
|
7045
|
+
@Offset = params['Offset']
|
7046
|
+
@Limit = params['Limit']
|
7047
|
+
end
|
7048
|
+
end
|
7049
|
+
|
7050
|
+
# DescribePrometheusClusterAgents返回参数结构体
|
7051
|
+
class DescribePrometheusClusterAgentsResponse < TencentCloud::Common::AbstractModel
|
7052
|
+
# @param Agents: 被关联集群信息
|
7053
|
+
# @type Agents: Array
|
7054
|
+
# @param Total: 被关联集群总量
|
7055
|
+
# @type Total: Integer
|
7056
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7057
|
+
# @type RequestId: String
|
7058
|
+
|
7059
|
+
attr_accessor :Agents, :Total, :RequestId
|
7060
|
+
|
7061
|
+
def initialize(agents=nil, total=nil, requestid=nil)
|
7062
|
+
@Agents = agents
|
7063
|
+
@Total = total
|
7064
|
+
@RequestId = requestid
|
7065
|
+
end
|
7066
|
+
|
7067
|
+
def deserialize(params)
|
7068
|
+
unless params['Agents'].nil?
|
7069
|
+
@Agents = []
|
7070
|
+
params['Agents'].each do |i|
|
7071
|
+
prometheusagentoverview_tmp = PrometheusAgentOverview.new
|
7072
|
+
prometheusagentoverview_tmp.deserialize(i)
|
7073
|
+
@Agents << prometheusagentoverview_tmp
|
7074
|
+
end
|
7075
|
+
end
|
7076
|
+
@Total = params['Total']
|
7077
|
+
@RequestId = params['RequestId']
|
7078
|
+
end
|
7079
|
+
end
|
7080
|
+
|
7081
|
+
# DescribePrometheusConfig请求参数结构体
|
7082
|
+
class DescribePrometheusConfigRequest < TencentCloud::Common::AbstractModel
|
7083
|
+
# @param InstanceId: 实例id
|
7084
|
+
# @type InstanceId: String
|
7085
|
+
# @param ClusterId: 集群id
|
7086
|
+
# @type ClusterId: String
|
7087
|
+
# @param ClusterType: 集群类型
|
6695
7088
|
# @type ClusterType: String
|
6696
7089
|
|
6697
7090
|
attr_accessor :InstanceId, :ClusterId, :ClusterType
|
@@ -6725,6 +7118,122 @@ module TencentCloud
|
|
6725
7118
|
end
|
6726
7119
|
end
|
6727
7120
|
|
7121
|
+
# DescribePrometheusGlobalConfig请求参数结构体
|
7122
|
+
class DescribePrometheusGlobalConfigRequest < TencentCloud::Common::AbstractModel
|
7123
|
+
# @param InstanceId: 实例级别抓取配置
|
7124
|
+
# @type InstanceId: String
|
7125
|
+
# @param DisableStatistics: 是否禁用统计
|
7126
|
+
# @type DisableStatistics: Boolean
|
7127
|
+
|
7128
|
+
attr_accessor :InstanceId, :DisableStatistics
|
7129
|
+
|
7130
|
+
def initialize(instanceid=nil, disablestatistics=nil)
|
7131
|
+
@InstanceId = instanceid
|
7132
|
+
@DisableStatistics = disablestatistics
|
7133
|
+
end
|
7134
|
+
|
7135
|
+
def deserialize(params)
|
7136
|
+
@InstanceId = params['InstanceId']
|
7137
|
+
@DisableStatistics = params['DisableStatistics']
|
7138
|
+
end
|
7139
|
+
end
|
7140
|
+
|
7141
|
+
# DescribePrometheusGlobalConfig返回参数结构体
|
7142
|
+
class DescribePrometheusGlobalConfigResponse < TencentCloud::Common::AbstractModel
|
7143
|
+
# @param Config: 配置内容
|
7144
|
+
# @type Config: String
|
7145
|
+
# @param ServiceMonitors: ServiceMonitors列表以及对应targets信息
|
7146
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7147
|
+
# @type ServiceMonitors: Array
|
7148
|
+
# @param PodMonitors: PodMonitors列表以及对应targets信息
|
7149
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7150
|
+
# @type PodMonitors: Array
|
7151
|
+
# @param RawJobs: RawJobs列表以及对应targets信息
|
7152
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7153
|
+
# @type RawJobs: Array
|
7154
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7155
|
+
# @type RequestId: String
|
7156
|
+
|
7157
|
+
attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :RequestId
|
7158
|
+
|
7159
|
+
def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, requestid=nil)
|
7160
|
+
@Config = config
|
7161
|
+
@ServiceMonitors = servicemonitors
|
7162
|
+
@PodMonitors = podmonitors
|
7163
|
+
@RawJobs = rawjobs
|
7164
|
+
@RequestId = requestid
|
7165
|
+
end
|
7166
|
+
|
7167
|
+
def deserialize(params)
|
7168
|
+
@Config = params['Config']
|
7169
|
+
unless params['ServiceMonitors'].nil?
|
7170
|
+
@ServiceMonitors = []
|
7171
|
+
params['ServiceMonitors'].each do |i|
|
7172
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
7173
|
+
prometheusconfigitem_tmp.deserialize(i)
|
7174
|
+
@ServiceMonitors << prometheusconfigitem_tmp
|
7175
|
+
end
|
7176
|
+
end
|
7177
|
+
unless params['PodMonitors'].nil?
|
7178
|
+
@PodMonitors = []
|
7179
|
+
params['PodMonitors'].each do |i|
|
7180
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
7181
|
+
prometheusconfigitem_tmp.deserialize(i)
|
7182
|
+
@PodMonitors << prometheusconfigitem_tmp
|
7183
|
+
end
|
7184
|
+
end
|
7185
|
+
unless params['RawJobs'].nil?
|
7186
|
+
@RawJobs = []
|
7187
|
+
params['RawJobs'].each do |i|
|
7188
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
7189
|
+
prometheusconfigitem_tmp.deserialize(i)
|
7190
|
+
@RawJobs << prometheusconfigitem_tmp
|
7191
|
+
end
|
7192
|
+
end
|
7193
|
+
@RequestId = params['RequestId']
|
7194
|
+
end
|
7195
|
+
end
|
7196
|
+
|
7197
|
+
# DescribePrometheusGlobalNotification请求参数结构体
|
7198
|
+
class DescribePrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
|
7199
|
+
# @param InstanceId: 实例ID
|
7200
|
+
# @type InstanceId: String
|
7201
|
+
|
7202
|
+
attr_accessor :InstanceId
|
7203
|
+
|
7204
|
+
def initialize(instanceid=nil)
|
7205
|
+
@InstanceId = instanceid
|
7206
|
+
end
|
7207
|
+
|
7208
|
+
def deserialize(params)
|
7209
|
+
@InstanceId = params['InstanceId']
|
7210
|
+
end
|
7211
|
+
end
|
7212
|
+
|
7213
|
+
# DescribePrometheusGlobalNotification返回参数结构体
|
7214
|
+
class DescribePrometheusGlobalNotificationResponse < TencentCloud::Common::AbstractModel
|
7215
|
+
# @param Notification: 全局告警通知渠道
|
7216
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7217
|
+
# @type Notification: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusNotificationItem`
|
7218
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7219
|
+
# @type RequestId: String
|
7220
|
+
|
7221
|
+
attr_accessor :Notification, :RequestId
|
7222
|
+
|
7223
|
+
def initialize(notification=nil, requestid=nil)
|
7224
|
+
@Notification = notification
|
7225
|
+
@RequestId = requestid
|
7226
|
+
end
|
7227
|
+
|
7228
|
+
def deserialize(params)
|
7229
|
+
unless params['Notification'].nil?
|
7230
|
+
@Notification = PrometheusNotificationItem.new
|
7231
|
+
@Notification.deserialize(params['Notification'])
|
7232
|
+
end
|
7233
|
+
@RequestId = params['RequestId']
|
7234
|
+
end
|
7235
|
+
end
|
7236
|
+
|
6728
7237
|
# DescribePrometheusInstanceDetail请求参数结构体
|
6729
7238
|
class DescribePrometheusInstanceDetailRequest < TencentCloud::Common::AbstractModel
|
6730
7239
|
# @param InstanceId: 实例ID
|
@@ -7300,6 +7809,70 @@ module TencentCloud
|
|
7300
7809
|
end
|
7301
7810
|
end
|
7302
7811
|
|
7812
|
+
# DescribePrometheusTargetsTMP请求参数结构体
|
7813
|
+
class DescribePrometheusTargetsTMPRequest < TencentCloud::Common::AbstractModel
|
7814
|
+
# @param InstanceId: 实例id
|
7815
|
+
# @type InstanceId: String
|
7816
|
+
# @param ClusterType: 集群类型
|
7817
|
+
# @type ClusterType: String
|
7818
|
+
# @param ClusterId: 集群id
|
7819
|
+
# @type ClusterId: String
|
7820
|
+
# @param Filters: 过滤条件,当前支持
|
7821
|
+
# Name=state
|
7822
|
+
# Value=up, down, unknown
|
7823
|
+
# @type Filters: Array
|
7824
|
+
|
7825
|
+
attr_accessor :InstanceId, :ClusterType, :ClusterId, :Filters
|
7826
|
+
|
7827
|
+
def initialize(instanceid=nil, clustertype=nil, clusterid=nil, filters=nil)
|
7828
|
+
@InstanceId = instanceid
|
7829
|
+
@ClusterType = clustertype
|
7830
|
+
@ClusterId = clusterid
|
7831
|
+
@Filters = filters
|
7832
|
+
end
|
7833
|
+
|
7834
|
+
def deserialize(params)
|
7835
|
+
@InstanceId = params['InstanceId']
|
7836
|
+
@ClusterType = params['ClusterType']
|
7837
|
+
@ClusterId = params['ClusterId']
|
7838
|
+
unless params['Filters'].nil?
|
7839
|
+
@Filters = []
|
7840
|
+
params['Filters'].each do |i|
|
7841
|
+
filter_tmp = Filter.new
|
7842
|
+
filter_tmp.deserialize(i)
|
7843
|
+
@Filters << filter_tmp
|
7844
|
+
end
|
7845
|
+
end
|
7846
|
+
end
|
7847
|
+
end
|
7848
|
+
|
7849
|
+
# DescribePrometheusTargetsTMP返回参数结构体
|
7850
|
+
class DescribePrometheusTargetsTMPResponse < TencentCloud::Common::AbstractModel
|
7851
|
+
# @param Jobs: 所有Job的targets信息
|
7852
|
+
# @type Jobs: Array
|
7853
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7854
|
+
# @type RequestId: String
|
7855
|
+
|
7856
|
+
attr_accessor :Jobs, :RequestId
|
7857
|
+
|
7858
|
+
def initialize(jobs=nil, requestid=nil)
|
7859
|
+
@Jobs = jobs
|
7860
|
+
@RequestId = requestid
|
7861
|
+
end
|
7862
|
+
|
7863
|
+
def deserialize(params)
|
7864
|
+
unless params['Jobs'].nil?
|
7865
|
+
@Jobs = []
|
7866
|
+
params['Jobs'].each do |i|
|
7867
|
+
prometheusjobtargets_tmp = PrometheusJobTargets.new
|
7868
|
+
prometheusjobtargets_tmp.deserialize(i)
|
7869
|
+
@Jobs << prometheusjobtargets_tmp
|
7870
|
+
end
|
7871
|
+
end
|
7872
|
+
@RequestId = params['RequestId']
|
7873
|
+
end
|
7874
|
+
end
|
7875
|
+
|
7303
7876
|
# DescribePrometheusTemp请求参数结构体
|
7304
7877
|
class DescribePrometheusTempRequest < TencentCloud::Common::AbstractModel
|
7305
7878
|
# @param Filters: 模糊过滤条件,支持
|
@@ -9582,6 +10155,204 @@ module TencentCloud
|
|
9582
10155
|
end
|
9583
10156
|
end
|
9584
10157
|
|
10158
|
+
# ModifyPrometheusAgentExternalLabels请求参数结构体
|
10159
|
+
class ModifyPrometheusAgentExternalLabelsRequest < TencentCloud::Common::AbstractModel
|
10160
|
+
# @param InstanceId: 实例ID
|
10161
|
+
# @type InstanceId: String
|
10162
|
+
# @param ClusterId: 集群ID
|
10163
|
+
# @type ClusterId: String
|
10164
|
+
# @param ExternalLabels: 新的external_labels
|
10165
|
+
# @type ExternalLabels: Array
|
10166
|
+
|
10167
|
+
attr_accessor :InstanceId, :ClusterId, :ExternalLabels
|
10168
|
+
|
10169
|
+
def initialize(instanceid=nil, clusterid=nil, externallabels=nil)
|
10170
|
+
@InstanceId = instanceid
|
10171
|
+
@ClusterId = clusterid
|
10172
|
+
@ExternalLabels = externallabels
|
10173
|
+
end
|
10174
|
+
|
10175
|
+
def deserialize(params)
|
10176
|
+
@InstanceId = params['InstanceId']
|
10177
|
+
@ClusterId = params['ClusterId']
|
10178
|
+
unless params['ExternalLabels'].nil?
|
10179
|
+
@ExternalLabels = []
|
10180
|
+
params['ExternalLabels'].each do |i|
|
10181
|
+
label_tmp = Label.new
|
10182
|
+
label_tmp.deserialize(i)
|
10183
|
+
@ExternalLabels << label_tmp
|
10184
|
+
end
|
10185
|
+
end
|
10186
|
+
end
|
10187
|
+
end
|
10188
|
+
|
10189
|
+
# ModifyPrometheusAgentExternalLabels返回参数结构体
|
10190
|
+
class ModifyPrometheusAgentExternalLabelsResponse < TencentCloud::Common::AbstractModel
|
10191
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
10192
|
+
# @type RequestId: String
|
10193
|
+
|
10194
|
+
attr_accessor :RequestId
|
10195
|
+
|
10196
|
+
def initialize(requestid=nil)
|
10197
|
+
@RequestId = requestid
|
10198
|
+
end
|
10199
|
+
|
10200
|
+
def deserialize(params)
|
10201
|
+
@RequestId = params['RequestId']
|
10202
|
+
end
|
10203
|
+
end
|
10204
|
+
|
10205
|
+
# ModifyPrometheusAlertPolicy请求参数结构体
|
10206
|
+
class ModifyPrometheusAlertPolicyRequest < TencentCloud::Common::AbstractModel
|
10207
|
+
# @param InstanceId: 实例id
|
10208
|
+
# @type InstanceId: String
|
10209
|
+
# @param AlertRule: 告警配置
|
10210
|
+
# @type AlertRule: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusAlertPolicyItem`
|
10211
|
+
|
10212
|
+
attr_accessor :InstanceId, :AlertRule
|
10213
|
+
|
10214
|
+
def initialize(instanceid=nil, alertrule=nil)
|
10215
|
+
@InstanceId = instanceid
|
10216
|
+
@AlertRule = alertrule
|
10217
|
+
end
|
10218
|
+
|
10219
|
+
def deserialize(params)
|
10220
|
+
@InstanceId = params['InstanceId']
|
10221
|
+
unless params['AlertRule'].nil?
|
10222
|
+
@AlertRule = PrometheusAlertPolicyItem.new
|
10223
|
+
@AlertRule.deserialize(params['AlertRule'])
|
10224
|
+
end
|
10225
|
+
end
|
10226
|
+
end
|
10227
|
+
|
10228
|
+
# ModifyPrometheusAlertPolicy返回参数结构体
|
10229
|
+
class ModifyPrometheusAlertPolicyResponse < TencentCloud::Common::AbstractModel
|
10230
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
10231
|
+
# @type RequestId: String
|
10232
|
+
|
10233
|
+
attr_accessor :RequestId
|
10234
|
+
|
10235
|
+
def initialize(requestid=nil)
|
10236
|
+
@RequestId = requestid
|
10237
|
+
end
|
10238
|
+
|
10239
|
+
def deserialize(params)
|
10240
|
+
@RequestId = params['RequestId']
|
10241
|
+
end
|
10242
|
+
end
|
10243
|
+
|
10244
|
+
# ModifyPrometheusConfig请求参数结构体
|
10245
|
+
class ModifyPrometheusConfigRequest < TencentCloud::Common::AbstractModel
|
10246
|
+
# @param InstanceId: 实例id
|
10247
|
+
# @type InstanceId: String
|
10248
|
+
# @param ClusterType: 集群类型
|
10249
|
+
# @type ClusterType: String
|
10250
|
+
# @param ClusterId: 集群id
|
10251
|
+
# @type ClusterId: String
|
10252
|
+
# @param ServiceMonitors: ServiceMonitors配置
|
10253
|
+
# @type ServiceMonitors: Array
|
10254
|
+
# @param PodMonitors: PodMonitors配置
|
10255
|
+
# @type PodMonitors: Array
|
10256
|
+
# @param RawJobs: prometheus原生Job配置
|
10257
|
+
# @type RawJobs: Array
|
10258
|
+
|
10259
|
+
attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs
|
10260
|
+
|
10261
|
+
def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil)
|
10262
|
+
@InstanceId = instanceid
|
10263
|
+
@ClusterType = clustertype
|
10264
|
+
@ClusterId = clusterid
|
10265
|
+
@ServiceMonitors = servicemonitors
|
10266
|
+
@PodMonitors = podmonitors
|
10267
|
+
@RawJobs = rawjobs
|
10268
|
+
end
|
10269
|
+
|
10270
|
+
def deserialize(params)
|
10271
|
+
@InstanceId = params['InstanceId']
|
10272
|
+
@ClusterType = params['ClusterType']
|
10273
|
+
@ClusterId = params['ClusterId']
|
10274
|
+
unless params['ServiceMonitors'].nil?
|
10275
|
+
@ServiceMonitors = []
|
10276
|
+
params['ServiceMonitors'].each do |i|
|
10277
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
10278
|
+
prometheusconfigitem_tmp.deserialize(i)
|
10279
|
+
@ServiceMonitors << prometheusconfigitem_tmp
|
10280
|
+
end
|
10281
|
+
end
|
10282
|
+
unless params['PodMonitors'].nil?
|
10283
|
+
@PodMonitors = []
|
10284
|
+
params['PodMonitors'].each do |i|
|
10285
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
10286
|
+
prometheusconfigitem_tmp.deserialize(i)
|
10287
|
+
@PodMonitors << prometheusconfigitem_tmp
|
10288
|
+
end
|
10289
|
+
end
|
10290
|
+
unless params['RawJobs'].nil?
|
10291
|
+
@RawJobs = []
|
10292
|
+
params['RawJobs'].each do |i|
|
10293
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
10294
|
+
prometheusconfigitem_tmp.deserialize(i)
|
10295
|
+
@RawJobs << prometheusconfigitem_tmp
|
10296
|
+
end
|
10297
|
+
end
|
10298
|
+
end
|
10299
|
+
end
|
10300
|
+
|
10301
|
+
# ModifyPrometheusConfig返回参数结构体
|
10302
|
+
class ModifyPrometheusConfigResponse < TencentCloud::Common::AbstractModel
|
10303
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
10304
|
+
# @type RequestId: String
|
10305
|
+
|
10306
|
+
attr_accessor :RequestId
|
10307
|
+
|
10308
|
+
def initialize(requestid=nil)
|
10309
|
+
@RequestId = requestid
|
10310
|
+
end
|
10311
|
+
|
10312
|
+
def deserialize(params)
|
10313
|
+
@RequestId = params['RequestId']
|
10314
|
+
end
|
10315
|
+
end
|
10316
|
+
|
10317
|
+
# ModifyPrometheusGlobalNotification请求参数结构体
|
10318
|
+
class ModifyPrometheusGlobalNotificationRequest < TencentCloud::Common::AbstractModel
|
10319
|
+
# @param InstanceId: 实例ID
|
10320
|
+
# @type InstanceId: String
|
10321
|
+
# @param Notification: 告警通知渠道
|
10322
|
+
# @type Notification: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusNotificationItem`
|
10323
|
+
|
10324
|
+
attr_accessor :InstanceId, :Notification
|
10325
|
+
|
10326
|
+
def initialize(instanceid=nil, notification=nil)
|
10327
|
+
@InstanceId = instanceid
|
10328
|
+
@Notification = notification
|
10329
|
+
end
|
10330
|
+
|
10331
|
+
def deserialize(params)
|
10332
|
+
@InstanceId = params['InstanceId']
|
10333
|
+
unless params['Notification'].nil?
|
10334
|
+
@Notification = PrometheusNotificationItem.new
|
10335
|
+
@Notification.deserialize(params['Notification'])
|
10336
|
+
end
|
10337
|
+
end
|
10338
|
+
end
|
10339
|
+
|
10340
|
+
# ModifyPrometheusGlobalNotification返回参数结构体
|
10341
|
+
class ModifyPrometheusGlobalNotificationResponse < TencentCloud::Common::AbstractModel
|
10342
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
10343
|
+
# @type RequestId: String
|
10344
|
+
|
10345
|
+
attr_accessor :RequestId
|
10346
|
+
|
10347
|
+
def initialize(requestid=nil)
|
10348
|
+
@RequestId = requestid
|
10349
|
+
end
|
10350
|
+
|
10351
|
+
def deserialize(params)
|
10352
|
+
@RequestId = params['RequestId']
|
10353
|
+
end
|
10354
|
+
end
|
10355
|
+
|
9585
10356
|
# ModifyPrometheusInstanceAttributes请求参数结构体
|
9586
10357
|
class ModifyPrometheusInstanceAttributesRequest < TencentCloud::Common::AbstractModel
|
9587
10358
|
# @param InstanceName: 实例名称
|
@@ -10074,6 +10845,75 @@ module TencentCloud
|
|
10074
10845
|
end
|
10075
10846
|
end
|
10076
10847
|
|
10848
|
+
# 托管Prometheus agent信息
|
10849
|
+
class PrometheusAgentInfo < TencentCloud::Common::AbstractModel
|
10850
|
+
|
10851
|
+
|
10852
|
+
def initialize()
|
10853
|
+
end
|
10854
|
+
|
10855
|
+
def deserialize(params)
|
10856
|
+
end
|
10857
|
+
end
|
10858
|
+
|
10859
|
+
# 托管prometheus agent概览
|
10860
|
+
class PrometheusAgentOverview < TencentCloud::Common::AbstractModel
|
10861
|
+
# @param ClusterType: 集群类型
|
10862
|
+
# @type ClusterType: String
|
10863
|
+
# @param ClusterId: 集群id
|
10864
|
+
# @type ClusterId: String
|
10865
|
+
# @param Status: agent状态
|
10866
|
+
# normal = 正常
|
10867
|
+
# abnormal = 异常
|
10868
|
+
# @type Status: String
|
10869
|
+
# @param ClusterName: 集群名称
|
10870
|
+
# @type ClusterName: String
|
10871
|
+
# @param ExternalLabels: 额外labels
|
10872
|
+
# 本集群的所有指标都会带上这几个label
|
10873
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10874
|
+
# @type ExternalLabels: Array
|
10875
|
+
# @param Region: 集群所在地域
|
10876
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10877
|
+
# @type Region: String
|
10878
|
+
# @param VpcId: 集群所在VPC ID
|
10879
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10880
|
+
# @type VpcId: String
|
10881
|
+
# @param FailedReason: 记录关联等操作的失败信息
|
10882
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10883
|
+
# @type FailedReason: String
|
10884
|
+
|
10885
|
+
attr_accessor :ClusterType, :ClusterId, :Status, :ClusterName, :ExternalLabels, :Region, :VpcId, :FailedReason
|
10886
|
+
|
10887
|
+
def initialize(clustertype=nil, clusterid=nil, status=nil, clustername=nil, externallabels=nil, region=nil, vpcid=nil, failedreason=nil)
|
10888
|
+
@ClusterType = clustertype
|
10889
|
+
@ClusterId = clusterid
|
10890
|
+
@Status = status
|
10891
|
+
@ClusterName = clustername
|
10892
|
+
@ExternalLabels = externallabels
|
10893
|
+
@Region = region
|
10894
|
+
@VpcId = vpcid
|
10895
|
+
@FailedReason = failedreason
|
10896
|
+
end
|
10897
|
+
|
10898
|
+
def deserialize(params)
|
10899
|
+
@ClusterType = params['ClusterType']
|
10900
|
+
@ClusterId = params['ClusterId']
|
10901
|
+
@Status = params['Status']
|
10902
|
+
@ClusterName = params['ClusterName']
|
10903
|
+
unless params['ExternalLabels'].nil?
|
10904
|
+
@ExternalLabels = []
|
10905
|
+
params['ExternalLabels'].each do |i|
|
10906
|
+
label_tmp = Label.new
|
10907
|
+
label_tmp.deserialize(i)
|
10908
|
+
@ExternalLabels << label_tmp
|
10909
|
+
end
|
10910
|
+
end
|
10911
|
+
@Region = params['Region']
|
10912
|
+
@VpcId = params['VpcId']
|
10913
|
+
@FailedReason = params['FailedReason']
|
10914
|
+
end
|
10915
|
+
end
|
10916
|
+
|
10077
10917
|
# 告警渠道使用自建alertmanager的配置
|
10078
10918
|
class PrometheusAlertManagerConfig < TencentCloud::Common::AbstractModel
|
10079
10919
|
# @param Url: alertmanager url
|
@@ -10216,6 +11056,98 @@ module TencentCloud
|
|
10216
11056
|
end
|
10217
11057
|
end
|
10218
11058
|
|
11059
|
+
# 与云监控融合托管prometheus实例,关联集群基础信息
|
11060
|
+
class PrometheusClusterAgentBasic < TencentCloud::Common::AbstractModel
|
11061
|
+
# @param Region: 集群ID
|
11062
|
+
# @type Region: String
|
11063
|
+
# @param ClusterType: 集群类型
|
11064
|
+
# @type ClusterType: String
|
11065
|
+
# @param ClusterId: 集群ID
|
11066
|
+
# @type ClusterId: String
|
11067
|
+
# @param EnableExternal: 是否开启公网CLB
|
11068
|
+
# @type EnableExternal: Boolean
|
11069
|
+
# @param InClusterPodConfig: 集群内部署组件的pod配置
|
11070
|
+
# @type InClusterPodConfig: :class:`Tencentcloud::Monitor.v20180724.models.PrometheusClusterAgentPodConfig`
|
11071
|
+
# @param ExternalLabels: 该集群采集的所有指标都会带上这些labels
|
11072
|
+
# @type ExternalLabels: Array
|
11073
|
+
# @param NotInstallBasicScrape: 是否安装默认采集配置
|
11074
|
+
# @type NotInstallBasicScrape: Boolean
|
11075
|
+
# @param NotScrape: 是否采集指标,true代表drop所有指标,false代表采集默认指标
|
11076
|
+
# @type NotScrape: Boolean
|
11077
|
+
|
11078
|
+
attr_accessor :Region, :ClusterType, :ClusterId, :EnableExternal, :InClusterPodConfig, :ExternalLabels, :NotInstallBasicScrape, :NotScrape
|
11079
|
+
|
11080
|
+
def initialize(region=nil, clustertype=nil, clusterid=nil, enableexternal=nil, inclusterpodconfig=nil, externallabels=nil, notinstallbasicscrape=nil, notscrape=nil)
|
11081
|
+
@Region = region
|
11082
|
+
@ClusterType = clustertype
|
11083
|
+
@ClusterId = clusterid
|
11084
|
+
@EnableExternal = enableexternal
|
11085
|
+
@InClusterPodConfig = inclusterpodconfig
|
11086
|
+
@ExternalLabels = externallabels
|
11087
|
+
@NotInstallBasicScrape = notinstallbasicscrape
|
11088
|
+
@NotScrape = notscrape
|
11089
|
+
end
|
11090
|
+
|
11091
|
+
def deserialize(params)
|
11092
|
+
@Region = params['Region']
|
11093
|
+
@ClusterType = params['ClusterType']
|
11094
|
+
@ClusterId = params['ClusterId']
|
11095
|
+
@EnableExternal = params['EnableExternal']
|
11096
|
+
unless params['InClusterPodConfig'].nil?
|
11097
|
+
@InClusterPodConfig = PrometheusClusterAgentPodConfig.new
|
11098
|
+
@InClusterPodConfig.deserialize(params['InClusterPodConfig'])
|
11099
|
+
end
|
11100
|
+
unless params['ExternalLabels'].nil?
|
11101
|
+
@ExternalLabels = []
|
11102
|
+
params['ExternalLabels'].each do |i|
|
11103
|
+
label_tmp = Label.new
|
11104
|
+
label_tmp.deserialize(i)
|
11105
|
+
@ExternalLabels << label_tmp
|
11106
|
+
end
|
11107
|
+
end
|
11108
|
+
@NotInstallBasicScrape = params['NotInstallBasicScrape']
|
11109
|
+
@NotScrape = params['NotScrape']
|
11110
|
+
end
|
11111
|
+
end
|
11112
|
+
|
11113
|
+
# 关联集群时在集群内部署组件的pod额外配置
|
11114
|
+
class PrometheusClusterAgentPodConfig < TencentCloud::Common::AbstractModel
|
11115
|
+
# @param HostNet: 是否使用HostNetWork
|
11116
|
+
# @type HostNet: Boolean
|
11117
|
+
# @param NodeSelector: 指定pod运行节点
|
11118
|
+
# @type NodeSelector: Array
|
11119
|
+
# @param Tolerations: 容忍污点
|
11120
|
+
# @type Tolerations: Array
|
11121
|
+
|
11122
|
+
attr_accessor :HostNet, :NodeSelector, :Tolerations
|
11123
|
+
|
11124
|
+
def initialize(hostnet=nil, nodeselector=nil, tolerations=nil)
|
11125
|
+
@HostNet = hostnet
|
11126
|
+
@NodeSelector = nodeselector
|
11127
|
+
@Tolerations = tolerations
|
11128
|
+
end
|
11129
|
+
|
11130
|
+
def deserialize(params)
|
11131
|
+
@HostNet = params['HostNet']
|
11132
|
+
unless params['NodeSelector'].nil?
|
11133
|
+
@NodeSelector = []
|
11134
|
+
params['NodeSelector'].each do |i|
|
11135
|
+
label_tmp = Label.new
|
11136
|
+
label_tmp.deserialize(i)
|
11137
|
+
@NodeSelector << label_tmp
|
11138
|
+
end
|
11139
|
+
end
|
11140
|
+
unless params['Tolerations'].nil?
|
11141
|
+
@Tolerations = []
|
11142
|
+
params['Tolerations'].each do |i|
|
11143
|
+
toleration_tmp = Toleration.new
|
11144
|
+
toleration_tmp.deserialize(i)
|
11145
|
+
@Tolerations << toleration_tmp
|
11146
|
+
end
|
11147
|
+
end
|
11148
|
+
end
|
11149
|
+
end
|
11150
|
+
|
10219
11151
|
# prometheus配置
|
10220
11152
|
class PrometheusConfigItem < TencentCloud::Common::AbstractModel
|
10221
11153
|
# @param Name: 名称
|
@@ -10596,6 +11528,17 @@ module TencentCloud
|
|
10596
11528
|
end
|
10597
11529
|
end
|
10598
11530
|
|
11531
|
+
# prometheus一个job的targets
|
11532
|
+
class PrometheusJobTargets < TencentCloud::Common::AbstractModel
|
11533
|
+
|
11534
|
+
|
11535
|
+
def initialize()
|
11536
|
+
end
|
11537
|
+
|
11538
|
+
def deserialize(params)
|
11539
|
+
end
|
11540
|
+
end
|
11541
|
+
|
10599
11542
|
# 告警通知渠道配置
|
10600
11543
|
class PrometheusNotificationItem < TencentCloud::Common::AbstractModel
|
10601
11544
|
# @param Enabled: 是否启用
|
@@ -11775,6 +12718,30 @@ module TencentCloud
|
|
11775
12718
|
end
|
11776
12719
|
end
|
11777
12720
|
|
12721
|
+
# kubernetes Taint
|
12722
|
+
class Toleration < TencentCloud::Common::AbstractModel
|
12723
|
+
# @param Key: 容忍应用到的 taint key
|
12724
|
+
# @type Key: String
|
12725
|
+
# @param Operator: 键与值的关系
|
12726
|
+
# @type Operator: String
|
12727
|
+
# @param Effect: 要匹配的污点效果
|
12728
|
+
# @type Effect: String
|
12729
|
+
|
12730
|
+
attr_accessor :Key, :Operator, :Effect
|
12731
|
+
|
12732
|
+
def initialize(key=nil, operator=nil, effect=nil)
|
12733
|
+
@Key = key
|
12734
|
+
@Operator = operator
|
12735
|
+
@Effect = effect
|
12736
|
+
end
|
12737
|
+
|
12738
|
+
def deserialize(params)
|
12739
|
+
@Key = params['Key']
|
12740
|
+
@Operator = params['Operator']
|
12741
|
+
@Effect = params['Effect']
|
12742
|
+
end
|
12743
|
+
end
|
12744
|
+
|
11778
12745
|
# 云监控告警通知模板 - 回调通知详情
|
11779
12746
|
class URLNotice < TencentCloud::Common::AbstractModel
|
11780
12747
|
# @param URL: 回调 url(限长256字符)
|