Class: TencentCloud::Tke::V20180525::PrometheusTarget
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::PrometheusTarget
- Defined in:
- lib/v20180525/models.rb
Overview
prometheus一个抓取目标的信息
Instance Attribute Summary collapse
-
#Error ⇒ Object
up = 健康 down = 不健康 unknown = 未知.
-
#Labels ⇒ Object
up = 健康 down = 不健康 unknown = 未知.
-
#LastScrape ⇒ Object
up = 健康 down = 不健康 unknown = 未知.
-
#ScrapeDuration ⇒ Object
up = 健康 down = 不健康 unknown = 未知.
-
#State ⇒ Object
up = 健康 down = 不健康 unknown = 未知.
-
#Url ⇒ Object
up = 健康 down = 不健康 unknown = 未知.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(url = nil, state = nil, labels = nil, lastscrape = nil, scrapeduration = nil, error = nil) ⇒ PrometheusTarget
constructor
A new instance of PrometheusTarget.
Constructor Details
#initialize(url = nil, state = nil, labels = nil, lastscrape = nil, scrapeduration = nil, error = nil) ⇒ PrometheusTarget
Returns a new instance of PrometheusTarget.
17855 17856 17857 17858 17859 17860 17861 17862 |
# File 'lib/v20180525/models.rb', line 17855 def initialize(url=nil, state=nil, labels=nil, lastscrape=nil, scrapeduration=nil, error=nil) @Url = url @State = state @Labels = labels @LastScrape = lastscrape @ScrapeDuration = scrapeduration @Error = error end |
Instance Attribute Details
#Error ⇒ Object
up = 健康down = 不健康unknown = 未知
17853 17854 17855 |
# File 'lib/v20180525/models.rb', line 17853 def Error @Error end |
#Labels ⇒ Object
up = 健康down = 不健康unknown = 未知
17853 17854 17855 |
# File 'lib/v20180525/models.rb', line 17853 def Labels @Labels end |
#LastScrape ⇒ Object
up = 健康down = 不健康unknown = 未知
17853 17854 17855 |
# File 'lib/v20180525/models.rb', line 17853 def LastScrape @LastScrape end |
#ScrapeDuration ⇒ Object
up = 健康down = 不健康unknown = 未知
17853 17854 17855 |
# File 'lib/v20180525/models.rb', line 17853 def ScrapeDuration @ScrapeDuration end |
#State ⇒ Object
up = 健康down = 不健康unknown = 未知
17853 17854 17855 |
# File 'lib/v20180525/models.rb', line 17853 def State @State end |
#Url ⇒ Object
up = 健康down = 不健康unknown = 未知
17853 17854 17855 |
# File 'lib/v20180525/models.rb', line 17853 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 |
# File 'lib/v20180525/models.rb', line 17864 def deserialize(params) @Url = params['Url'] @State = params['State'] unless params['Labels'].nil? @Labels = [] params['Labels'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @Labels << label_tmp end end @LastScrape = params['LastScrape'] @ScrapeDuration = params['ScrapeDuration'] @Error = params['Error'] end |