#Enter the correct dataset ID, which can be found on the ARMS dataset management page.

armsQueryDataSetRequest.set_DatasetId(12221L)

#Set the query interval. In this example, it is 60s.

armsQueryDataSetRequest.set_IntervalInSec(60)

#Set the query interval. In this example, it is the last one hour. Note that the unit is ms and the value must be an integer.

armsQueryDataSetRequest.set_MinTime(int(time.time()*1000)-3600000)

armsQueryDataSetRequest.set_MaxTime(int(time.time()*1000))

// ****Insert the code of Example 2, 3, and 4 here.****

#Send the request.

armsQueryDataSetResponse = clt.do_action(armsQueryDataSetRequest)

#Print the response.

print armsQueryDataSetResponse

if __name__ =='__main__':

main()

Select the first dimension, and set the dimension value to an empty string (“”) and the dimension type to “ALL”.The data grouped by the first dimension is returned.

dimensions =[{"Key":"Region","Value":"","Type":"ALL"}]

armsQueryDataSetRequest.set_Dimensionss(dimensions)

Select the first dimension, and set the dimension value to a fixed value, for example “hangzhou”, and set the dimension type to “STATIC” (fixed value).The data of hangzhou is returned based on the first dimension:

dimensions =[{"Key":"Region","Value":"hangzhou","Type":"STATIC"}]

armsQueryDataSetRequest.set_Dimensionss(dimensions)

Select the measure list to be queried. Only the specified measures are returned.