BazeField Services

<back to all web services

ReadMeasurementMetaData

Measurement API
Requires Authentication
The following routes are available for this service:
GET,POST/measurements/{Keys}/metadata
namespace Bazefield.Measurements.WebService

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ReadMeasurementMetaData() = 
        interface IPost
        member val Keys:String[] = null with get,set
        member val MaxResults:Nullable<Int32> = new Nullable<Int32>() with get,set

F# ReadMeasurementMetaData DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /measurements/{Keys}/metadata HTTP/1.1 
Host: monitoring.ox2.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	keys: 
	[
		String
	],
	maxResults: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	{
		id: 0,
		accessType: Read,
		attributes: String,
		coerceType: None,
		description: String,
		deviceId: 0,
		driverSource: String,
		engineDeadBand: 0,
		engineId: 0,
		euFullScale: 0,
		euZeroScale: 0,
		initialNumericValue: 0,
		initialStringValue: String,
		inverted: False,
		ioDataType: Default,
		ioServerId: 0,
		itemId: 0,
		libraryId: 0,
		logData: False,
		logDeadBand: 0,
		logResolution: String,
		logType: Always,
		memoryDataType: Default,
		originalName: String,
		parameterTypeId: 0,
		rawFullScale: 0,
		rawZeroScale: 0,
		scaleEquation: String,
		scaleType: None,
		setInitialValue: False,
		tagId: 0,
		tagName: String,
		tagStatus: String,
		tagType: NON_CONTROL,
		unitId: 0,
		unitName: String,
		update: 0,
		userId: 0,
		createdOn: 0001-01-01,
		databaseId: 0,
		deviceGuid: 00000000-0000-0000-0000-000000000000,
		systemAttributes: String,
		disabled: False
	}
]