Return all metric definitions

Returns all metric definitions.

Method Request URI HTTP Version

GET

https://service-endpoint/services/{service-type}/metricdefinitions

HTTP/1.1

Sample Request

The Request body is empty.

Sample XML Response

  Copy Code
<MetricDefinitions xmlns="http://schemas.microsoft.com/windowsazure">
	<MetricDefinition>
		<MetricAvailabilities>
			<MetricAvailabilily>
				<Retention>P428DT10H30M12.3S</Retention>
				<TimeGrain>P428DT10H30M12.3S</TimeGrain>
			</MetricAvailabilily>
			<MetricAvailabilily>
				<Retention>P428DT10H30M12.3S</Retention>
				<TimeGrain>P428DT10H30M12.3S</TimeGrain>
			</MetricAvailabilily>
		</MetricAvailabilities>
		<Name>String content</Name>
		<PrimaryAggregationType>String content</PrimaryAggregationType>
		<Unit>String content</Unit>
	</MetricDefinition>
	<MetricDefinition>
		<MetricAvailabilities>
			<MetricAvailabilily>
				<Retention>P428DT10H30M12.3S</Retention>
				<TimeGrain>P428DT10H30M12.3S</TimeGrain>
			</MetricAvailabilily>
			<MetricAvailabilily>
				<Retention>P428DT10H30M12.3S</Retention>
				<TimeGrain>P428DT10H30M12.3S</TimeGrain>
			</MetricAvailabilily>
		</MetricAvailabilities>
		<Name>String content</Name>
		<PrimaryAggregationType>String content</PrimaryAggregationType>
		<Unit>String content</Unit>
	</MetricDefinition>
</MetricDefinitions>

Sample JSON Response

  Copy Code
[
	{
		"MetricAvailabilities": [
			{
				"Retention": "P428DT10H30M12.3S",
				"TimeGrain": "P428DT10H30M12.3S"
		}
		],
		"Name": "String content",
		"PrimaryAggregationType": "String content",
		"Unit": "String content"
}
]