text: # Licensed to the Apache Software Foundation (ASF) under one
  # or more contributor license agreements.  See the NOTICE file
  # distributed with this work for additional information
  # regarding copyright ownership.  The ASF licenses this file
  # to you under the Apache License, Version 2.0 (the
  # "License"); you may not use this file except in compliance
  # with the License.  You may obtain a copy of the License at
  #
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  #
  # Unless required by applicable law or agreed to in writing,
  # software distributed under the License is distributed on an
  # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  # KIND, either express or implied.  See the License for the
  # specific language governing permissions and limitations
  # under the License.
  
  from aliyunsdkcore.request import RpcRequest
  from aliyunsdkarms.endpoint import endpoint_data
  
  class QueryMetricRequest(RpcRequest):
  
  	def __init__(self):
  		RpcRequest.__init__(self, 'ARMS', '2019-08-08', 'QueryMetric','arms')
  		if hasattr(self, "endpoint_map"):
  			setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
  		if hasattr(self, "endpoint_regional"):
  			setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
  
  
  	def get_Measuress(self):
  		return self.get_query_params().get('Measuress')
  
  	def set_Measuress(self,Measuress):
  		for i in range(len(Measuress)):	
  			if Measuress[i] is not None:
  				self.add_query_param('Measures.' + str(i + 1) , Measuress[i]);
  
  	def get_IntervalInSec(self):
  		return self.get_query_params().get('IntervalInSec')
  
  	def set_IntervalInSec(self,IntervalInSec):
  		self.add_query_param('IntervalInSec',IntervalInSec)
  
  	def get_Metric(self):
  		return self.get_query_params().get('Metric')
  
  	def set_Metric(self,Metric):
  		self.add_query_param('Metric',Metric)
  
  	def get_Limit(self):
  		return self.get_query_params().get('Limit')
  
  	def set_Limit(self,Limit):
  		self.add_query_param('Limit',Limit)
  
  	def get_EndTime(self):
  		return self.get_query_params().get('EndTime')
  
  	def set_EndTime(self,EndTime):
  		self.add_query_param('EndTime',EndTime)
  
  	def get_OrderBy(self):
  		return self.get_query_params().get('OrderBy')
  
  	def set_OrderBy(self,OrderBy):
  		self.add_query_param('OrderBy',OrderBy)
  
  	def get_StartTime(self):
  		return self.get_query_params().get('StartTime')
  
  	def set_StartTime(self,StartTime):
  		self.add_query_param('StartTime',StartTime)
  
  	def get_Filterss(self):
  		return self.get_query_params().get('Filterss')
  
  	def set_Filterss(self,Filterss):
  		for i in range(len(Filterss)):	
  			if Filterss[i].get('Value') is not None:
  				self.add_query_param('Filters.' + str(i + 1) + '.Value' , Filterss[i].get('Value'))
  			if Filterss[i].get('Key') is not None:
  				self.add_query_param('Filters.' + str(i + 1) + '.Key' , Filterss[i].get('Key'))
  
  
  	def get_Dimensionss(self):
  		return self.get_query_params().get('Dimensionss')
  
  	def set_Dimensionss(self,Dimensionss):
  		for i in range(len(Dimensionss)):	
  			if Dimensionss[i] is not None:
  				self.add_query_param('Dimensions.' + str(i + 1) , Dimensionss[i]);
  
  	def get_Order(self):
  		return self.get_query_params().get('Order')
  
  	def set_Order(self,Order):
  		self.add_query_param('Order',Order)