ResourceMetric interface

Object representing a metric for any resource .

Properties

endTime

Metric end time. NOTE: This property will not be serialized. It can only be populated by the server.

id

Resource Id. NOTE: This property will not be serialized. It can only be populated by the server.

metricValues

Metric values. NOTE: This property will not be serialized. It can only be populated by the server.

name

Name of metric. NOTE: This property will not be serialized. It can only be populated by the server.

properties

Resource metric properties collection. NOTE: This property will not be serialized. It can only be populated by the server.

resourceId

Metric resource Id. NOTE: This property will not be serialized. It can only be populated by the server.

startTime

Metric start time. NOTE: This property will not be serialized. It can only be populated by the server.

timeGrain

Metric granularity. E.g PT1H, PT5M, P1D NOTE: This property will not be serialized. It can only be populated by the server.

unit

Metric unit. NOTE: This property will not be serialized. It can only be populated by the server.

Property Details

endTime

Metric end time. NOTE: This property will not be serialized. It can only be populated by the server.

endTime?: Date

Property Value

Date

id

Resource Id. NOTE: This property will not be serialized. It can only be populated by the server.

id?: string

Property Value

string

metricValues

Metric values. NOTE: This property will not be serialized. It can only be populated by the server.

metricValues?: ResourceMetricValue[]

Property Value

name

Name of metric. NOTE: This property will not be serialized. It can only be populated by the server.

name?: ResourceMetricName

Property Value

properties

Resource metric properties collection. NOTE: This property will not be serialized. It can only be populated by the server.

properties?: ResourceMetricProperty[]

Property Value

resourceId

Metric resource Id. NOTE: This property will not be serialized. It can only be populated by the server.

resourceId?: string

Property Value

string

startTime

Metric start time. NOTE: This property will not be serialized. It can only be populated by the server.

startTime?: Date

Property Value

Date

timeGrain

Metric granularity. E.g PT1H, PT5M, P1D NOTE: This property will not be serialized. It can only be populated by the server.

timeGrain?: string

Property Value

string

unit

Metric unit. NOTE: This property will not be serialized. It can only be populated by the server.

unit?: string

Property Value

string