SoftLayer API -- local parameter of getSummaryData -


i trying cpu, memory, network data using getsummarydata. (service: softlayer_metric_tracking_object)
url:http://sldn.softlayer.com/reference/services/softlayer_metric_tracking_object/getsummarydata

"validtype" parameter of "getsummarydata" have keyname, name, summarytype, unit properties.(datatype: softlayer_container_metric_data_type)
url:http://sldn.softlayer.com/reference/datatypes/softlayer_container_metric_data_type

my question:

  1. i want know value of these parameters. know value of following. please tell me if there other value in each case.

    • in cpu case:
      keyname : cpu0,cpu1,...,cpun
      name : cpu
      summarytype: average/max/sum
    • in memory case: keyname : memory_usage
      name : memory_usage
      summarytype: average/max/sum
    • in network case:
      keyname : publicin_net_octet/publicout_net_octet/privatein_net_octet/privateout_net_octet
      name : publicin_net_octet/publicout_net_octet/privatein_net_octet/privateout_net_octet
      summarytype: average/max/sum
  2. would use "unit" parameter?
    tried change value of "unit" parameter. tried set "gb" value of "counter" no change. (please refer curl command , parameter of following )
    please tell me valid value of "unit" parameter if "unit" parameter enable.

curl

curl -k "config file" -x post -d @"parameter" 'https://api.softlayer.com/rest/v3/softlayer_metric_tracking_object/"object id"/getsummarydata.json'

parameter
pattern1

{"parameters":["08/16/2016", "08/16/2016",[{"keyname":"memory_usage","summarytype":"max","unit":"gb"}],600]}

pattern2

{"parameters":["08/16/2016", "08/16/2016",[{"keyname":"memory_usage","summarytype":"max","unit":"kb"}],600]}

pattern3

{"parameters":["08/16/2016", "08/16/2016",[{"keyname":"memory_usage","summarytype":"max"}],600]}

additional:

executed "getmetricdatatypes".
keyname , name ok summarytype counter , average only. sum , max nothing.
there other summarytype?

to values parameters, try method:

regarding unit property:

unfortunately, it's not possible set property other kind of type of value


Comments