Read (GET) a PerformanceData [SPFSDK][VMMREF]
Applies To: Windows Azure Pack
Get a PerformanceData [SPFSDK][VMMREF] entity by using the HTTP GET operation.
Here is a list of examples related to this collection operation.
For more information about returning multiple entities, see Common GET HTTP Info.
For more information about the placeholders used in the URI, see URL placeholders.
Method | Request URI | HTTP Version |
|---|---|---|
GET | https://{server-name}:{auth-port}/{subscription-id}/services/systemcenter/vmm/PerformanceData(StampId=Guid'[value]', VMId=Guid'[value]') | HTTP/1.1 |
URI Parameter | Description |
|---|---|
StampId | Required. [Edm.Guid] The type identifier of the stamp that restricts the query. You require a value for this parameter to read a specific entity. |
VMId | Required. [Edm.Guid] The type identifier of the virtual machine. |
This operation does not use any non-standard request headers.
For more information about the common request headers used by this operation, see Common HTTP request information.
None
This operation does not return any non-standard OData response codes. If successful, it will return code 200 OK.
This operation does not use any non-standard response headers.
For more information about the common response headers used by this operation, see Common HTTP response information.
The response body will contain either (depending on the request headers) an XML or JSON encoded PerformanceData [SPFSDK][VMMREF] entity or entities. Here is the response body of a single entity.
This example reads the performance data of a virtual machine.
For more information about how to get started with using the code examples provided in this programming guide, see Program in Visual Studio with the Windows Azure Pack IaaS Resource Provider [SPFSDK].
Guid stampId = new Guid("d70c1a9b-c241-48f5-880a-b6c36071e653"); Guid vmId = new Guid("c6cd770c-ae05-46bc-868a-c83af9363cd9"); var perf = vmmService.PerformanceData.Where(j => j.StampId == stampId && j.VMId == vmId).First();
GET https://contoso.com:30005/ae122d5f-3aab-4d75-ad48-d6593246a49e/services/systemcenter/vmm/PerformanceData()?$filter=StampId%20eq%20guid'd70c1a9b-c241-48f5-880a-b6c36071e653'%20and%20VMId%20eq%20guid'c6cd770c-ae05-46bc-868a-c83af9363cd9'&$top=1 HTTP/1.1
DataServiceVersion: 1.0;NetFx
MaxDataServiceVersion: 3.0;NetFx
Accept: application/json;odata=minimalmetadata
Accept-Charset: UTF-8
DataServiceUrlConventions: KeyAsSegment
User-Agent: Microsoft ADO.NET Data Services
Authorization: Bearer {ENCODED AUTHENTICATION TOKEN}
x-ms-principal-id: tenant@fabrikam.com
Host: contoso.com:30005
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 6041
Content-Type: application/json; odata=minimalmetadata; streaming=true; charset=utf-8
Server: Microsoft-IIS/8.5
X-Content-Type-Options: nosniff
request-id: d3df681c-b278-0000-7364-e3d378b2cf01
DataServiceVersion: 3.0;
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Powered-By: ASP.NET
Date: Fri, 10 Oct 2014 21:05:12 GMT
{"odata.metadata":"https://contoso.com:30005/ae122d5f-3aab-4d75-ad48-d6593246a49e/services/systemcenter/vmm/$metadata#PerformanceData","value":[{"PerformanceHistory":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"TimeSamples":["2014-10-09T14:07:58.863","2014-10-09T14:16:59.123","2014-10-09T14:25:58.73","2014-10-09T14:34:58.61","2014-10-09T14:43:58.93","2014-10-09T14:52:57.87","2014-10-09T15:01:59.477","2014-10-09T15:10:58.143","2014-10-09T15:19:59.147","2014-10-09T15:28:58.04","2014-10-09T15:37:59.577","2014-10-09T15:46:58.043","2014-10-09T15:55:58.83","2014-10-09T16:04:58.16","2014-10-09T16:13:59.503","2014-10-09T16:22:58.453","2014-10-09T16:32:00.347","2014-10-09T16:40:58.843","2014-10-09T16:49:58.96","2014-10-09T16:58:59.5","2014-10-09T17:07:59.623","2014-10-09T17:16:58.11","2014-10-09T17:25:59.38","2014-10-09T17:34:58.11","2014-10-09T17:43:59.223","2014-10-09T17:52:57.977","2014-10-09T18:01:59.99","2014-10-09T18:10:58.15","2014-10-09T18:19:59.093","2014-10-09T18:28:58.733","2014-10-09T18:37:59.45","2014-10-09T18:46:58.943","2014-10-09T18:55:59.17","2014-10-09T19:05:00.403","2014-10-09T19:13:59.28","2014-10-09T19:22:58.27","2014-10-09T19:31:59.21","2014-10-09T19:41:01.133","2014-10-09T19:49:59.38","2014-10-09T19:59:01.837","2014-10-09T20:07:59.857","2014-10-09T20:16:58.313","2014-10-09T20:25:59.46","2014-10-09T20:34:58.457","2014-10-09T20:43:59.223","2014-10-09T20:52:58.057","2014-10-09T21:01:59.24","2014-10-09T21:10:58.957","2014-10-09T21:19:58.75","2014-10-09T21:28:58.72","2014-10-09T21:38:00.333","2014-10-09T21:47:00.097","2014-10-09T21:55:59.983","2014-10-09T22:04:58.56","2014-10-09T22:13:59.477","2014-10-09T22:22:58.323","2014-10-09T22:32:01.383","2014-10-09T22:40:58.067","2014-10-09T22:49:59.693","2014-10-09T22:58:58.83","2014-10-09T23:08:00.463","2014-10-09T23:16:59.28","2014-10-09T23:25:59.457","2014-10-09T23:34:58.643","2014-10-09T23:43:58.737","2014-10-09T23:52:58.17","2014-10-10T00:01:58.83","2014-10-10T00:10:58","2014-10-10T00:19:59.08","2014-10-10T00:28:58.01","2014-10-10T00:37:59.637","2014-10-10T00:46:58.147","2014-10-10T00:55:59.387","2014-10-10T01:04:58.17","2014-10-10T01:13:59.13","2014-10-10T01:22:57.793","2014-10-10T01:31:58.94","2014-10-10T01:40:58.24","2014-10-10T01:49:58.883","2014-10-10T01:58:58.657","2014-10-10T02:07:59.007","2014-10-10T02:16:58.86","2014-10-10T02:25:58.643","2014-10-10T02:34:58.173","2014-10-10T02:43:58.8","2014-10-10T02:52:57.81","2014-10-10T03:01:59.41","2014-10-10T03:10:59.39","2014-10-10T03:19:59.98","2014-10-10T03:28:58.127","2014-10-10T03:37:59.343","2014-10-10T03:46:58.157","2014-10-10T03:55:58.777","2014-10-10T04:04:58.403","2014-10-10T04:13:58.853","2014-10-10T04:22:58.277","2014-10-10T04:31:59.093","2014-10-10T04:40:58.7","2014-10-10T04:49:58.82","2014-10-10T04:58:58.147","2014-10-10T05:07:59.19","2014-10-10T05:16:58.61","2014-10-10T05:25:59.04","2014-10-10T05:34:58.16","2014-10-10T05:43:59.493","2014-10-10T05:52:57.947","2014-10-10T06:01:59.977","2014-10-10T06:10:58.217","2014-10-10T06:19:59.817","2014-10-10T06:28:59.017","2014-10-10T06:38:00.77","2014-10-10T06:46:59.157","2014-10-10T06:55:59.507","2014-10-10T07:04:59.607","2014-10-10T07:13:58.923","2014-10-10T07:22:58.87","2014-10-10T07:31:59.52","2014-10-10T07:40:58.323","2014-10-10T07:49:59.707","2014-10-10T07:58:58.233","2014-10-10T08:07:59.81","2014-10-10T08:16:58.1","2014-10-10T08:25:58.887","2014-10-10T08:34:58.007","2014-10-10T08:44:02.197","2014-10-10T08:52:58.567","2014-10-10T09:01:59.263","2014-10-10T09:10:58.773","2014-10-10T09:19:59.123","2014-10-10T09:28:58.803","2014-10-10T09:37:59.013","2014-10-10T09:46:58.83","2014-10-10T09:55:59.833","2014-10-10T10:05:01.073","2014-10-10T10:13:59.473","2014-10-10T10:22:58.027","2014-10-10T10:31:59.64","2014-10-10T10:40:58.08","2014-10-10T10:50:00.09","2014-10-10T10:58:58.1","2014-10-10T11:07:59.007","2014-10-10T11:16:58.56","2014-10-10T11:25:58.57","2014-10-10T11:34:58.657","2014-10-10T11:43:58.8","2014-10-10T11:52:58.443","2014-10-10T12:01:58.863","2014-10-10T12:10:58.367","2014-10-10T12:19:58.953","2014-10-10T12:28:58.103","2014-10-10T12:37:59.5","2014-10-10T12:46:58.06","2014-10-10T12:55:59.52","2014-10-10T13:04:58.12","2014-10-10T13:13:59.413","2014-10-10T13:22:57.77","2014-10-10T13:31:58.777","2014-10-10T13:40:58.533","2014-10-10T13:49:59.04","2014-10-10T13:58:58.71","2014-10-10T14:07:59.013","2014-10-10T14:16:59.35","2014-10-10T14:25:59.15","2014-10-10T14:34:58.603","2014-10-10T14:43:58.84","2014-10-10T14:52:57.96","2014-10-10T15:01:59.327","2014-10-10T15:10:58.327","2014-10-10T15:19:59.687","2014-10-10T15:28:58.333","2014-10-10T15:37:59.303","2014-10-10T15:46:58.267","2014-10-10T15:55:58.727","2014-10-10T16:04:58.67","2014-10-10T16:13:58.81","2014-10-10T16:22:58.26","2014-10-10T16:31:58.873","2014-10-10T16:40:58.973","2014-10-10T16:49:59.077","2014-10-10T16:58:58.773","2014-10-10T17:07:59.157","2014-10-10T17:16:58.15","2014-10-10T17:25:59.163","2014-10-10T17:34:59.213","2014-10-10T17:44:00.237","2014-10-10T17:53:06.92","2014-10-10T18:02:00.64","2014-10-10T18:10:59.09","2014-10-10T18:20:00.513","2014-10-10T18:29:01.013","2014-10-10T18:38:00.657","2014-10-10T18:46:58.913","2014-10-10T18:55:59.327","2014-10-10T19:04:58.973","2014-10-10T19:14:01.11","2014-10-10T19:22:58.39","2014-10-10T19:31:59.223","2014-10-10T19:40:59.133","2014-10-10T19:49:59.403","2014-10-10T19:58:58.773","2014-10-10T20:08:01.373","2014-10-10T20:16:59.067","2014-10-10T20:25:59.527","2014-10-10T20:34:58.893","2014-10-10T20:43:59.643","2014-10-10T20:52:59.6","2014-10-10T21:02:02.837"],"TimeFrame":"Hour","PerformanceCounter":"CPUUsage","VMId":"c6cd770c-ae05-46bc-868a-c83af9363cd9","StampId":"d70c1a9b-c241-48f5-880a-b6c36071e653"}]}