ElixirBceSdk.Bcm.Client (elixir_bce_sdk v0.2.1)
Baidu Cloud Monitor related operations
Link to this section Summary
Functions
Return metric data of product instances owned by the authenticated user.
Link to this section Functions
get_metric_data(scope, metric_name, dimensions, statistics \\ "average", start_time \\ nil, end_time \\ nil, period_in_second \\ nil)
Specs
get_metric_data( String.t(), String.t(), String.t(), String.t(), String.t(), String.t(), integer() ) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t()}
Return metric data of product instances owned by the authenticated user.
This site may help you: https://cloud.baidu.com/doc/BCM/s/9jwvym3kb
:param scope: Cloud product namespace, eg: BCE_BCC. :type scope: string
:param metric_name: The metric name of baidu cloud monitor, eg: CpuIdlePercent. :type metric_name: string
:param dimensions: Consists of dimensionName: dimensionValue. Use semicolons when items have multiple dimensions, such as dimensionName: dimensionValue; dimensionName: dimensionValue. Only one dimension value can be specified for the same dimension. eg: InstanceId:fakeid-2222 :type dimensions: string
:param statistics:
According to the format of statistics1,statistics2,statistics3,
the optional values are average, maximum, minimum, sum, sampleCount
:type statistics: string
:param start_time: Query start time. Please refer to the date and time, UTC date indication :type start_time: string
:param end_time: Query end time. Please refer to the date and time, UTC date indication
:type end_time: string
:param period_in_second: Statistical period. Multiples of 60 in seconds (s). :type period_in_second: int