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.
16516 16517 16518 16519 16520 16521 16522 16523 |
# File 'lib/v20180525/models.rb', line 16516 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 = 未知
16514 16515 16516 |
# File 'lib/v20180525/models.rb', line 16514 def Error @Error end |
#Labels ⇒ Object
up = 健康 down = 不健康 unknown = 未知
16514 16515 16516 |
# File 'lib/v20180525/models.rb', line 16514 def Labels @Labels end |
#LastScrape ⇒ Object
up = 健康 down = 不健康 unknown = 未知
16514 16515 16516 |
# File 'lib/v20180525/models.rb', line 16514 def LastScrape @LastScrape end |
#ScrapeDuration ⇒ Object
up = 健康 down = 不健康 unknown = 未知
16514 16515 16516 |
# File 'lib/v20180525/models.rb', line 16514 def ScrapeDuration @ScrapeDuration end |
#State ⇒ Object
up = 健康 down = 不健康 unknown = 未知
16514 16515 16516 |
# File 'lib/v20180525/models.rb', line 16514 def State @State end |
#Url ⇒ Object
up = 健康 down = 不健康 unknown = 未知
16514 16515 16516 |
# File 'lib/v20180525/models.rb', line 16514 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 |
# File 'lib/v20180525/models.rb', line 16525 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 |