|
ChannelResourceSetMonitorData Method |
Sets the Monitor Data element for this channel when viewed through the Voice Elements Dashboard. This is a collection of data elements you define to communicate from your application through the VE Dashboard.
Namespace:
VoiceElements.Client
Assembly:
VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax public void SetMonitorData(
string key,
string value,
bool clearFlag
)
Public Sub SetMonitorData (
key As String,
value As String,
clearFlag As Boolean
)
public:
void SetMonitorData(
String^ key,
String^ value,
bool clearFlag
)
member SetMonitorData :
key : string *
value : string *
clearFlag : bool -> unit
Parameters
- key
- Type: SystemString
This is the key of the data element you wish to add or change. Some samples are: "Agent ID", "Phone Number", "ANI" - value
- Type: SystemString
This is any string value you wish to convey through the dashboard as the value of the key changes. - clearFlag
- Type: SystemBoolean
This flag will clear the previous data in the key if true. False will add a new key if the one specified exists.
Remarks
This is an arbitrary collection of key value pairs that will appear associated with this channel of the application through the
Voice Elements Dashbaord. Usually you would set these to information about the channel, like
"phone number", "agent ID" or something meaningful for the dashbaord user for this channel and current inforation about the channel. For more information on using the dashboard, see
Using the Voice Elements Dashboard. Note that
you can also set the status element for the channel in the dashboard using the
Set Monitor Status Method.
Examples
The example below shows a setting the status and data elements for the channel for the dashboard.
public void SetupChannelForDashBoard()
{
TelephonyServer m_TelephonyServer = new TelephonyServer();
ChannelResource m_ChannelResource = m_TelephonyServer.GetChannel();
m_ChannelResource.SetMonitorStatus("Available");
m_ChannelResource.SetMonitorData("AgentID", "1", true);
m_ChannelResource.SetMonitorData("AgentName", "Bugs Bunny", true);
}
Public Sub SetupChannelForDashBoard()
Dim m_TelephonyServer As New TelephonyServer()
Dim m_ChannelResource As ChannelResource = m_TelephonyServer.GetChannel()
m_ChannelResource.SetMonitorStatus("Available")
m_ChannelResource.SetMonitorData("AgentID", "1", True)
m_ChannelResource.SetMonitorData("AgentName", "Bugs Bunny", True)
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also