내보내기(0) 인쇄
모두 확장
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

REST API for Querying Tracked Message Properties

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Once you have configured tracking as part of a bridge configuration (Configuring Operational Message Tracking through Bridges), you can use REST APIs to query the tracked data. This topic provides the REST API URL to query tracked data, along with some examples on how to frame those queries.

REST API for Querying Tracked Data

You can use the following REST interface to query tracked data:

{BridgeAddress}/tracking/{tracking_profile_name}?[query_parameters}

where,

  • BridgeAddress is the endpoint URL where the bridge is deployed

  • tracking_profile_name is the name of the tracking profile. In the current release of Service Bus EAI and EDI Labs, the profile name is always set to default and cannot be altered.

  • query_parameters are the different query parameters that can be used to get specific tracked data.

Example: https://mynamespace.servicebus.windows.net/XmlOneWayBridge1/tracking/default

Following are some specific examples for using REST interface for querying tracked data:

 

Tracking condition REST interface

Give me tracked data for this tracking ID

https://mynamespace.servicebus.windows.net/XmlOneWayBridge1/tracking/default?TrackId=<tracking_id>

Give me tracked data for all errors

https://mynamespace.servicebus.windows.net/XmlOneWayBridge1/tracking/default?$filter=EventLevel eq ‘Error’

Give me tracked data between this and this time

https://mynamespace.servicebus.windows.net/XmlOneWayBridge1/tracking/default?$filter=EventTime ge ‘2012-04-04T14:25’ and EventTime le ‘2012-04-04T14:30’

where, the time must be specified in UTC.

Give me tracked data on all records up to a particular time

https://mynamespace.servicebus.windows.net/XmlOneWayBridge1/tracking/default?$filter=EventTime le ‘2012-04-04T14:27’

where, the time must be specified in UTC.

Give me tracked data on all records after a particular time

https://mynamespace.servicebus.windows.net/XmlOneWayBridge1/tracking/default?$filter=EventTime ge ‘2012-04-04T14:27’

where, the time must be specified in UTC.

Give me tracked data on all errors between this and this time

https://mynamespace.servicebus. windows.net/XmlOneWayBridge1/tracking/default?$filter=EventLevel eq ‘Error’ and EventTime ge ‘2012-04-04T14:25’ and EventTime le ‘2012-04-04T14:30’

where, the time must be specified in UTC.

noteNote
In general you can use the $filter option in conjunction with the operators to construct the queries.

See Also

© 2011 Microsoft Corporation. All rights reserved.
표시:
© 2014 Microsoft