700136a epro61 osms api ref guide

508
Aspect ® EnsembleProOSMS API Reference Guide 6.1

Upload: pkudalkar

Post on 06-Mar-2015

387 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: 700136a Epro61 Osms API Ref Guide

Aspect® EnsemblePro™

OSMS API Reference Guide 6.1

Page 2: 700136a Epro61 Osms API Ref Guide

© 2006 Aspect Software, Inc. All Rights Reserved. Unauthorized Reproduction Prohibited By Law.

The content of this publication is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Aspect Software, Inc. Aspect Software, Inc. assumes no responsibility or liability for any errors or inaccuracies that may appear in this publication. Aspect Software Inc., reserves the right to change information in this publication without notice, as a result of product enhancements or other reasons.

Aspect, Aspect Software and design, Aspect Communications, Aspect TeleSet, Aspect CallCenter, Aspect WinSet, Concerto, Concerto Software, Concerto Software and design, Unison, Continuum, SoftPhone, Sixth Sense, Smart Button, SMC, Smart Management Center, CRS, Communications Resource Server, CAS, Unison Scale, EnsemblePro, RightForce, Spectrum, LYRICall, Compose IT, Intuition, SmartRoute, Shadow, AnswerSoft, One Station, Unison Strategist, Unison Tactician, Ensemble, ContactPro and CellIt are trademarks or registered trademarks of Aspect or its affiliates in the United States and other countries. All other trademarks are owned by their respective companies. Use of any Aspect trademark is subject to Aspect’s express written approval. Any other tradenames, logos, trademarks, and/or service marks used in this publication are the property of their respective owners.

The works of authorship contained in this publication, including but not limited to all design, text and images and the software described herein, are owned, except as otherwise expressly stated, by Aspect Software, Inc., or its affiliates or licensors. The entire contents of this publication are protected by United States’ and worldwide copyright laws and treaty provisions. In accordance with these terms, except as stated above, you may not copy, reproduce, modify, use, republish, upload, post, transmit or distribute in any way material from the publication. Further, you may not copy, modify or display any of Aspect Software, Inc.’s or its affiliates’ trademarks, tradenames or logos appearing in this publication in any way without Aspect Software, Inc.’s express written consent. Aspect Software, Inc. assumes no responsibility or liability for any errors or inaccuracies that may appear in this publication. Except as permitted by such license, no part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, or otherwise, without the prior written permission of Aspect Software, Inc.

RESTRICTED RIGHTS LEGEND

This publication is provided with “Restricted Rights.” No part of this publication may be photocopied, reproduced or transmitted, in any form or by any means, without the prior written consent of Aspect Software, Inc. Use, duplication, or disclosure by the United States Government is subject to the restrictions set forth in DFARS 252.227-7013 (c)(1)(ii) and FAR 52.227-19. Use of the materials by the Government constitutes acknowledgement of Aspect’s proprietary rights in them. Aspect Software, Inc. is located at 6 Technology Park Drive, Westford, MA 01886 USA.

NO WARRANTY

THE CONTENTS OF THIS PUBLICATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF QUALITY, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.

ASPECT SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED AS A RESULT OF USING THE CONTENTS OF THIS PUBLICATION. IN NO EVENT SHALL ASPECT BE LIABLE FOR ANY INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGE (INCLUDING LOSS OF BUSINESS, REVENUE, PROFITS, USE, DATA OR OTHER ECONOMIC ADVANTAGE) HOWEVER IT ARISES, WHETHER FOR BREACH OR IN TORT, EVEN IF ASPECT HAS BEEN PREVIOUSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. BECAUSE SOME JURISDICTIONS PROHIBIT THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU.

Part Number: 700136A

Date: September 27, 2006

Page 3: 700136a Epro61 Osms API Ref Guide

Protected by one or more of the following US patents:

7085719 7085368 7080321 7075900 7068775 7068642 7058578 7058169

7050820 7046789 7043521 7043009 7043007 7027585 7027572 7010115 7003462

6990524 6981256 6981256 6970821 6970559 6968368 6961419 6959080 6947988

6944677 6941320 6934277 6931119 6931112 6925633 6925607 6914896 6901077

6889222 6889195 6885744 6883170 6879674 6871212 6870926 6870925 6868395

6868153 6865716 6865267 6856680 6853721 6850614 6850613 6842515 6832203

6816880 6816733 6813636 6810077 6804668 6798766 5347574 6785379 6778951

6778660 6775378 6771764 6771746 6766012 6766011 6760745 6760323 6754332

6754327 6754236 6751310 6751211 6748074 6744879 6744878 6731609 6721778

6718022 6708215 6708039 6707906 6704409 6678718 6678266 6657990 6654798

6654458 5249219 6625259 6621899 6618477 6614906 6603775 6600821 6598078

6598021 6590971 6587557 6584191 6577727 6574332 6574330 6549769 6546097

6546023 6545589 6539538 6510180 5181243 6496580 6480601 6477559 6453164

5148478 6449646 6449356 6449286 6442269 6438710 6438599 6430597 6430271

6424711 6424709 6411708 6411682 6408302 6385637 6370161 6366665 6362838

6359892 6356948 6349137 6345094 6345093 6333980 6332082 6330327 6330243

6314089 6308154 6298356 6295354 6289373 6289333 6289083 6286129 6282284

6266407 6259770 6256620 6247142 6246759 6243092 6236723 6233333 6225998

6222919 6201950 6192118 6185283 6181366 6167128 6160807 6157932 6151357

6144971 6141412 6122484 6122161 6118763 6104912 6102970 6100873 6097806

6094673 6092036 6091801 6084950 6084947 6084943 6083280 6072806 6067443

6061347 6047054 6046994 6044145 6044140 6041116 6038308 6028925 6026158

6026157 6026156 6026153 6026149 6021190 6005932 RE36416 5991394 5991382

5978465 5970135 5963635 5949656 5946386 5940494 5933828 5925101 5924016

5923747 5923746 5923729 5910983 5907611 5907600 5905779 5901215 5889799

4809321 5870464 5864615 RE36051 5857018 5857014 5854832 5852649 5842112

5841837 5838779 5832070 5832068 5832059 5831665 5828731 5825867 5822400

5822265 5818909 5815565 5812553 5798901 5790650 5790635 5784452 5778359

5761285 5754636 5752191 5751760 5737405 5729600 5729593 5724420 5724419

5724408 5715307 5715306 5712954 5696818 5694453 5677912 5675637 5673299

5666401 5652791 5648891 5640577 5633923 5621790 5619557 5610970 5604740

5594791 5594790 5592543 5588037 5586179 5586178 5581602 5579368 5577112

5559794 5555297 5555288 5555213 5546456 5546455 5546454 5544232 5539818

5535270 5533109 5526417 5526416 5524147 5517566 5511117 5511112 5500891

5495523 5490211 5479497 5469504 5469503 5461668 5454025 5452348 5436965

5434981 5400327 5392329 5388145 5386412 5384841 5381470 5375161 5371785

5365581 5355327 5355090 5353343 5347512 5343518 5335269 5333961 5309513

5309505 5309504 5303298 5295184 D344521 5285400 5278898 5276732 5270699

5268903 5214692 5214688 5202899 5181236 5168519 RE37001 5164981 5140611

Page 4: 700136a Epro61 Osms API Ref Guide

Protected by one or more of the following International Patents:

5136579 5127004 5109405 5099509 5070525 5029196 5027384 5022074 5020102

5020095 4980908 4979171 4972469 4972452 4967193 4955047 4949355 4935958

4922526 4912701 4894857 4893335 4893325 4888765 4881261 4881225 4881195

4850012 4847720 4809272 4797911 4782524 4782510 4782479 4748665 4742539

4737950 4720853 4696016 4680754 4677663 4627047 4613730 4599493 4607345

4547878 4540855 4533206 4519072 4518930 4506118 4500986 4477698 4472787

4472763 4442321 4439819 4435620 4405833 4400587 4388500 4377843 4371924

4371754 4351986 4347567 4342112 4340913 4332430 4328583 4313038 4307927

Australia 663570 739200 752548 752569 753610 755956 758941

762151 771006 771032 772370 773094 773872 776586 776627

780223 781615 782128 951176 636978 673654 711295 731709

Brazil PI9102309-21

Canada 1265632 1320292 2032216 2041209 2041222 2041223 2041882

2068681 2082609 2102994 2103205 2173304 2176816 2237532 2290419

2314152 2352657 1234940 1320292 1404024 1214890 1270315 2041882

2068681 2193844 2033983 2069003

China 106186 98805309.8 99804289.7 00102891.X ZL98806219

European Patent

EP 0 460 816 EP 0 515 068 EP 0 674 418 EP 0 705 017 EP 0 707 405 EP 0 766 444 EP 1 113 688

EP 1 172 996 EP 9 590 252 EP 0 295 837 EP 0 375 119 EP 0 753 956 EP 0 768 787 EP 0 715 790 EP 0 346 434

France EP O 375 119 EP 0 295 837 EP 0 375 119 EP 0 460 816

Germany EP 69 43 0429 195 36 212 DE 38 51 182EP 0 295 837

DE 689 20 720EP 0 375 119

EP 0 460 816

Hong Kong 1161/95EP 0 295 837

951161

Ireland 83979 84076

Italy EP 0 375 119 EP 0502 104

Japan 2113979 2556948 2791233 3093822 2773979 2843149

Luxembourg EP 0 502 104

Netherlands EP 0 375 119 EP 0 460 816

New Zealand 503101 503102 503448 771006

Singapore 9591169-9EP 0 295 837

380093 390270

UnitedKingdom

EP 0 295 837 EP 0 715 790 EP 0 502 100 EP 0 375 119 766444 2252220 2255472

2257328 2265066 2270184 2270233 2270234 2272405 2272601 2272602

2273021 2273025 2273418 2273853 2283390 2293721 2378087 2379128

2381156 2383492 2386288 2386289 2387738 2387739 2392580 2393604

2393605 2394142 2402296 EP 0 375 119 EP 0 460 816 EP 0 515 068 GB2293723 GB2351203

GB2352926

Page 5: 700136a Epro61 Osms API Ref Guide

Table of Contents

About This Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxvIntended Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv

Document Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii

Organization of this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii

Related Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxviii

Chapter 1 Coding Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1

Visual Basic Coding Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1

C++ Coding Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-21

Chapter 2 Multi-Tenancy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1

Chapter 3 Monitor Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1

AgentMonitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1

AgentAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1

AgentRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2

AgentRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

AgentServices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

SummaryAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4

SummaryRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4

SummaryRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5

NotifyAdd. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5

NotifyRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6

NotifyRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6

AgentIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7

Agents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7

Aspect Software Confidential OSMS API Reference Guide

Page 6: 700136a Epro61 Osms API Ref Guide

vi | Table of Contents Aspect Software

Authenticate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-8

LoggedInAgents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-9

Sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11

Connect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-12

ConnectSpecific . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-12

MonitorId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-13

UserArguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-14

StartMessagePump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-14

NotifyMonitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-14

ServiceMonitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-15

AodAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-15

AodRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-15

AodRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-16

AcdAdd. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-16

AcdRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-17

AcdRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-17

AgdAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-18

AgdRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-18

AgdRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-19

AmdAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-19

AmdRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-20

AmdRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-20

AmdSelfServiceSummaryAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-21

AmdSelfServiceSummaryRemove. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-21

AmdSelfServiceSummaryRemoveAll. . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-22

AmdReviewSummaryAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-22

AmdReviewSummaryRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-23

AmdReviewSummaryRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-23

ChatAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-24

OSMS API Reference Guide Confidential

Page 7: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | vii

ChatRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24

ChatRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25

CtiAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25

CtiRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26

CtiRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26

DistributionListMailQueues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27

DistributionListMailQueueAdd. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28

DistributionListMailQueueRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29

DistributionListMailQueueRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29

FeedApplicationAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30

FeedApplicationRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30

FeedApplicationRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-31

FeedApplicationQueueAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-31

FeedApplicationQueueRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32

FeedApplicationQueueRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32

IvrAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33

IvrRemove. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33

IvrRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34

WorkgroupAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34

WorkgroupRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-35

WorkgroupRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-35

Workgroups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-36

NotifyStart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-36

NotifyStop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37

Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37

FeedApplications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-39

SelfServiceSummaryMailQueues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41

ReviewSummaryMailQueues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-42

Authenticate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-44

Confidential OSMS API Reference Guide

Page 8: 700136a Epro61 Osms API Ref Guide

viii | Table of Contents Aspect Software

Sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-45

Connect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-46

ConnectSpecific . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-47

MonitorId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-47

UserArguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-48

StartMessagePump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-48

TableMonitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-49

TableAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-49

TableRemove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-50

TableRemoveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-50

NotifyAdd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-51

NotifyRemove. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-51

NotifyRemoveAll. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-52

Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-52

Authenticate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-54

Sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-55

Connect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-56

ConnectSpecific . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-57

MonitorId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-57

UserArguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-58

StartMessagePump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-58

Chapter 4 Event Sink Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-1

AgentMonitorEventSink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-1

ListenToEvents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-1

SetAgentDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-2

SetSummaryDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-3

SetAgentNotifyDataArrivalHandler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-5

SetConnectionDownHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-6

OSMS API Reference Guide Confidential

Page 9: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | ix

SetConnectionUpHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7

StopListeningToEvents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8

ServiceMonitorEventSink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9

ListenToEvents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9

SetAcdDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10

SetAgdDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11

SetAodDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12

SetCtiDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14

SetIvrDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15

SetWorkgroupDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16

SetServiceNotifyDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17

SetConnectionDownHandler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18

SetConnectionUpHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19

SetChatDataArrivalHandler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-20

SetAmdDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-21

SetFeedApplicationDataArrivalHandler. . . . . . . . . . . . . . . . . . . . . . . . . . . 4-22

SetFeedApplicationQueueDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . 4-23

SetAmdSelfServiceSummaryDataArrivalHandler . . . . . . . . . . . . . . . . . . . 4-24

SetAmdReviewSummaryDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . 4-26

StopListeningToEvents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-27

TableMonitorEventSink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-28

ListenToEvents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-28

SetTableDataArrivalHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-29

SetTableNotifyDataArrivalHandler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-30

SetConnectionDownHandler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-31

SetConnectionUpHandler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-32

StopListeningToEvents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-34

Confidential OSMS API Reference Guide

Page 10: 700136a Epro61 Osms API Ref Guide

x | Table of Contents Aspect Software

Chapter 5 Data Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-1

AcdData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-1

AgentsInActive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-1

AgentsInHold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-2

AgentsInIdle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-3

AgentsInInternal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-4

AgentsInManual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-5

AgentsInNotReady . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-6

AgentsInOther . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-7

AgentsInPreview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-7

AgentsInWrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-8

AgentsLoggedIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-9

Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-10

ApplicationId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11

AvgAgentActiveTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-12

AvgAgentIdleTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-13

AvgAgentWrapTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-13

AvgSpeedOfAnswer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-14

AvgTimeInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-15

AvgTimeToAbandon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-16

CallsAbandonedBeforeQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-17

CallsAbandonedInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-18

CallsAnswered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-18

CallsInProgress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-19

CallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-20

CallsInVoiceMail. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-21

CallsOffered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-22

CallsOverflowed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-23

OSMS API Reference Guide Confidential

Page 11: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | xi

CallsRejected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23

CallsRerouted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24

CallsServicedWithinServiceLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25

CallsTransferredToAgent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26

CallsTransferredToExternal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27

CallsTransferredToService . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28

CurrentLongestQueueWaitSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28

MaxCallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-29

MaxWaitInQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30

Occupancy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31

PercentServiceWithinServiceLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-34

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-35

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-36

StartTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-36

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-37

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-38

StopTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-39

GetAcdData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-40

AgdData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-41

AgentsInActive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-41

AgentsInHold. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-42

AgentsInIdle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-42

AgentsInInternal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-43

AgentsInManual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-44

AgentsInNotReady . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-45

AgentsInOther . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-46

AgentsInWrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-47

Confidential OSMS API Reference Guide

Page 12: 700136a Epro61 Osms API Ref Guide

xii | Table of Contents Aspect Software

AgentsLoggedIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-47

Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-48

ApplicationId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-49

AvgAgentActiveTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-50

AvgAgentIdleTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-51

AvgAgentWrapTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-52

AvgSpeedOfAnswer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-53

AvgTimeInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-54

AvgTimeToAbandon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-54

CallsAnswered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-55

CallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-56

CallsOffered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-57

CallsOverflowed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-58

CallsRejected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-59

CallsRerouted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-59

CallsServicedWithinServiceLevel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-60

CallsTransferredToAgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-61

CallsTransferredToService . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-62

CurrentLongestQueueWaitSeconds. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-63

MaxCallsInQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-64

MaxWaitInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-65

Occupancy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-65

PercentServiceWithinServiceLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-66

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-67

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-68

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-69

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-70

StartTimeMilitary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-71

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-72

OSMS API Reference Guide Confidential

Page 13: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | xiii

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-73

StopTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-73

GetAgdData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-74

AgentData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-75

AcdCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-75

AgdCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-76

ChatCalls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-77

EmailCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-78

ActiveSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-78

AgentIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-79

AodCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-80

Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-81

ApplicationId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-82

ConferenceCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-83

ConsultationCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-84

CurrentServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-84

DidCalls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-85

FirstName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-86

GetAgentData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-87

HeldCalls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-88

HeldSeconds. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-89

IdleSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-89

InternalCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-90

InternalSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-91

LastDisposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-92

LastDispositionId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-93

LastName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-94

LoggedInSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-95

ManualCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-96

Confidential OSMS API Reference Guide

Page 14: 700136a Epro61 Osms API Ref Guide

xiv | Table of Contents Aspect Software

ManualSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-96

MonitoringCalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-97

NotReadySeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-98

NumberOfSales . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-99

OtherSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-100

PreviewSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-101

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-101

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-103

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-103

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-105

Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-105

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-107

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-108

StatusSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-108

StatusStartTimeMilitary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-109

TransferredCalls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-110

UserId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-111

WorkGroup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-112

WorkGroupId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-113

WrapSeconds. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-114

AmdData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-115

AgentsInActive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-115

AgentsInIdle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-116

AgentsInInternal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-117

AgentsInManual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-117

AgentsInNotReady . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-118

AgentsInOther . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-119

AgentsInWrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-120

AgentsLoggedIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-121

OSMS API Reference Guide Confidential

Page 15: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | xv

Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-122

ApplicationId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-123

AvgAgentActiveTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-123

AvgAgentIdleTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-124

AvgAgentWrapTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-125

AvgSpeedOfAnswer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-126

AvgTimeInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-127

CallsAnswered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-128

CallsAutoResponded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-128

CallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-129

CallsOffered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-130

CallsOverflowed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-131

CallsPendingProcessing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-132

CallsRerouted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-133

CallsServicedWithinServiceLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-133

CurrentLongestQueueWaitSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-134

MaxCallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-135

MaxWaitInQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-136

MessagesInReviewList . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-137

NumberOfOutboundEMails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-138

Occupancy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-139

PercentServiceWithinServiceLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-139

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-140

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-141

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-142

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-143

StartTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-144

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-145

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-146

Confidential OSMS API Reference Guide

Page 16: 700136a Epro61 Osms API Ref Guide

xvi | Table of Contents Aspect Software

StopTimeMilitary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-147

GetAmdData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-148

AmdSummaryByQueueData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-148

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-148

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-149

QueueId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-150

Queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-151

NumberOfEmails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-152

GetAmdSummaryByQueueData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-153

AodData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-154

AbandonedByCustomer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-154

AbandonedBySwitch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-155

AbandonedPercent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-156

AgentsInActive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-157

AgentsInHold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-158

AgentsInIdle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-158

AgentsInInternal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-159

AgentsInManual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-160

AgentsInNotReady . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-161

AgentsInOther . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-162

AgentsInPreview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-163

AgentsInWrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-163

AgentsLoggedIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-164

Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-165

ApplicationId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-166

AvgAgentActiveTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-167

AvgAgentIdleTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-168

AvgAgentWrapTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-169

BusyHourCallRate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-169

OSMS API Reference Guide Confidential

Page 17: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | xvii

CallsAnswered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-170

CallsDialed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-171

CallsInProgress. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-172

CallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-173

CallsTransferredToAgent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-174

CallsTransferredToExternal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-174

CallsTransferredToService . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-175

CurrentQuota . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-176

GetAodData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-177

Hangup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-177

HitRate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-178

MaxCallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-179

MaxQuota . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-180

NumberOfSales. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-180

Occupancy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-181

PeakHourCallRate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-182

PlayMessage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-183

PlayScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-184

ScheduledCallbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-184

SendDigits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-185

SendFax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-186

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-187

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-188

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-189

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-190

StartTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-191

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-191

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-193

StopTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-193

Confidential OSMS API Reference Guide

Page 18: 700136a Epro61 Osms API Ref Guide

xviii | Table of Contents Aspect Software

ChatData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-194

AgentsInActive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-194

AgentsInHold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-195

AgentsInIdle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-196

AgentsInInternal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-197

AgentsInManual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-198

AgentsInNotReady . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-199

AgentsInOther . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-199

AgentsInWrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-200

AgentsLoggedIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-201

Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-202

ApplicationId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-203

AvgAgentActiveTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-204

AvgAgentIdleTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-205

AvgAgentWrapTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-205

AvgSpeedOfAnswer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-206

AvgTimeInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-207

AvgTimeToAbandon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-208

CallsAbandonedBeforeQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-209

CallsAbandonedInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-210

CallsAnswered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-210

CallsInEmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-211

CallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-212

CallsOffered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-213

CallsOverflowed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-214

CallsRejected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-215

CallsRerouted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-215

CallsServicedWithinServiceLevel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-216

CallsTransferredToAgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-217

OSMS API Reference Guide Confidential

Page 19: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | xix

CallsTransferredToService . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-218

CurrentLongestQueueWaitSeconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-219

MaxCallsInQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-220

MaxWaitInQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-220

Occupancy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-221

PercentServiceWithinServiceLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-222

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-223

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-224

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-225

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-226

StartTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-227

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-227

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-228

StopTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-229

GetChatData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-230

CtiData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-231

DistListMailQueueData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-232

Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-233

ApplicationId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-234

DistributionList. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-235

DistributionListId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-236

EMailed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-237

EndTimeMilitary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-238

LeftToBeMailed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-239

MailQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-240

MailQueueId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-241

Selected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-242

SendFailedCount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-243

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-244

Confidential OSMS API Reference Guide

Page 20: 700136a Epro61 Osms API Ref Guide

xx | Table of Contents Aspect Software

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-245

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-246

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-247

StartTimeMilitary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-248

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-249

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-250

GetDistListMailQueueData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-251

FeedApplicationData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-251

AbandonedBySwitch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-252

Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-253

ApplicationId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-254

AverageDialRate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-255

AverageFeedRate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-256

AverageRequestRate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-257

CallsAnswered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-258

CallsDialed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-259

CallsProvided . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-260

FeedApplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-260

GetFeedApplicationData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-262

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-262

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-264

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-264

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-266

StartTimeMilitary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-266

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-267

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-269

StopTimeMilitary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-269

FeedApplicationQueueData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-270

Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-270

OSMS API Reference Guide Confidential

Page 21: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | xxi

ApplicationId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-272

AverageDialRateForNormalQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-273

AverageDialRateForMediumQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-274

AverageDialRateForHighQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-275

AverageFeedRateForNormalQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-276

AverageFeedRateForMediumQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-277

AverageFeedRateForHighQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-278

AverageRequestRateForNormalQueue . . . . . . . . . . . . . . . . . . . . . . . . . 5-279

AverageRequestRateForMediumQueue. . . . . . . . . . . . . . . . . . . . . . . . . 5-280

AverageRequestRateForHighQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-281

GetFeedApplicationQueueData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-282

NumberDeletedInNormalQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-282

NumberDeletedInMediumQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-283

NumberDeletedInHighQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-284

NumberDialedFromNormalQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-285

NumberDialedFromMediumQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-286

NumberDialedFromHighQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-287

NumberOfRecordsInNormalQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-288

NumberOfRecordsInMediumQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-289

NumberOfRecordsInHighQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-290

NumberPrioritizedInNormalQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-291

NumberPrioritizedInMediumQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-292

NumberPrioritizedInHighQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-293

NumberProvidedInNormalQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-294

NumberProvidedInMediumQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-295

NumberProvidedInHighQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-296

NumberRequestedInNormalQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-297

NumberRequestedInMediumQueue . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-298

NumberRequestedInHighQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-299

Confidential OSMS API Reference Guide

Page 22: 700136a Epro61 Osms API Ref Guide

xxii | Table of Contents Aspect Software

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-300

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-302

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-302

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-304

IvrData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-304

NotificationData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-306

AgentIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-306

Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-307

ApplicationId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-308

DistributionListId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-309

FirstName. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-309

GetNotificationData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-311

LastName. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-311

MailQueueId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-312

MailQueueIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-313

ServiceCount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-314

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-315

ServiceLong . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-316

ServiceShort. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-317

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-318

Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-319

Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-319

UserId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-320

WorkGroup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-321

WorkGroupId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-322

TableData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-323

Abandoned. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-323

Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-324

ApplicationId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-325

OSMS API Reference Guide Confidential

Page 23: 700136a Epro61 Osms API Ref Guide

Aspect Software Table of Contents | xxiii

BadPhoneNumberCount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-326

Dialed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-327

EndTimeMilitary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-328

ExcludedCount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-329

Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-329

FilterId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-330

GetTableData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-331

InProgress. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-332

LeftToBeDialed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-333

RecordsProcessed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-333

RGBusyQueueCount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-334

ScheduledCallbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-335

Selected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-336

Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-337

ServiceId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-338

ServiceTableId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-339

ServiceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-340

ServiceTypeId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-341

StartTimeMilitary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-342

Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-342

StatusId . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-343

TableId. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-345

TableName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-345

TimeZoneFailureCount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-347

Touched. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-347

WorkgroupData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-348

Chapter 6 Collection Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1

Agents Collection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1

Confidential OSMS API Reference Guide

Page 24: 700136a Epro61 Osms API Ref Guide

xxiv | Table of Contents Aspect Software

AmdSummaryByQueues Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-3

FeedApplications Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-4

Services Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-5

Sites Collection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-6

Tables Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-8

OSMS API Reference Guide Confidential

Page 25: 700136a Epro61 Osms API Ref Guide

About This Guide

The Aspect® EnsemblePro™ OSMS Client component is a set of COM objects that provide the application programmer with the ability to request and receive statistical data and EnsemblePro state information from the EnsemblePro OSMS Proxy Server in real time. These COM objects can be used in any COM-compliant language or tool. The OSMS Proxy Server is a transient data store that contains all of the information about a running EnsemblePro system. The data in the OSMS Proxy Server is updated, on a configurable basis, by the EnsemblePro CenterCord.

This technical reference describes the classes and class members that comprise the OSMS API. Use the class member descriptions in Chapters Two through Five to customize the code examples in Chapter One.

Intended Audience

This guide is designed for EnsemblePro system programmers.

You should have a basic understanding of and familiarity with the Microsoft Windows 2000 or 2003 operating system and an understanding of sophisticated software applications like Aspect EnsemblePro.

If you are a new Aspect EnsemblePro user, go to the Aspect® Education Services website for the latest training course information.

http://www.Aspect.com/Services/EducationServices.html

Document Conventions

The following typographic conventions and terms are used throughout this guide.

This: Indicates:

Bold Typeface Commands or responses you enter. Also, identifies names of windows/screens and constants.

Italic Typeface Examples. An example may not necessarily be the actual response, as each system will differ. Enter the response that is appropriate for the system on which you are currently working.

Aspect Software Confidential OSMS API Reference Guide

Page 26: 700136a Epro61 Osms API Ref Guide

xxvi Aspect Software

The following grammatical conventions are used throughout this guide.

The following graphics are used throughout this guide.

Technical Support

Aspect Software provides technical support under the Aspect Software Customer Service Agreement. If you have a question or problem that you are unable to resolve by reading the manual or online Help, call the nearest Aspect Support Center location.

Monospace Typeface Code samples and syntax.

Click Press the left mouse button. Note that your mouse may differ depending on its make and model.

Right-click Press the right mouse button.

Example Indicates

Click Save. Click the indicated button. If a button has a symbol instead of a word on it (for example, Next >>), the text will read: Click the Next button.

Select the ODBC radio button.

Single-click to choose the specified radio button.

Select the Gateway Config check box.

Single-click to choose the specified check box.

Select Tools > Options. Select Tools from the menu bar and then select Options from the drop-down menu list.

NOTE This graphic shows a note that you should be aware of.

WARNING This graphic shows a warning that you need to follow to avoid serious problems.

This: Indicates:

OSMS API Reference Guide Confidential

Page 27: 700136a Epro61 Osms API Ref Guide

Aspect Software xxvii

Prior to making the call, please be sure you can provide the following information:

• Your name and company name.

• Your Site Id.

• Your System Number.

• The name of the software application you are using.

• The version of the software you are using.

• A brief description of the problem, including any error messages that displayed, and a brief description of what you were doing when you encountered the problem.

You can contact Aspect Customer Support at:

Organization of this Guide

This guide consists of the following chapters:

• "About This Guide"—provides information about how to use this guide.

• "Chapter 1: Coding Examples"—gives Visual Basic and C++ coding examples. These exam-ples provide the framework for connecting to the OSMS and receiving statistical data. You can cut and paste this code into your application and immediately begin working with the OSMS API.

• "Chapter 2: Multi-Tenancy"—provides a description of the multi-tenancy feature and a code sample.

Location Phone Number Email

North America (except Mexico), Central America, and South America

1-800-999-4455 or1-978-952-0669

[email protected]

Mexico +52 55-9171-2001 [email protected]

Europe (except Germany), and Africa

+(44)(0) 845-6030872 [email protected]

Germany +(49)(0) 1804 668783 [email protected]

India and Middle East 1-800-999-4455 or +91 804133-5000

[email protected]

Confidential OSMS API Reference Guide

Page 28: 700136a Epro61 Osms API Ref Guide

xxviii Aspect Software

• "Chapter 3: Monitor Interfaces"—provides interfaces that give you access to requesting and receiving statistical data and state information. These interfaces point to a multithreaded COM object that provides a reliable and reestablishing socket connection to the OSMS Proxy Server. Through event handlers you are notified when connections are established and lost, and receive statistical data.

• "Chapter 4: Event Sink Interfaces"—provides interfaces used by C++ applications to sink into the events fired by Monitor objects. VB applications do not require the use of these interfaces.

• "Chapter 5: Data Interfaces"—provides interfaces that are passed through the event handlers to provide you with statistical data. These objects have many properties that give you access to the data stored within them.

• "Chapter 6: Collection Interfaces"—provides interfaces that are passed through special func-tions found in the Monitor objects. These collections provide you with state information.

Related Documents

Documents associated with this guide include:

• EnsemblePro Database Reference Guide

• EnsemblePro Enterprise Monitor User Guide

• EnsemblePro External Call Logger Interface Guide

• EnsemblePro Gateway Configurator User Guide

• EnsemblePro LYRICall Agent User Guide

• EnsemblePro LYRICall Designer User Guide

• EnsemblePro M3 Designer User Guide

• EnsemblePro Release Notes

• EnsemblePro Server Configurator User Guide

• EnsemblePro Unified Director User Guide

OSMS API Reference Guide Confidential

Page 29: 700136a Epro61 Osms API Ref Guide

Chapter 1

Coding Examples

The following Visual Basic and C++ coding examples illustrate how to use the OSMS API to connect to the server and receive statistical data. With a few simple customizations to the code, you can quickly begin developing with the OSMS API.

Visual Basic Coding Example

Private WithEvents Agent As CCPROOSMSCLIENTLib.AgentMonitor

Private WithEvents Service As CCPROOSMSCLIENTLib.ServiceMonitor

Private WithEvents Service2 As CCPROOSMSCLIENTLib.ServiceMonitor

Private WithEvents Table As CCPROOSMSCLIENTLib.NotifyMonitor

Private WithEvents System As CCPROOSMSCLIENTLib.SystemMonitor

Dim AgentConnected As Boolean

Dim ServiceConnected As Boolean

Dim Service2Connected As Boolean

Dim TableConnected As Boolean

Dim SystemConnected As Boolean

Private Sub AcdAdd_Click()

Call Service.AcdAdd(CInt(Service_Acd_Text))

End Sub

Private Sub AcdRemove_Click()

Call Service.AcdRemove(CInt(Service_Acd_Text))

End Sub

Aspect Software Confidential OSMS API Reference Guide

Page 30: 700136a Epro61 Osms API Ref Guide

1–2 | Coding Examples Aspect Software

Private Sub AcdRemoveAll_Click()

Call Service.AcdRemoveAll

End Sub

Private Sub Agent_AgentConnectionDown(ByVal iMonitorId As Long, ByVal UserArg As Long, ByVal Status As Long)

AgentNotifyList.AddItem "Connection Lost - Status " + Str(Status) + " UA " + Str(UserArg)

End Sub

Private Sub Agent_AgentConnectionUp(ByVal MonitorId As Long, ByVal UserArg As Long)

AgentNotifyList.AddItem "Connection Established " + " UA " + Str(UserArg)

End Sub

Private Sub Agent_AgentNotifyDataArrival(ByVal pNotifyData As Object, ByVal iMonitorId As Long)

Dim data As String

Dim NotifyDataObject As NotificationData

Set NotifyDataObject = pNotifyData

If AgentNotifyList.ListCount = 10 Then

AgentNotifyList.RemoveItem 0

End If

data = "AgentNotify - Service ID: " + Str(NotifyDataObject.ServiceId)

AgentNotifyList.AddItem data

Set NotifyDataObject = Nothing

End Sub

OSMS API Reference Guide Confidential

Page 31: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–3

Private Sub alertConnect_Click()

If (SystemConnected = False) Then

Set System = New SystemMonitor

System.Connect 0, "DTE15x4", 8000

SystemConnected = True

Else

Set System = Nothing

SystemConnected = False

End If

End Sub

Private Sub ANAdd_Click()

Call Agent.NotifyAdd(CInt(AN_Service_Text))

End Sub

Private Sub ANRemove_Click()

Call Agent.NotifyRemove(CInt(AN_Service_Text))

End Sub

Private Sub ANRemoveAll_Click()

Call Agent.NotifyRemoveAll

End Sub

Private Sub AodAdd_Click()

Call Service2.AodAdd(CInt(Service_Aod_Text))

End Sub

Confidential OSMS API Reference Guide

Page 32: 700136a Epro61 Osms API Ref Guide

1–4 | Coding Examples Aspect Software

Private Sub AodConnect_Click()

On Error GoTo jack

Call Service.Login("Jack-Service", "Password")

Exit Sub

jack:

MsgBox "Error Login"

End Sub

Private Sub AodRemove_Click()

Call Service2.AodRemove(CInt(Service_Aod_Text))

End Sub

Private Sub AodRemoveAll_Click()

Call Service2.AodRemoveAll

End Sub

Private Sub Auth_Click()

Dim Auth As Long

Auth = Agent.Authenticate(2010)

If Auth = 1 Then

AgentNotifyList.AddItem "Authenticated"

Else

AgentNotifyList.AddItem "NOT Authenticated"

End If

End Sub

OSMS API Reference Guide Confidential

Page 33: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–5

Private Sub cmdActiveAgent_Click()

Dim data As String

Dim AgentsCollection As Agents

Dim AgentItem As Agent

Set AgentsCollection = Agent.LoggedInAgents(Int(txtActiveAgent.Text), 0)

lstActiveAgent.Clear

For Each AgentItem In AgentsCollection

data = "Agent: " + AgentItem.UserId + " Index: " + Str(AgentItem.AgentIndex) + " Name: " + AgentItem.Name

lstActiveAgent.AddItem data

Next

End Sub

Private Sub cmdAgentConn_Click()

If (AgentConnected = False) Then

Set Agent = New AgentMonitor

AgentConnected = True

Agent.MonitorId = 2

Agent.UserArgument = 10

Agent.Connect 0, "DTE15x4", 8000

Else

Set Agent = Nothing

AgentConnected = False

End If

End Sub

Confidential OSMS API Reference Guide

Page 34: 700136a Epro61 Osms API Ref Guide

1–6 | Coding Examples Aspect Software

Private Sub cmdAgentIndex_Click()

Dim AgentIndex As Long

AgentIndex = Agent.AgentIndex(txtAgentName)

lstActiveAgent.AddItem "Agent " + txtAgentIndex + " is " + Str(AgentIndex)

End Sub

Private Sub cmdAgents_Click()

Dim data As String

Dim AgentsCollection As Agents

Dim AgentItem As Agent

Set AgentsCollection = Agent.Agents()

For Each AgentItem In AgentsCollection

data = "Agent: " + AgentItem.UserId + " Index: " + Str(AgentItem.AgentIndex) + " Name: " + AgentItem.Name

lstActiveAgent.AddItem data

Next

End Sub

Private Sub cmdAlerts_Click()

Dim data As String

Dim AlertTypesCollection As AlertTypes

Dim AlertTypeItem As AlertType

Set AlertTypesCollection = System.AlertTypes

OSMS API Reference Guide Confidential

Page 35: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–7

lstSystem.Clear

For Each AlertTypeItem In AlertTypesCollection

data = "Alert: " + Str(AlertTypeItem.AlertType) + " Desc: " + AlertTypeItem.AlertDescription

lstSystem.AddItem data

Next

End Sub

Private Sub cmdServiceConn_Click()

If (ServiceConnected = False) Then

Set Service = New ServiceMonitor

Service.MonitorId = 1

Service.UserArgument = 10

Service.Connect 0, "DTE15x4", 8000

ServiceConnected = True

Else

Set Service = Nothing

ServiceConnected = False

End If

End Sub

Private Sub cmdServices_Click()

On Error GoTo theend

Dim data As String

Dim ServiceCollection As Services

Dim ServiceItem As Service

If Service_Acd_Text = "0" Then

Set ServiceCollection = Service.Services("cellit", 1, 0, 0, 0, 0, 0, 0, 0, 0)

Confidential OSMS API Reference Guide

Page 36: 700136a Epro61 Osms API Ref Guide

1–8 | Coding Examples Aspect Software

Else

Set ServiceCollection = Service.Services("cellit", 1, 0, 0, 0, 0, 0, 0, 0, 0)

End If

For Each ServiceItem In ServiceCollection

data = "Short: " + ServiceItem.ServiceNameShort + " Long: " + ServiceItem.ServiceNameLong + " Index: " + Str(ServiceItem.ServiceId)

AcdList.AddItem data

Next

theend:

End Sub

Private Sub Command1_Click()

If (Service2Connected = False) Then

Set Service2 = New ServiceMonitor

Service2.MonitorId = 2

Service2.UserArgument = 10

Service2.Connect 0, "DTE15x4", 8000

Service2Connected = True

Else

Set Service2 = Nothing

Service2Connected = False

End If

End Sub

Private Sub Command2_Click()

On Error GoTo theend

Dim data As String

Dim ServiceCollection As Services

OSMS API Reference Guide Confidential

Page 37: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–9

Dim ServiceItem As Service

Set ServiceCollection = Service2.Services("cellit", 0, 1, 0, 0, 0, 0, 0, 0, 0)

For Each ServiceItem In ServiceCollection

data = "Short: " + ServiceItem.ServiceNameShort + " Long: " + ServiceItem.ServiceNameLong + " Index: " + Str(ServiceItem.ServiceId)

AodList.AddItem data

Next

theend:

End Sub

Private Sub Command3_Click()

Call Command2_Click

Call cmdServices_Click

Call Command2_Click

Call cmdServices_Click

Call cmdAgents_Click

Call cmdAgents_Click

Call Command2_Click

Call cmdServices_Click

Call cmdAgents_Click

End Sub

Private Sub GetTables_Click()

Dim data As String

Dim TableCollection As Tables

Dim TableItem As Table

Confidential OSMS API Reference Guide

Page 38: 700136a Epro61 Osms API Ref Guide

1–10 | Coding Examples Aspect Software

Set TableCollection = Table.Tables(Int(Table_Service_Text.Text))

TableList.Clear

For Each TableItem In TableCollection

data = " ServiceTableId: " + Str(TableItem.ServiceTableId) + " TableId: " + Str(TableItem.TableId) + " Seq#: " + Str(TableItem.SequenceNumber)

TableList.AddItem data

Next

End Sub

Private Sub LoggedInCmd_Click()

Dim data As String

Dim Size As Long

Dim LoggedInArray As Variant

LoggedInArray = Agent.LoggedIntoService(1)

Size = UBound(LoggedInArray) - LBound(LoggedInArray) + 1

data = "Size: " + Str(Size) + " Element: " + LoggedInArray(1, 1)

AgentList.AddItem data

data = "Size: " + Str(Size) + " Element: " + LoggedInArray(1, 2)

AgentList.AddItem data

data = "Size: " + Str(Size) + " Element: " + LoggedInArray(2, 1)

AgentList.AddItem data

data = "Size: " + Str(Size) + " Element: " + LoggedInArray(2, 2)

AgentList.AddItem data

data = "Size: " + Str(Size) + " Element: " + LoggedInArray(3, 1)

AgentList.AddItem data

data = "Size: " + Str(Size) + " Element: " + LoggedInArray(3, 2)

OSMS API Reference Guide Confidential

Page 39: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–11

AgentList.AddItem data

End Sub

Private Sub Service_AcdDataArrival(ByVal pAcdData As Object, ByVal iMonitorId As Long)

Dim data As String

Dim AcdDataObject As AcdData

Set AcdDataObject = pAcdData

If AcdList.ListCount = 10 Then

AcdList.RemoveItem 0

End If

data = "Acd - Service ID: " + Str(AcdDataObject.ServiceId)

AcdList.AddItem data

Set AcdDataObject = Nothing

End Sub

Private Sub Service_AodDataArrival(ByVal pAodData As Object, ByVal iMonitorId As Long)

Dim data As String

Dim AodDataObject As AodData

Set AodDataObject = pAodData

If AodList.ListCount = 10 Then

AodList.RemoveItem 0

End If

data = "Aod - Service ID: " + Str(AodDataObject.ServiceId)

Confidential OSMS API Reference Guide

Page 40: 700136a Epro61 Osms API Ref Guide

1–12 | Coding Examples Aspect Software

AodList.AddItem data

Set AodDataObject = Nothing

End Sub

Private Sub Agent_AgentDataArrival(ByVal pAgentData As Object, ByVal iMonitorId As Long)

Dim data As String

Dim AgentDataObject As AgentData

Set AgentDataObject = pAgentData

If AgentList.ListCount = 10 Then

AgentList.RemoveItem 0

End If

data = "Agent - Service ID: " + Str(AgentDataObject.ServiceId)

data = data + " Agent ID: " + Str(AgentDataObject.AgentIndex) + " " + AgentDataObject.UserId

AgentList.AddItem AgentDataObject.UserId

Set AgentDataObject = Nothing

End Sub

Private Sub Agent_SummaryDataArrival(ByVal pSummaryData As Object, ByVal iMonitorId As Long)

Dim data As String

Dim AgentDataObject As AgentData

Set AgentDataObject = pSummaryData

If AgentList.ListCount = 10 Then

OSMS API Reference Guide Confidential

Page 41: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–13

AgentList.RemoveItem 0

End If

data = "Summary - Service ID: " + Str(AgentDataObject.ServiceId)

data = data + " Agent ID: " + Str(AgentDataObject.AgentIndex)

AgentList.AddItem data

Set AgentDataObject = Nothing

End Sub

Private Sub AgentAdd_Click()

If (CInt(Agent_Service_Text) > 0) Then

Call Agent.AgentAdd(CInt(Agent_Service_Text), CInt(Agent_Agent_Text))

Else

Call Agent.SummaryAdd(CInt(Agent_Agent_Text))

End If

End Sub

Private Sub AgentRemove_Click()

If (CInt(Agent_Service_Text) > 0) Then

Call Agent.AgentRemove(CInt(Agent_Service_Text), CInt(Agent_Agent_Text))

Else

Call Agent.SummaryRemove(CInt(Agent_Agent_Text))

End If

End Sub

Private Sub AgentRemoveAll_Click()

If (CInt(Agent_Service_Text) > 0) Then

Confidential OSMS API Reference Guide

Page 42: 700136a Epro61 Osms API Ref Guide

1–14 | Coding Examples Aspect Software

Call Agent.AgentRemoveAll(CInt(Agent_Service_Text))

Else

Call Agent.SummaryRemoveAll

End If

End Sub

Private Sub Form_Load()

AgentConnected = False

ServiceConnected = False

TableConnected = False

SystemConnected = False

End Sub

Private Sub Form_Unload(Cancel As Integer)

If AgentConnected = True Then

Set Agent = Nothing

End If

If ServiceConnected = True Then

Set Service = Nothing

End If

If TableConnected = True Then

Set Table = Nothing

End If

If SystemConnected = True Then

Set System = Nothing

End If

End Sub

Private Sub Service_ServiceConnectionDown(ByVal iMonitorId As Long,

OSMS API Reference Guide Confidential

Page 43: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–15

ByVal UserArg As Long, ByVal Status As Long)

ServiceNotifyList.AddItem "Connection Lost - Status " + Str(Status) + " UA " + Str(UserArg)

End Sub

Private Sub Service_ServiceConnectionUp(ByVal iMonitorId As Long, ByVal UserArg As Long)

ServiceNotifyList.AddItem "Connection Established " + " UA " + Str(UserArg)

cmdServices_Click

End Sub

Private Sub Service_ServiceNotifyDataArrival(ByVal pNotifyData As Object, ByVal iMonitorId As Long)

Dim data As String

Dim NotifyDataObject As NotificationData

Set NotifyDataObject = pNotifyData

If ServiceNotifyList.ListCount = 10 Then

ServiceNotifyList.RemoveItem 0

End If

data = "ServiceNotify - Service ID: " + Str(NotifyDataObject.ServiceId)

ServiceNotifyList.AddItem data

Set NotifyDataObject = Nothing

End Sub

Private Sub Service2_AcdDataArrival(ByVal AcdData As Object, ByVal

Confidential OSMS API Reference Guide

Page 44: 700136a Epro61 Osms API Ref Guide

1–16 | Coding Examples Aspect Software

MonitorId As Long)

Dim data As String

Dim AcdDataObject As AcdData

Set AcdDataObject = AcdData

If AcdList.ListCount = 10 Then

AcdList.RemoveItem 0

End If

data = "Acd - Service ID: " + Str(AcdDataObject.ServiceId)

AcdList.AddItem data

Set AcdDataObject = Nothing

End Sub

Private Sub Service2_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)

Dim data As String

Dim AodDataObject As AodData

Set AodDataObject = AodData

If AodList.ListCount = 10 Then

AodList.RemoveItem 0

End If

data = "Aod - Service ID: " + Str(AodDataObject.ServiceId)

AodList.AddItem data

Set AodDataObject = Nothing

OSMS API Reference Guide Confidential

Page 45: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–17

End Sub

Private Sub Service2_ServiceConnectionDown(ByVal MonitorId As Long, ByVal UserArg As Long, ByVal Status As Long)

ServiceNotifyList.AddItem "Connection Lost - Status " + Str(Status) + " UA " + Str(UserArg)

End Sub

Private Sub Service2_ServiceConnectionUp(ByVal MonitorId As Long, ByVal UserArg As Long)

ServiceNotifyList.AddItem "Connection Established " + " UA " + Str(UserArg)

End Sub

Private Sub Service2_ServiceNotifyDataArrival(ByVal NotifyData As Object, ByVal MonitorId As Long)

Dim data As String

Dim NotifyDataObject As NotificationData

Set NotifyDataObject = pNotifyData

If ServiceNotifyList.ListCount = 10 Then

ServiceNotifyList.RemoveItem 0

End If

data = "ServiceNotify - Service ID: " + Str(NotifyDataObject.ServiceId)

ServiceNotifyList.AddItem data

Set NotifyDataObject = Nothing

End Sub

Confidential OSMS API Reference Guide

Page 46: 700136a Epro61 Osms API Ref Guide

1–18 | Coding Examples Aspect Software

Private Sub StartCommand_Click()

Call Service.NotifyStart

End Sub

Private Sub StopCommand_Click()

Call Service.NotifyStop

End Sub

Private Sub Table_TableConnectionDown(ByVal iMonitorId As Long, ByVal UserArg As Long, ByVal Status As Long)

TableNotifyList.AddItem "Connection Lost - Status " + Str(Status) + " UA " + Str(UserArg)

End Sub

Private Sub Table_TableConnectionUp(ByVal iMonitorId As Long, ByVal UserArg As Long)

TableNotifyList.AddItem "Connection Established " + " UA " + Str(UserArg)

End Sub

Private Sub Table_TableDataArrival(ByVal pTableData As Object, ByVal iMonitorId As Long)

Dim data As String

Dim TableDataObject As TableData

Set TableDataObject = pTableData

If TableList.ListCount = 10 Then

TableList.RemoveItem 0

End If

data = "Table - Service ID: " + Str(TableDataObject.ServiceId)

OSMS API Reference Guide Confidential

Page 47: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–19

data = data + " Table ID: " + Str(TableDataObject.ServiceTableId)

TableList.AddItem data

Set TableDataObject = Nothing

End Sub

Private Sub Table_TableNotifyDataArrival(ByVal pNotifyData As Object, ByVal iMonitorId As Long)

Dim data As String

Dim NotifyDataObject As NotificationData

Set NotifyDataObject = pNotifyData

If TableNotifyList.ListCount = 10 Then

TableNotifyList.RemoveItem 0

End If

data = "TableNotify - Service ID: " + Str(NotifyDataObject.ServiceId)

TableNotifyList.AddItem data

Set NotifyDataObject = Nothing

End Sub

Private Sub System_SystemConnectionDown(ByVal MonitorId As Long, ByVal UserArg As Long, ByVal iStatus As Long)

lstSystem.AddItem "Connection Lost - Status " + Str(Status) + " UA " + Str(UserArg)

End Sub

Private Sub System_SystemConnectionUp(ByVal MonitorId As Long, ByVal UserArg As Long)

Confidential OSMS API Reference Guide

Page 48: 700136a Epro61 Osms API Ref Guide

1–20 | Coding Examples Aspect Software

lstSystem.AddItem "Connection Established " + " UA " + Str(UserArg)

End Sub

Private Sub Table_NotifyConnectionDown(ByVal MonitorId As Long, ByVal UserArg As Long, ByVal Status As Long)

TableNotifyList.AddItem "Connection Lost - Status " + Str(Status) + " UA " + Str(UserArg)

End Sub

Private Sub Table_NotifyConnectionUp(ByVal MonitorId As Long, ByVal UserArg As Long)

TableNotifyList.AddItem "Connection Established " + " UA " + Str(UserArg)

End Sub

Private Sub TableAdd_Click()

Call Table.TableAdd(CInt(Table_Service_Text), CInt(Table_Table_Text))

End Sub

Private Sub TableRemove_Click()

Call Table.TableRemove(CInt(Table_Service_Text), CInt(Table_Table_Text))

End Sub

Private Sub TableRemoveAll_Click()

Call Table.TableRemoveAll

End Sub

Private Sub TNAdd_Click()

Call Table.NotifyAdd(CInt(TN_Service_Text))

OSMS API Reference Guide Confidential

Page 49: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–21

End Sub

Private Sub TNConnect_Click()

If (TableConnected = False) Then

Set Table = New NotifyMonitor

Table.Connect 0, "DTE15x4", 8000

TableConnected = True

Else

Set Table = Nothing

TableConnected = False

End If

End Sub

Private Sub TNRemove_Click()

Call Table.NotifyRemove(CInt(TN_Service_Text))

End Sub

Private Sub TNRemoveAll_Click()

Call Table.NotifyRemoveAll

End Sub

C++ Coding Example

#include <stdio.h>

#include <conio.h>

#import "C:\winnt\system32\ccproosmsclient.dll" no_namespace

void ConnectionUpHandler(int iMonitorId, long lUserArg);

Confidential OSMS API Reference Guide

Page 50: 700136a Epro61 Osms API Ref Guide

1–22 | Coding Examples Aspect Software

void ConnectionDownHandler(int iMonitorId, long lUserArg, int iStatus);

void OnAcdDataArrivalEvent(IDispatch* pAcdData, int iMonitorId);

void main()

{

CoInitialize(NULL);

try

{

IServiceMonitorPtr SM(__uuidof(ServiceMonitor));

IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetConnectionUpHandler((long) ConnectionUpHandler);

SMS->SetConnectionDownHandler((long) ConnectionDownHandler);

SMS->SetAcdDataArrivalHandler((long) OnAcdDataArrivalEvent);

SMS->ListenToEvents(SM);

SM->MonitorId = 1;

SM->UserArgument = (long)SM;

SM->StartMessagePump();

SM->Connect(0,"DTE18X4",8000);

SM->AcdAdd(1);

printf("Hit any key to shutdown\n");

int i = getch();

SMS->StopListeningToEvents();

}

OSMS API Reference Guide Confidential

Page 51: 700136a Epro61 Osms API Ref Guide

Aspect Software Coding Examples | 1–23

catch (_com_error& Error)

{

printf("ERROR: %s\n", Error.Description());

}

CoUninitialize();

}

void ConnectionUpHandler(int iMonitorId, long lUserArg)

{

printf("CONNECTION UP\n");

}

void ConnectionDownHandler(int iMonitorId, long lUserArg, int iStatus)

{

printf("CONNECTION DOWN\n");

}

void OnAcdDataArrivalEvent(IDispatch* pAcdData, int iMonitorId)

{

printf("ACD DATA ARRIVAL\n");

IAcdDataPtr ACDData = pAcdData;

printf("ServiceId : %d\n", ACDData->ServiceId);

printf("Service : %s\n", (char*) ACDData->Service);

}

Confidential OSMS API Reference Guide

Page 52: 700136a Epro61 Osms API Ref Guide

1–24 | Coding Examples Aspect Software

OSMS API Reference Guide Confidential

Page 53: 700136a Epro61 Osms API Ref Guide

Chapter 2

Multi-Tenancy

In EnsemblePro, OSMS Client and OSMS Server is tenant specific application. OSMS Client requires tenant information at the start-up of the application. OSMS Client connects to OSMS Server which belongs to the same tenant provided to OSMS Client at the start-up of the application.

Before creating any monitor object or any other object of OSMS COM lib, the application needs to provide the information shown below. This information is required to create proper log files and also to connect to the tenant specific OSMS Server. The application does not work if you do not set tenant name in the beginning.

VB Sample:

//define and create OsmsClientGlobal objectDim OsmsGlobal As CCPROOSMSCLIENTLib.OsmsClientGlobalSet OsmsGlobal = new CPROOSMSCLIENTLib.OsmsClientGlobal

//set component name. Application call this method only onceOsmsGlobal.SetComponentName(ApplicationName)

//set site short name. application call this method only once//if only single instance of the application run for the tenant then it does not require to call this method//if application has more than one instance running for the same tenant but different site monitoring, then it is required to callOsmsGlobal.SetSiteName(SiteShortName)

//now set tenant short name//please note that call above methods before you set tenant name. It is used to created log fileOsmsGlobal.SetTenantName (TenantShortName)

//now create monitor objects and subscribe to statistics

Aspect Software Confidential OSMS API Reference Guide

Page 54: 700136a Epro61 Osms API Ref Guide

2–2 | Multi-Tenancy Aspect Software

OSMS API Reference Guide Confidential

Page 55: 700136a Epro61 Osms API Ref Guide

Chapter 3

Monitor Interfaces

The Monitor Interfaces allow you to request and receive statistical data and state information from the OSMS Proxy Server. These interfaces point to a multithreaded COM object that provides a reliable and reestablishing socket connection to the OSMS Proxy Server. Through event handlers you will be notified when connections are established and lost, and you will receive statistical data.

The following classes are found within the Monitor Interface:

• AgentMonitor

• NotifyMonitor

• ServiceMonitor

• SystemMonitor

• TableMonitor

AgentMonitor

This section describes the methods within the AgentMonitor class. You will have access to these methods when you instantiate an AgentMonitor object.

AgentAddDescription:

This method provides the ability to request Agent statistical data for a given agent in a given service. The data is received in the AgentDataArrival event.

Syntax:

AgentMonitor.AgentAdd ServiceId AgentIndex

Aspect Software Confidential OSMS API Reference Guide

Page 56: 700136a Epro61 Osms API Ref Guide

3–2 | Monitor Interfaces Aspect Software

Parameters:

See Also:

"AgentRemove"

"AgentRemoveAll"

AgentRemoveDescription:

This method provides the ability to remove a request for Agent statistical data for a given agent in a given service. The data will no longer be sent.

Syntax:

AgentMonitor.AgentRemove ServiceId AgentIndex

Parameters:

See Also:

"AgentAdd"

"AgentRemoveAll"

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

AgentIndex The EnsemblePro index of a defined agent in the system. You must use the AgentIndex, Agent or LoggedInAgents property to get that number.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

AgentIndex The EnsemblePro index of a defined agent in the system. You must use the AgentIndex, Agent or LoggedInAgents property to get that number.

OSMS API Reference Guide Confidential

Page 57: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–3

AgentRemoveAllDescription:

This method provides the ability to remove all requests for Agent statistical data for a given service. The data will no longer be sent.

Syntax:

AgentMonitor.AgentRemoveAll ServiceId

Parameters:

See Also:

"AgentAdd"

"AgentRemove"

AgentServicesDescription:

This method returns a collection of services where agent is currently logged in.

Syntax:

Set AgentServices = AgentMonitor.AgentServices UserId

Parameters:

VB Sample:

Dim data As StringDim AgentServicesColl As CCPROOSMSCLIENTLib.AgentServicesDim AgentServiceItem As CCPROOSMSCLIENTLib.AgentServiceSet AgentServicesColl = AgentMonitor.AgentServices “cellit”For Each AgentServiceItem In AgentServicesColldata = "Service: " + AgentServiceItem.ServiceId + " ServiceName: " +

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

UserId UserId of the agent

Confidential OSMS API Reference Guide

Page 58: 700136a Epro61 Osms API Ref Guide

3–4 | Monitor Interfaces Aspect Software

AgentServiceItem.ServiceNameShort + " Application: " + AgentServiceItem.ApplicationIdNext

SummaryAddDescription:

This method provides the ability to request Agent Summary statistical data for a given agent. The data is received in the SummaryDataArrival event.

Syntax:

AgentMonitor.SummaryAdd AgentIndex

Parameters:

See Also:

"SummaryRemove"

"SummaryRemoveAll"

SummaryRemoveDescription:

This method provides the ability to remove a request for Agent Summary statistical data for a given agent. The data will no longer be sent.

Syntax:

AgentMonitor.SummaryRemove AgentIndex

Parameter Description

AgentIndex The EnsemblePro index of a defined agent in the system. You must use the AgentIndex, Agent or LoggedInAgents property to get that number.

OSMS API Reference Guide Confidential

Page 59: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–5

Parameters:

See Also:

"SummaryAdd"

"SummaryRemoveAll"

SummaryRemoveAllDescription:

This method provides the ability to remove all requests for Agent Summary statistical data. The data will no longer be sent.

Syntax:

AgentMonitor.SummaryRemoveAll

Parameters:

None

See Also:

"SummaryAdd"

"SummaryRemove"

NotifyAddDescription:

This method provides the ability to request Agent Notifications for all agents of a given service. The data is received in the AgentNotifyDataArrival event.

Syntax:

AgentMonitor.NotifyAdd ServiceId

Parameter Description

AgentIndex The EnsemblePro index of a defined agent in the system. You must use the AgentIndex, Agent or LoggedInAgents property to get that number.

Confidential OSMS API Reference Guide

Page 60: 700136a Epro61 Osms API Ref Guide

3–6 | Monitor Interfaces Aspect Software

Parameters:

See Also:

"NotifyRemove"

"NotifyRemoveAll"

NotifyRemoveDescription:

This method provides the ability to remove a request for Agent Notifications for all agents of a given service. The data will no longer be sent.

Syntax:

AgentMonitor.NotifyRemove ServiceId

Parameters:

See Also:

"NotifyAdd"

"NotifyRemoveAll"

NotifyRemoveAllDescription:

This method provides the ability to remove all requests for Agent Notifications. The data will no longer be sent.

Syntax:

AgentMonitor.NotifyRemoveAll

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 61: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–7

Parameters:

None

See Also:

"NotifyAdd"

"NotifyRemove"

AgentIndexDescription:

This property returns the agent index for the specified UserId.

Syntax:

AgentIndex = AgentMonitor.AgentIndex "UserId"

Parameters:

See Also:

"Agents"

"Authenticate"

"LoggedInAgents"

"Sites"

AgentsDescription:

This property returns a collection of agents currently defined in the system.

Syntax:

Set Agents = AgentMonitor.Agents

Parameter Description

UserId A string that defines the name of a user in the system. You can use the Agents or LoggedInAgents property to get UserIds.

Confidential OSMS API Reference Guide

Page 62: 700136a Epro61 Osms API Ref Guide

3–8 | Monitor Interfaces Aspect Software

Parameters:

None

See Also:

"AgentIndex"

"Authenticate"

"LoggedInAgents"

"Sites"

AuthenticateDescription:

Internal Use Only

This property tests version numbers between the client and the server. This call is made automatically when the client establishes a connection with the server. If the authentication fails, the client receives an AgentConnectionDown event with a status of 1.

Syntax:

Accepted = AgentMonitor.Authenticate 35001

Parameters:

VB Sample:

Dim Accepted As Long

Accepted = AgentMonitor.Authenticate 35001

If Accepted = 1 Then; Authentication was successfulElse; Authentication was unsuccessfulEnd If

C++ Sample:

int iAccepted;

Parameter Description

Version This number represents the current version of the client.

OSMS API Reference Guide Confidential

Page 63: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–9

try{iAccepted = AM->Authenticate(35001);if (iAccepted)

printf("Successful\n");else

printf("Unsuccessful\n");}

catch (_com_error& Error){}

See Also:

"AgentIndex"

"Agents"

"LoggedInAgents"

"Sites"

LoggedInAgentsDescription:

This property returns a collection of the active agents for a specified service and/or workgroup.

Syntax:

Set Agents = AgentMonitor.LoggedInAgents ServiceId, WorkgroupId

Parameters:

VB Sample:

Dim data As StringDim Agents As CCPROOSMSCLIENTLib.AgentsDim Agent As CCPROOSMSCLIENTLib.Agent

Parameter Description

ServiceId If it is 0 then method returns agents logged in to the system. If it is other than 0, then method returns agents currently logged in to specific service.

WorkgroupId You can optionally filter agent list by workgroupId. If it is –1, then method ignores workgroupId, else it returns the list of agents belongs to workgroup specified.

Confidential OSMS API Reference Guide

Page 64: 700136a Epro61 Osms API Ref Guide

3–10 | Monitor Interfaces Aspect Software

Set Agents = AgentMonitor.LoggedInAgents 10,0

For Each Agent In Agentsdata = "Agent: " + Agent.UserId + " Index: " + Str(Agent.AgentIndex) +

" Name: " + Agent.NamelstActiveAgent.AddItem dataNext

C++ Sample:

IAgentsPtr Agents = NULL;IAgentPtr Agent = NULL;long lCount = 0;_variant_t vAgent ;_variant_t vIndex ;HRESULT hResult = NULL;

try {Agents = AgentMonitor->GetLoggedInAgents();

if ((lCount = Agents->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Agents->raw_Item (vIndex,&vAgent)) == S_OK ){

Agent = vAgent.pdispVal;printf("AgentIndex: %d\n",Agent->AgentIndex();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"AgentIndex".

"Agents"

"Authenticate"

"Sites"

OSMS API Reference Guide Confidential

Page 65: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–11

SitesDescription:

This property returns a collection of sites currently defined in the system.

Syntax:

Set Sites = AgentMonitor.Sites

Parameters:

None

VB Sample:

Dim data As StringDim Sites As CCPROOSMSCLIENTLib.SitesDim Site As CCPROOSMSCLIENTLib.Site

Set Sites = AgentMonitor.Sites()

For Each Site In Sitesdata = "Site: " + Site.SiteId + " Name: " + Site.NamelstSite.AddItem dataNext

C++ Sample:

ISitesPtr Sites = NULL;ISitePtr Site = NULL;long lCount = 0;_variant_t vSite;_variant_t vIndex ;HRESULT hResult = NULL;

try {Sites = AgentMonitor->GetSites();

if ((lCount = Sites->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Sites->raw_Item (vIndex,&vSite)) == S_OK ){

Site = vSite.pdispVal;printf("SiteId: %d\n",Site->SiteId();

Confidential OSMS API Reference Guide

Page 66: 700136a Epro61 Osms API Ref Guide

3–12 | Monitor Interfaces Aspect Software

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"AgentIndex"

"Agents"

"Authenticate"

"LoggedInAgents"

ConnectDescription:

This method starts a thread that maintains a connection to the Proxy Server. When the connection is established, the AgentConnectionUp event is fired. When the connection is down, the AgentConnectionDown event is fired. A single Connection is shared between AgentMonitor objects.

This method first creates DBIClient object and connects to DBI. Then it retrieves OSMS server information. After retrieving OSMS server information, it connects to the OSMS server. Please note that arguments passed to connect method is ignored. You must have DBIClient registry entries in order to make connection.

Syntax:

AgentMonitor.Connect SiteId, IPaddress, PortNumber

Arguments/Parameters:

Arguments are ignored. OsmsClient uses DBIClient registry entries.

ConnectSpecificDescription:

This method is used if you want to connect to multiple site OSMS Server. Do not use this method if you connect to single site OSMS server. In this case, use the Connect method.

OSMS API Reference Guide Confidential

Page 67: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–13

Syntax:

MonitorObject.ConnectSpecific SiteId, PrimaryIP, PrimaryPort, BackupIP, BackupPort

Parameters:

MonitorIdDescription:

This property is used to set a user-defined ID for the AgentMonitor object. This value is returned through all of the event functions.

Syntax:

AgentMonitor.MonitorId MonitorId

Parameters:

See Also:

"UserArguments"

Parameter Description

SiteId SiteId

PrimaryIP IPAddress of Primary DBI for the Site

PrimaryPort PortNo of Primary DBI for the Site

BackupIP IPAddress of Backup DBI for the Site

BackupPort PortNo of Backup DBI for the Site

Parameter Description

MonitorId A user-defined long value.

Confidential OSMS API Reference Guide

Page 68: 700136a Epro61 Osms API Ref Guide

3–14 | Monitor Interfaces Aspect Software

UserArgumentsDescription:

This property is used to set a user-defined argument for the AgentMonitor object. This value is returned through all of the event functions.

Syntax:

AgentMonitor.UserArgument UserArg

Parameters:

See Also:

"MonitorId"

StartMessagePumpDescription:

This method starts a message pump for processing events. It is only to be used in C++ console-based applications.

Syntax:

AM->StartMessagePump

Parameters:

None

NotifyMonitor

You will have access to the following methods when you instantiate a NotifyMonitor object.

• Connect

• NotifyAdd

• NotifyConnectionDown

Parameter Description

UserArg A user-defined long value.

OSMS API Reference Guide Confidential

Page 69: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–15

• NotifyConnectionUp

• NotifyDataArrival

• NotifyRemove

• NotifyRemoveAll

• Sites

ServiceMonitor

This section describes the methods within the ServiceMonitor class. You will have access to these methods when you instantiate a ServiceMonitor object.

AodAddDescription:

This method provides the ability to request AOD statistical data for a given service. The data is received in the AodDataArrival Event.

Syntax:

ServiceMonitor.AodAdd ServiceId

Parameters:

See Also:

"AodRemove"

"AodRemoveAll"

AodRemoveDescription:

This method provides the ability to remove a request for AOD statistical data for a given service. The data will no longer be received in the AodDataArrival event.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 70: 700136a Epro61 Osms API Ref Guide

3–16 | Monitor Interfaces Aspect Software

Syntax:

ServiceMonitor.AodRemove ServiceId

Parameters:

See Also:

"AodAdd"

"AodRemoveAll"

AodRemoveAllDescription:

‘This method provides the ability to remove all requests for AOD statistical data for a given service. The data will no longer be received in the AodDataArrival event.

Syntax:

ServiceMonitor.AodRemoveAll

Parameters:

None

See Also:

"AodAdd"

"AodRemove"

AcdAddDescription:

This method provides the ability to request ACD statistical data for a given service. The data is received in the AcdDataArrival event.

Syntax:

ServiceMonitor.AcdAdd ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 71: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–17

Parameters:

See Also:

"AcdRemove"

"AcdRemoveAll"

AcdRemoveDescription:

This method provides the ability to remove a request for ACD statistical data for a given service. The data will no longer be received in the AcdDataArrival event.

Syntax:

ServiceMonitor.AcdRemove ServiceId

Parameters:

See Also:

"AcdAdd"

"AcdRemoveAll"

AcdRemoveAllDescription:

This method provides the ability to remove all requests for ACD statistical data for a given service. The data will no longer be received in the AcdDataArrival event.

Syntax:

ServiceMonitor.AcdRemoveAll

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 72: 700136a Epro61 Osms API Ref Guide

3–18 | Monitor Interfaces Aspect Software

Parameters:

None

See Also:

"AcdAdd"

"AcdRemove"

AgdAddDescription:

This method provides the ability to request AGD statistical data for a given service. The data is received in the AgdDataArrival event.

Syntax:

ServiceMonitor.AgdAdd ServiceId

Parameters:

See Also:

"AgdRemove"

"AgdRemoveAll"

AgdRemoveDescription:

This method provides the ability to remove a request for AGD statistical data for a given service. The data will no longer be received in the AgdDataArrival event.

Syntax:

ServiceMonitor.AgdRemove ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 73: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–19

Parameters:

See Also:

"AgdAdd"

"AgdRemoveAll"

AgdRemoveAllDescription:

This method provides the ability to remove all requests for AGD statistical data for a given service. The data will no longer be received in the AgdDataArrival event.

Syntax:

ServiceMonitor.AgdRemoveAll

Parameters:

None

See Also:

"AgdAdd"

"AgdRemove"

AmdAddDescription:

This method provides the ability to request AMD statistical data for a given service. The data is received in the AmdDataArrival event.

Syntax:

ServiceMonitor.AmdAdd ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 74: 700136a Epro61 Osms API Ref Guide

3–20 | Monitor Interfaces Aspect Software

Parameters:

See Also:

"AmdRemove"

"AmdRemoveAll"

AmdRemoveDescription:

This method provides the ability to remove a request for AMD statistical data for a given service. The data will no longer be received in the AmdDataArrival event.

Syntax:

ServiceMonitor.AmdRemove ServiceId

Parameters:

See Also:

"AmdAdd"

"AmdRemoveAll"

AmdRemoveAllDescription:

This method provides the ability to remove all requests for AMD statistical data for a given service. The data will no longer be received in the AmdDataArrival event.

Syntax:

ServiceMonitor.AmdRemoveAll

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 75: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–21

Parameters:

None

See Also:

"AmdAdd"

"AmdRemove"

AmdSelfServiceSummaryAddDescription:

This method provides the ability to request AmdSelfServiceSummary statistical data for a given service. The data is received in the AmdSelfServiceSummary event.

Syntax:

ServiceMonitor.AmdSelfServiceSummaryAdd ServiceId

Parameters:

See Also:

"AmdSelfServiceSummaryRemove"

"AmdSelfServiceSummaryRemoveAll"

AmdSelfServiceSummaryRemoveDescription:

This method provides the ability to remove a request for AmdSelfServiceSummary statistical data for a given service. The data will no longer be received in the AmdSelfServiceSummaryDataArrival event.

Syntax:

ServiceMonitor.AmdSelfServiceSummaryRemove ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 76: 700136a Epro61 Osms API Ref Guide

3–22 | Monitor Interfaces Aspect Software

Parameters:

See Also:

"AmdSelfServiceSummaryAdd"

"AmdSelfServiceSummaryRemoveAll"

AmdSelfServiceSummaryRemoveAllDescription:

This method provides the ability to remove all requests for AmdSelfServiceSummary statistical data for a given service. The data will no longer be received in the AmdSelfServiceSummaryDataArrival event.

Syntax:

ServiceMonitor.AmdSelfServiceSummaryRemoveAll

Parameters:

None

See Also:

"AmdSelfServiceSummaryAdd"

"AmdSelfServiceSummaryRemove"

AmdReviewSummaryAddDescription:

This method provides the ability to request AmdReviewSummary statistical data for a given service. The data is received in the AmdReviewSummaryDataArrival event.

Syntax:

ServiceMonitor.AmdReviewSummaryAdd ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 77: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–23

Parameters:

See Also:

"AmdReviewSummaryRemove"

"AmdReviewSummaryRemoveAll"

AmdReviewSummaryRemoveDescription:

This method provides the ability to remove a request for AmdReviewSummary statistical data for a given service. The data will no longer be received in the AmdReviewSummaryDataArrival event.

Syntax:

ServiceMonitor.AmdReviewSummaryRemove ServiceId

Parameters:

See Also:

"AmdReviewSummaryAdd"

"AmdReviewSummaryRemoveAll"

AmdReviewSummaryRemoveAllDescription:

This method provides the ability to remove all requests for AmdReviewSummary statistical data for a given service. The data will no longer be received in the AmdReviewSummaryDataArrival event.

Syntax:

ServiceMonitor.AmdReviewSummaryRemoveAll

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 78: 700136a Epro61 Osms API Ref Guide

3–24 | Monitor Interfaces Aspect Software

Parameters:

None

See Also:

"AmdReviewSummaryAdd"

"AmdReviewSummaryRemove"

ChatAddDescription:

This method provides the ability to request Chat statistical data for a given service. The data is received in the ChatDataArrival event.

Syntax:

ServiceMonitor.ChatAdd ServiceId

Parameters:

See Also:

"ChatRemove"

"ChatRemoveAll"

ChatRemoveDescription:

This method provides the ability to remove a request for Chat statistical data for a given service. The data will no longer be received in the ChatDataArrival event.

Syntax:

ServiceMonitor.ChatRemove ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 79: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–25

Parameters:

See Also:

"ChatAdd"

"ChatRemoveAll"

ChatRemoveAllDescription:

This method provides the ability to remove all requests for Chat statistical data for a given service. The data will no longer be received in the ChatDataArrival event.

Syntax:

ServiceMonitor.ChatRemoveAll

Parameters:

None

See Also:

"ChatAdd"

"ChatRemove"

CtiAddDescription:

This method provides the ability to request Cti statistical data for a given service. The data is received in the CtiDataArrival event.

Syntax:

ServiceMonitor.CtiAdd ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 80: 700136a Epro61 Osms API Ref Guide

3–26 | Monitor Interfaces Aspect Software

Parameters:

See Also:

"CtiRemove"

"CtiRemoveAll"

CtiRemoveDescription:

This method provides the ability to remove a request for Cti statistical data for a given service. The data will no longer be received in the CtiDataArrival event.

Syntax:

ServiceMonitor.CtiRemove ServiceId

Parameters:

See Also:

"CtiAdd"

"CtiRemoveAll"

CtiRemoveAllDescription:

This method provides the ability to remove all requests for Cti statistical data. The data will no longer be received in the CtiDataArrival event.

Syntax:

ServiceMonitor. CtiRemoveAll

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 81: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–27

Parameters:

None

See Also:

"CtiAdd"

"CtiRemove"

DistributionListMailQueuesDescription:

This property returns a collection of DistributionListMailQueues currently defined in the system.

Syntax:

Set AmdSummaryByQueues = ServiceMonitor.DistributionListMailQueues ServiceId

Parameters:

VB Sample:

Dim data As StringDim AmdSummaryByQueues As CCPROOSMSCLIENTLib.AmdSummaryByQueuesDim AmdSummaryByQueue As CCPROOSMSCLIENTLib.AmdSummaryByQueue

Set AmdSummaryByQueues = ServiceMonitor.DistributionListMailQueues 1

For Each AmdSummaryByQueue In AmdSummaryByQueuesdata = "QueueId: " + Str(AmdSummaryByQueue.QueueId) +

" QueueIndex: " + Str(AmdSummaryByQueue.QueueIndex) + " QueueNameShort: " + AmdSummaryByQueue.QueueNameShort

lstService.AddItem dataNext

C++ Sample:

IAmdSummaryByQueuesPtr AmdSummaryByQueues = NULL;IAmdSummaryByQueuePtr AmdSummaryByQueue = NULL;long lCount = 0;

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 82: 700136a Epro61 Osms API Ref Guide

3–28 | Monitor Interfaces Aspect Software

_variant_t vService;_variant_t vIndex ;HRESULT hResult = NULL;

try {AmdSummaryByQueues =

ServiceMonitor->GetDistributionListMailQueues(1);

if ((lCount = AmdSummaryByQueues->GetCount()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = AmdSummaryByQueues->raw_Item

(vIndex,&vService)) == S_OK ){

AmdSummaryByQueue = vService.pdispVal;printf("QueueId: %d\n",AmdSummaryByQueue->QueueId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"Authenticate"

"Sites"

DistributionListMailQueueAddDescription:

This method provides the ability to request DistributionListMailQueue statistical data for a given service. The data is received in the DistributionListMailQueueDataArrival event.

Syntax:

ServiceMonitor.DistributionListMailQueueAdd ServiceId

OSMS API Reference Guide Confidential

Page 83: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–29

Parameters:

See Also:

"DistributionListMailQueueRemove"

"DistributionListMailQueueRemoveAll"

DistributionListMailQueueRemoveDescription:

This method provides the ability to remove a request for DistributionListMailQueue statistical data for a given service. The data will no longer be received in the DistributionListMailQueueDataArrival event.

Syntax:

ServiceMonitor.DistributionListMailQueueRemove ServiceId

Parameters:

See Also:

"DistributionListMailQueueAdd"

"DistributionListMailQueueRemoveAll"

DistributionListMailQueueRemoveAllDescription:

This method provides the ability to remove all requests for DistributionListMailQueue statistical data for a given service. The data will no longer be received in the DistributionListMailDataQueueArrival event.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 84: 700136a Epro61 Osms API Ref Guide

3–30 | Monitor Interfaces Aspect Software

Syntax:

ServiceMonitor.DistributionListMailQueueRemoveAll

Parameters:

None

See Also:

"DistributionListMailQueueAdd"

"DistributionListMailQueueRemove"

FeedApplicationAddDescription:

This method provides the ability to request FeedApplication statistical data for a given service. The data is received in the FeedApplicationDataArrival event.

Syntax:

ServiceMonitor.FeedApplicationAdd ServiceId

Parameters:

See Also:

"FeedApplicationRemove"

"FeedApplicationRemoveAll"

FeedApplicationRemoveDescription:

This method provides the ability to remove a request for FeedApplication statistical data for a given service. The data will no longer be received in the FeedApplicationDataArrival event.

Syntax:

ServiceMonitor.FeedApplicationRemove ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 85: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–31

Parameters:

See Also:

"FeedApplicationQueueAdd"

"FeedApplicationQueueRemoveAll"

FeedApplicationRemoveAllDescription:

This method provides the ability to remove all requests for FeedApplication statistical data for a given service. The data will no longer be received in the FeedApplicationDataArrival event.

Syntax:

ServiceMonitor.FeedApplicationRemoveAll

Parameters:

None

See Also:

"FeedApplicationQueueAdd"

"FeedApplicationQueueRemove"

FeedApplicationQueueAddDescription:

This method provides the ability to request FeedApplicationQueue statistical data for a given service. The data is received in the FeedApplicationQueueDataArrival event.

Syntax:

ServiceMonitor.FeedApplicationQueueAdd ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 86: 700136a Epro61 Osms API Ref Guide

3–32 | Monitor Interfaces Aspect Software

Parameters:

See Also:

"FeedApplicationQueueRemove"

"FeedApplicationQueueRemoveAll"

FeedApplicationQueueRemoveDescription:

This method provides the ability to remove a request for FeedApplicationQueue statistical data for a given service. The data will no longer be received in the FeedApplicationQueueDataArrival event.

Syntax:

ServiceMonitor.FeedApplicationQueueRemove ServiceId

Parameters:

See Also:

"FeedApplicationQueueAdd"

"FeedApplicationQueueRemoveAll"

FeedApplicationQueueRemoveAllDescription:

This method provides the ability to remove all requests for FeedApplicationQueue statistical data for a given service. The data will no longer be received in the FeedApplicationDataQueueArrival event.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 87: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–33

Syntax:

ServiceMonitor.FeedApplicationQueueRemoveAll

Parameters:

None

See Also:

"FeedApplicationQueueAdd"

"FeedApplicationQueueRemove"

IvrAddDescription:

This method provides the ability to request Ivr statistical data for a given service. The data is received in the IvrDataArrival event.

Syntax:

ServiceMonitor.IvrAdd ServiceId

Parameters:

See Also:

"IvrRemove"

"IvrRemoveAll"

IvrRemoveDescription:

This method provides the ability to remove a request for Ivr statistical data for a given service. The data will no longer be received in the IvrDataArrival event.

Syntax:

ServiceMonitor.IvrRemove ServiceId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 88: 700136a Epro61 Osms API Ref Guide

3–34 | Monitor Interfaces Aspect Software

Parameters:

See Also:

"IvrAdd"

"IvrRemoveAll"

IvrRemoveAllDescription:

This method provides the ability to remove all requests for Ivr statistical data. The data will no longer be received in the IvrDataArrival event.

Syntax:

ServiceMonitor.IvrRemoveAll

Parameters:

None

See Also:

"IvrAdd"

"IvrRemove"

WorkgroupAddDescription:

This method provides the ability to request Workgroup statistical data for a given service. The data is received in the WorkgroupDataArrival event.

Syntax:

ServiceMonitor.WorkgroupAdd WorkgroupId

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 89: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–35

Parameters:

See Also:

"WorkgroupRemove"

"WorkgroupRemoveAll"

WorkgroupRemoveDescription:

This method provides the ability to remove a request for Workgroup statistical data for a given service. The data will no longer be received in the WorkgroupDataArrival event.

Syntax:

ServiceMonitor.WorkgroupRemove WorkgroupId

Parameters:

See Also:

"WorkgroupAdd"

"WorkgroupRemoveAll"

WorkgroupRemoveAllDescription:

This method provides the ability to remove all requests for Workgroup statistical data. The data will no longer be received in the WorkgroupDataArrival event.

Syntax:

ServiceMonitor.WorkgroupRemoveAll

Parameter Description

WorkgroupId WorkgroupId of the workgroup. You can use Workgroups property of the ServiceMonitor to get the WorkgroupIds of the system.

Parameter Description

WorkgroupId WorkgroupId of the workgroup. You can use Workgroups property of the ServiceMonitor to get the WorkgroupIds of the system.

Confidential OSMS API Reference Guide

Page 90: 700136a Epro61 Osms API Ref Guide

3–36 | Monitor Interfaces Aspect Software

Parameters:

None

See Also:

"WorkgroupAdd"

"WorkgroupRemove"

WorkgroupsDescription:

This method returns the collection of Workgroup defined in the system.

Syntax:

ServiceMonitor.Workgroups

Parameters:

None

NotifyStartDescription:

This method provides the ability to request Notifications for all services. The data is received in the ServiceNotifyDataArrival event.

Syntax:

ServiceMonitor.NotifyStart

Parameters:

None

See Also:

"NotifyStop"

OSMS API Reference Guide Confidential

Page 91: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–37

NotifyStopDescription:

This method provides the ability to remove the request for Notifications for all services. The data will no longer be received in the ServiceNotifyDataArrival event.

Syntax:

ServiceMonitor.NotifyStop

Parameters:

None

See Also:

"NotifyStart"

ServicesDescription:

This property returns a collection of services currently defined in the system.

Syntax:

Set Services = ServiceMonitor.ServicesUserId, IncludeACD, IncludeAOD,IncludeCHAT, IncludeAMD, IncludeIVR, IncludeAGD, IncludeCTI,IncludeApplicationId, IncludeDisabled, IncludeInactive

Parameters:

Parameter Description

UserId A string that represents the UserId of an agent in the system.

IncludeACD If set to 1, ACD services to which the specified agent belongs are returned.

IncludeAOD If set to 1, AOD service to which the specified agent belongs is returned.

IncludeCHAT If set to 1, Chat service to which the specified agent belongs is returned.

IncludeAMD If set to 1, AMD service to which the specified agent belongs is returned.

Confidential OSMS API Reference Guide

Page 92: 700136a Epro61 Osms API Ref Guide

3–38 | Monitor Interfaces Aspect Software

VB Sample:

Dim data As StringDim Services As CCPROOSMSCLIENTLib.ServicesDim Service As CCPROOSMSCLIENTLib.Service

Set Services = ServiceMonitor.Services "cellit",1,0,0,0,0,0,0,0,0

For Each Service In Servicesdata = "Short: " + Service.ServiceNameShort + " Long: " +

Service.ServiceNameLong + " Index: " + Str(Service.ServiceId)

lstService.AddItem dataNext

C++ Sample:

IServicesPtr Services = NULL;IServicePtr Service = NULL;long lCount = 0;_variant_t vService;_variant_t vIndex ;HRESULT hResult = NULL;

try {Services = ServiceMonitor->GetServices("cellit", 1, 0, 0, 0, 0, 0);

if ((lCount = Services->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Services->raw_Item (vIndex,&vService)) == S_OK ){

Service = vService.pdispVal;

IncludeIVR If set to 1, IVR services to which the specified agent belongs are returned.

IncludeAGD If set to 1, AGD service to which the specified agent belongs is returned.

IncludeApplicationId Return only services in the specified application.

IncludeDisabled Include disabled services.

IncludeInactive Include inactive services.

Parameter Description

OSMS API Reference Guide Confidential

Page 93: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–39

printf("ServiceId: %d\n",Service->ServiceId();}

}}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"Authenticate"

"Sites"

FeedApplicationsDescription:

This property returns a collection of FeedApplications currently defined in the system.

Syntax:

Set FeedApplications = ServiceMonitor.FeedApplications IncludeInactive, ApplicationId, FeedApplicationId

Parameters:

VB Sample:

Dim data As StringDim FeedApplications As CCPROOSMSCLIENTLib.FeedApplicationsDim FeedApplication As CCPROOSMSCLIENTLib.FeedApplication

Set FeedApplications = ServiceMonitor.FeedApplications 0,1,1

For Each FeedApplication In FeedApplicationsdata = "ServiceId: " + Str(FeedApplication.ServiceId) +

" ServiceNameShort: " + FeedApplication.ServiceNameShort +

Parameter Description

IncludeInactive Include inactive services.

ApplicationId Identifier for the EnsemblePro application.

FeedApplicationId Identifier for the EnsemblePro FeedApplication.

Confidential OSMS API Reference Guide

Page 94: 700136a Epro61 Osms API Ref Guide

3–40 | Monitor Interfaces Aspect Software

" ServiceNameLong: " + FeedApplication.ServiceNameLong

lstService.AddItem dataNext

C++ Sample:

IFeedApplicationsPtr FeedApplications = NULL;IFeedApplicationPtr FeedApplication = NULL;long lCount = 0;_variant_t vService;_variant_t vIndex ;HRESULT hResult = NULL;

try {FeedApplications = ServiceMonitor->GetFeedApplications(0, 1, 1);

if ((lCount = FeedApplications->GetCount()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = FeedApplications->raw_Item

(vIndex,&vService)) == S_OK ){

FeedApplication = vService.pdispVal;printf("ServiceId: %d\n",FeedApplication->ServiceId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"Authenticate"

"Sites"

OSMS API Reference Guide Confidential

Page 95: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–41

SelfServiceSummaryMailQueuesDescription:

This property returns a collection of SelfServiceSummaryMailQueues currently defined in the system.

Syntax:

Set AmdSummaryByQueues = ServiceMonitor.SelfServiceSummaryMailQueues ServiceId

Parameters:

VB Sample:

Dim data As StringDim AmdSummaryByQueues As CCPROOSMSCLIENTLib.AmdSummaryByQueuesDim AmdSummaryByQueue As CCPROOSMSCLIENTLib.AmdSummaryByQueue

Set AmdSummaryByQueues = ServiceMonitor.SelfServiceSummaryMailQueues 1

For Each AmdSummaryByQueue In AmdSummaryByQueuesdata = "QueueId: " + Str(AmdSummaryByQueue.QueueId) +

" QueueIndex: " + Str(AmdSummaryByQueue.QueueIndex) + " QueueNameShort: " + AmdSummaryByQueue.QueueNameShort

lstService.AddItem dataNext

C++ Sample:

IAmdSummaryByQueuesPtr AmdSummaryByQueues = NULL;IAmdSummaryByQueuePtr AmdSummaryByQueue = NULL;long lCount = 0;_variant_t vService;_variant_t vIndex ;HRESULT hResult = NULL;

try {AmdSummaryByQueues =

ServiceMonitor->GetSelfServiceSummaryMailQueues(1);

if ((lCount = AmdSummaryByQueues->GetCount()) > 0 )

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 96: 700136a Epro61 Osms API Ref Guide

3–42 | Monitor Interfaces Aspect Software

{for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = AmdSummaryByQueues->raw_Item

(vIndex,&vService)) == S_OK ){

AmdSummaryByQueue = vService.pdispVal;printf("QueueId: %d\n",AmdSummaryByQueue->QueueId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"Authenticate"

"Sites"

ReviewSummaryMailQueuesDescription:

This property returns a collection of ReviewSummaryMailQueues currently defined in the system.

Syntax:

Set AmdSummaryByQueues = ServiceMonitor.ReviewSummaryMailQueues ServiceId

Parameters:

VB Sample:

Dim data As StringDim AmdSummaryByQueues As CCPROOSMSCLIENTLib.AmdSummaryByQueuesDim AmdSummaryByQueue As CCPROOSMSCLIENTLib.AmdSummaryByQueue

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 97: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–43

Set AmdSummaryByQueues = ServiceMonitor.ReviewSummaryMailQueues 1

For Each AmdSummaryByQueue In AmdSummaryByQueuesdata = "QueueId: " + Str(AmdSummaryByQueue.QueueId) +

" QueueIndex: " + Str(AmdSummaryByQueue.QueueIndex) + " QueueNameShort: " + AmdSummaryByQueue.QueueNameShort

lstService.AddItem dataNext

C++ Sample:

IAmdSummaryByQueuesPtr AmdSummaryByQueues = NULL;IAmdSummaryByQueuePtr AmdSummaryByQueue = NULL;long lCount = 0;_variant_t vService;_variant_t vIndex ;HRESULT hResult = NULL;

try {AmdSummaryByQueues =

ServiceMonitor->GetReviewSummaryMailQueues(1);

if ((lCount = AmdSummaryByQueues->GetCount()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = AmdSummaryByQueues->raw_Item

(vIndex,&vService)) == S_OK ){

AmdSummaryByQueue = vService.pdispVal;printf("QueueId: %d\n",AmdSummaryByQueue->QueueId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"Authenticate"

"Sites"

Confidential OSMS API Reference Guide

Page 98: 700136a Epro61 Osms API Ref Guide

3–44 | Monitor Interfaces Aspect Software

AuthenticateDescription:

Internal Use Only

This property tests version numbers between the client and the server. This call is made automatically when the client establishes a connection with the server. If the authentication fails, the client receives an AgentConnectionDown event with a status of 1.

Syntax:

Accepted = ServiceMonitor.Authenticate 35001

Parameters:

VB Sample:

Dim Accepted As Long

Accepted = ServiceMonitor.Authenticate 35001

If Accepted = 1 Then; Authentication was successfulElse; Authentication was unsuccessfulEnd If

C++ Sample:

int iAccepted;

try{iAccepted = SM->Authenticate(35001);if (iAccepted)

printf("Successful\n");else

printf("Unsuccessful\n");}

catch (_com_error& Error){}

Parameter Description

Version This number represents the current version of the client. Internal Use Only.

OSMS API Reference Guide Confidential

Page 99: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–45

See Also:

"Services"

"Sites"

SitesDescription:

This property returns a collection of sites currently defined in the system.

Syntax:

Set Sites = ServiceMonitor.Sites

Parameters:

None

VB Sample:

Dim data As StringDim Sites As CCPROOSMSCLIENTLib.SitesDim Site As CCPROOSMSCLIENTLib.Site

Set Sites = ServiceMonitor.Sites

For Each Site In Sitesdata = "Site: " + Site.SiteId + " Name: " + Site.NamelstSite.AddItem dataNext

C++ Sample:

ISitesPtr Sites = NULL;ISitePtr Site = NULL;long lCount = 0;_variant_t vSite;_variant_t vIndex ;HRESULT hResult = NULL;

try {Sites = ServiceMonitor->GetSites();

if ((lCount = Sites->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

Confidential OSMS API Reference Guide

Page 100: 700136a Epro61 Osms API Ref Guide

3–46 | Monitor Interfaces Aspect Software

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Sites->raw_Item (vIndex,&vSite)) == S_OK ){

Site = vSite.pdispVal;printf("SiteId: %d\n",Site->SiteId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"Authenticate"

"Services"

ConnectDescription:

This method starts a thread that maintains a connection to the Proxy Server. When the connection is established, the AgentConnectionUp event is fired. When the connection is down, the AgentConnectionDown event is fired. A single Connection is shared between ServiceMonitor objects.

This method first creates DBIClient object and connects to DBI. Then it retrieves OSMS server information. After retrieving OSMS server information, it connects to the OSMS server. Please note that arguments passed to connect method is ignored. You must have DBIClient registry entries in order to make connection.

Syntax:

ServiceMonitor.Connect SiteId, IPaddress, PortNumber

Arguments/Parameters:

Arguments are ignored. OsmsClient uses DBIClient registry entries.

OSMS API Reference Guide Confidential

Page 101: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–47

ConnectSpecificDescription:

This method is used if you want to connect to multiple site OSMS Server. Do not use this method if you connect to single site OSMS server. In this case, use the Connect method.

Syntax:

MonitorObject.ConnectSpecific SiteId, PrimaryIP, PrimaryPort, BackupIP, BackupPort

Parameters:

MonitorIdDescription:

This property is used to set a user-defined ID for the ServiceMonitor object. This value is returned through all of the event functions.

Syntax:

ServiceMonitor.MonitorId MonitorId

Parameters:

See Also:

"UserArguments"

Parameter Description

SiteId SiteId

PrimaryIP IPAddress of Primary DBI for the Site

PrimaryPort PortNo of Primary DBI for the Site

BackupIP IPAddress of Backup DBI for the Site

BackupPort PortNo of Backup DBI for the Site

Parameter Description

MonitorId A user-defined long value.

Confidential OSMS API Reference Guide

Page 102: 700136a Epro61 Osms API Ref Guide

3–48 | Monitor Interfaces Aspect Software

UserArgumentsDescription:

This property is used to set a user-defined argument for the ServiceMonitor object. This value is returned through all of the event functions.

Syntax:

ServiceMonitor.UserArgument UserArg

Parameters:

See Also:

"MonitorId"

StartMessagePumpDescription:

This method starts a message pump for processing event. It is only to be used in C++ console-based applications.

Syntax:

SM->StartMessagePump

Parameters:

None

VB Sample:

Not applicable

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));

SM->StartMessagePump();

Parameter Description

UserArg A user-defined long value.

OSMS API Reference Guide Confidential

Page 103: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–49

}

catch (_com_error& Error){}

CoUninitialize();

TableMonitor

This section describes the methods within the TableMonitor class. You will have access to these methods when you instantiate a TableMonitor object.

TableAddDescription:

This method provides the ability to request Table statistical data for a given service and service table. The data is received in the TableDataArrival event.

Syntax:

TableMonitor.TableAdd ServiceId ServiceTableId

Parameters:

See Also:

"TableRemove"

"TableRemoveAll"

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

ServiceTableId The EnsemblePro ID of a defined table in the system.

Confidential OSMS API Reference Guide

Page 104: 700136a Epro61 Osms API Ref Guide

3–50 | Monitor Interfaces Aspect Software

TableRemoveDescription:

This method provides the ability to remove a request for Table statistical data for a given service and service table. The data will no longer be received in the TableDataArrival Event.

Syntax:

TableMonitor.TableRemove ServiceId ServiceTableId

Parameters:

See Also:

"TableAdd"

"TableRemoveAll"

TableRemoveAllDescription:

This method provides the ability to remove all requests for Table statistical data. The data will no longer be received in the TableDataArrival event.

Syntax:

ServiceMonitor.TableRemoveAll

Parameters:

None

See Also:

"TableAdd"

"TableRemove"

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

ServiceTableId The EnsemblePro ID of a defined table in the system.

OSMS API Reference Guide Confidential

Page 105: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–51

NotifyAddDescription:

This method provides the ability to request Table Notifications for all tables of a given service. The data is received in the TableNotifyDataArrival event.

Syntax:

TableMonitor.NotifyAdd ServiceId

Parameters:

See Also:

"NotifyRemove"

"NotifyRemoveAll"

NotifyRemoveDescription:

This method provides the ability to remove a request for Table Notifications for all tables of a given service. The data will no longer be sent.

Syntax:

TableMonitor.NotifyRemove ServiceId

Parameters:

See Also:

"NotifyAdd"

"NotifyRemoveAll"

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

Confidential OSMS API Reference Guide

Page 106: 700136a Epro61 Osms API Ref Guide

3–52 | Monitor Interfaces Aspect Software

NotifyRemoveAllDescription:

This method provides the ability to remove all requests for Table Notifications. The data will no longer be sent.

Syntax:

TableMonitor.NotifyRemoveAll

Parameters:

None

See Also:

"NotifyAdd"

"NotifyRemove"

TablesDescription:

This property returns a collection of tables currently defined in the system.

Syntax:

Set Tables = TableMonitor.Tables ServiceId

Parameters:

VB Sample:

Dim data As StringDim Tables As CCPROOSMSCLIENTLib.TablesDim Table As CCPROOSMSCLIENTLib.TableDim ServiceId As Integer

ServiceId = 2Set Tables = TableMonitor.Tables ServiceId

For Each Table In Tables

Parameter Description

ServiceId ServiceId of the service. You can use the Services property of the ServiceMonitor to get the ServiceIds of Services.

OSMS API Reference Guide Confidential

Page 107: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–53

data = "TableId: " + Str(Table.TableId) + " Name: " + Table.TableName + " ServiceTableId: " + Str(Table.ServiceTableId)

lstTable.AddItem dataNext

C++ Sample:

ITablesPtr Sites = NULL;ITablePtr Site = NULL;long lCount = 0;_variant_t vTable;_variant_t vIndex ;HRESULT hResult = NULL;short siServiceId = 2;

try {Tables = TableMonitor->GetTables(siServiceId);

if ((lCount = Tables->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Tables->raw_Item (vIndex,&vTable)) == S_OK ){

Table = vTable.pdispVal;printf("TableId: %d\n",Table->TableId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"Authenticate"

"Sites"

Confidential OSMS API Reference Guide

Page 108: 700136a Epro61 Osms API Ref Guide

3–54 | Monitor Interfaces Aspect Software

AuthenticateDescription:

Internal Use Only

This property tests version numbers between the client and the server. This call is made automatically when the client establishes a connection with the server. If the authentication fails, the client receives an AgentConnectionDown event with a status of 1.

Syntax:

Accepted = TableMonitor.Authenticate 35001

Parameters:

VB Sample:

Dim Accepted As Long

Accepted = TableMonitor.Authenticate 35001

If Accepted = 1 Then; Authentication was successfulElse; Authentication was unsuccessfulEnd If

C++ Sample:

int iAccepted;try{iAccepted = TM->Authenticate(35001);if (iAccepted)

printf("Successful\n");else

printf("Unsuccessful\n");}

catch (_com_error& Error){}

Parameter Description

Version This number represents the current version of the client. Internal Use Only.

OSMS API Reference Guide Confidential

Page 109: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–55

See Also:

"Services"

"Sites"

SitesDescription:

This property returns a collection of sites currently defined in the system.

Syntax:

Set Sites = TableMonitor.Sites

Parameters:

None

VB Sample:

Dim data As StringDim Sites As CCPROOSMSCLIENTLib.SitesDim Site As CCPROOSMSCLIENTLib.Site

Set Sites = TableMonitor.Sites

For Each Site In Sitesdata = "Site: " + Site.SiteId + " Name: " + Site.NamelstSite.AddItem dataNext

C++ Sample:

ISitesPtr Sites = NULL;ISitePtr Site = NULL;long lCount = 0;_variant_t vSite;_variant_t vIndex ;HRESULT hResult = NULL;

try {Sites = TableMonitor->GetSites();

if ((lCount = Sites->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

Confidential OSMS API Reference Guide

Page 110: 700136a Epro61 Osms API Ref Guide

3–56 | Monitor Interfaces Aspect Software

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Sites->raw_Item (vIndex,&vSite)) == S_OK ){

Site = vSite.pdispVal;printf("SiteId: %d\n",Site->SiteId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

See Also:

"Authenticate"

"Services"

ConnectDescription:

This method starts a thread that maintains a connection to the Proxy Server. When the connection is established, the TableConnectionUp event is fired. When the connection is down, the TableConnectionDown event is fired. A single connection is shared between TableMonitor objects.

This method first creates DBIClient object and connects to DBI. Then it retrieves OSMS server information. After retrieving OSMS server information, it connects to the OSMS server. Please note that arguments passed to connect method is ignored. You must have DBIClient registry entries in order to make connection.

Syntax:

TableMonitor.Connect SiteId, IPaddress, PortNumber

Arguments/Parameters:

Arguments are ignored. OsmsClient uses DBIClient registry entries.

OSMS API Reference Guide Confidential

Page 111: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–57

ConnectSpecificDescription:

This method is used if you want to connect to multiple site OSMS Server. Do not use this method if you connect to single site OSMS server. In this case, use the Connect method.

Syntax:

MonitorObject.ConnectSpecific SiteId, PrimaryIP, PrimaryPort, BackupIP, BackupPort

Parameters:

MonitorIdDescription:

This property is used to set a user-defined ID for the ServiceMonitor object. This value is returned through all of the event functions.

Syntax:

TableMonitor.MonitorId MonitorId

Parameters:

See Also:

"UserArguments"

Parameter Description

SiteId SiteId

PrimaryIP IPAddress of Primary DBI for the Site

PrimaryPort PortNo of Primary DBI for the Site

BackupIP IPAddress of Backup DBI for the Site

BackupPort PortNo of Backup DBI for the Site

Parameter Description

MonitorId A user-defined long value.

Confidential OSMS API Reference Guide

Page 112: 700136a Epro61 Osms API Ref Guide

3–58 | Monitor Interfaces Aspect Software

UserArgumentsDescription:

This property is used to set a user-defined argument for the TableMonitor object. This value is returned through all of the event functions.

Syntax:

TableMonitor.UserArgument UserArg

Parameters:

See Also:

"MonitorId"

StartMessagePumpDescription:

This method starts a message pump for processing event. It is only to be used in C++ console-based applications.

Syntax:

TM->StartMessagePump

Parameters:

None

VB Sample:

Not applicable.

Parameter Description

UserArg A user-defined long value.

OSMS API Reference Guide Confidential

Page 113: 700136a Epro61 Osms API Ref Guide

Aspect Software Monitor Interfaces | 3–59

C++ Sample:

CoInitialize(NULL);

try{ITableMonitorPtr TM(__uuidof(TableMonitor));

TM->StartMessagePump();}

catch (_com_error& Error){}

CoUninitialize();

Confidential OSMS API Reference Guide

Page 114: 700136a Epro61 Osms API Ref Guide

3–60 | Monitor Interfaces Aspect Software

OSMS API Reference Guide Confidential

Page 115: 700136a Epro61 Osms API Ref Guide

Chapter 4

Event Sink Interfaces

The Event Sink Interfaces are used by C++ applications to sink into the events fired by Monitor objects. VB applications do not require the use of these interfaces.

The following classes are described in this chapter:

• AgentMonitorEventSink

• ServiceMonitorEventSink

• TableMonitorEventSink

AgentMonitorEventSink

ListenToEventsDescription:

This method provides a C++ application with the ability to receive events fired from an AgentMonitor object.

Syntax:

AMS->ListenToEvents(AM)

Parameters:

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try

Parameter Description

AgentMonitorInterface An interface pointer to an AgentMonitor object from which you will receive events.

Aspect Software Confidential OSMS API Reference Guide

Page 116: 700136a Epro61 Osms API Ref Guide

4–2 | Event Sink Interfaces Aspect Software

{IAgentMonitorPtr AM(__uuidof(AgentMonitor));IAgentMonitorEventSinkPtr AMS(__uuidof

(AgentMonitorEventSink));

AMS->SetAgentDataArrivalHandler((long) AgentDataArrival);

AMS->SetConnectionUpHandler((long) ConnectionUpHandler);

AMS->SetConnectionDownHandler((long) ConnectionDownHandler);

AMS->ListenToEvents(AM);

AM->MonitorId = 1;AM->UserArgument = (long)AM;AM->StartMessagePump();AM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

See Also:

"StopListeningToEvents"

SetAgentDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when agent statistical data events are fired from an AgentMonitor object.

Syntax:

AMS->SetAgentDataArrivalHandler((long) AgentDataArrival)

OSMS API Reference Guide Confidential

Page 117: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–3

Parameters:

void (*pfnAgentDataArrivalHandler)(IDispatch* pAgentData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IAgentMonitorPtr AM(__uuidof(AgentMonitor));IAgentMonitorEventSinkPtr AMS(__uuidof(AgentMonitorEventSink));

AMS->SetAgentDataArrivalHandler((long) AgentDataArrival);AMS->SetConnectionUpHandler((long) ConnectionUpHandler);AMS->SetConnectionDownHandler((long) ConnectionDownHandler);AMS->ListenToEvents(AM);

AM->MonitorId = 1;AM->UserArgument = (long)AM;AM->StartMessagePump();AM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetSummaryDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when agent summary statistical data events are fired from an AgentMonitor object.

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 118: 700136a Epro61 Osms API Ref Guide

4–4 | Event Sink Interfaces Aspect Software

Syntax:

AMS->SetSummaryDataArrivalHandler((long) SummaryDataArrival)

Parameters:

void (*pfnSummaryDataArrivalHandler)(IDispatch* pAgentData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IAgentMonitorPtr AM(__uuidof(AgentMonitor));IAgentMonitorEventSinkPtr AMS(__uuidof(AgentMonitorEventSink));

AMS->SetSummaryDataArrivalHandler((long) SummaryDataArrival);AMS->SetConnectionUpHandler((long) ConnectionUpHandler);AMS->SetConnectionDownHandler((long) ConnectionDownHandler);AMS->ListenToEvents(AM);

AM->MonitorId = 1;AM->UserArgument = (long)AM;AM->StartMessagePump();AM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 119: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–5

SetAgentNotifyDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when agent notification statistical data events are fired from an AgentMonitor object.

Syntax:

AMS->SetAgentNotifyDataArrivalHandler((long) NotifyDataArrival)

Parameters:

void (*pfnAgentNotifyDataArrivalHandler)(IDispatch* pNotifyData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IAgentMonitorPtr AM(__uuidof(AgentMonitor));IAgentMonitorEventSinkPtr AMS(__uuidof(AgentMonitorEventSink));

AMS->SetAgentNotifyDataArrivalHandler((long) NotifyDataArrival);AMS->SetConnectionUpHandler((long) ConnectionUpHandler);AMS->SetConnectionDownHandler((long) ConnectionDownHandler);AMS->ListenToEvents(AM);

AM->MonitorId = 1;AM->UserArgument = (long)AM;AM->StartMessagePump();AM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 120: 700136a Epro61 Osms API Ref Guide

4–6 | Event Sink Interfaces Aspect Software

SetConnectionDownHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when a connection down event is fired from an AgentMonitor object.

Syntax:

AMS->SetConnectionDownHandler((long) AgentConnectionDown)

Parameters:

void (*pfnConnectionDownHandler)(int iMonitorId, long lUserArg, int iStatus);

iStatus values:

UNABLE_TO_CONNECT

The CenterCord or Proxy Server is down. The monitor object will continue to try to connect every five seconds.

AUTHENTICATION_FAILURE

The version of the client is incompatible with the version of the server. Install the version of the client compatible with the server before running the application again.

[not sure about this parameter definition format]

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IAgentMonitorPtr AM(__uuidof(AgentMonitor));IAgentMonitorEventSinkPtr AMS(__uuidof(AgentMonitorEventSink));

AMS->SetConnectionUpHandler((long) ConnectionUpHandler);AMS->SetConnectionDownHandler((long) ConnectionDownHandler);AMS->ListenToEvents(AM);

AM->MonitorId = 1;

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 121: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–7

AM->UserArgument = (long)AM;AM->StartMessagePump();AM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetConnectionUpHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when a connection up event is fired from an AgentMonitor object.

Syntax:

AMS->SetConnectionUpHandler((long) AgentConnectionUp)

Parameters:

void (*pfnConnectionUpHandler)(int iMonitorId, long lUserArg);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IAgentMonitorPtr AM(__uuidof(AgentMonitor));IAgentMonitorEventSinkPtr AMS(__uuidof(AgentMonitorEventSink));

AMS->SetConnectionUpHandler((long) ConnectionUpHandler);AMS->SetConnectionDownHandler((long) ConnectionDownHandler);AMS->ListenToEvents(AM);

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 122: 700136a Epro61 Osms API Ref Guide

4–8 | Event Sink Interfaces Aspect Software

AM->MonitorId = 1;AM->UserArgument = (long)AM;AM->StartMessagePump();AM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

StopListeningToEventsDescription:

This method provides a C++ application with the ability to stop receiving events fired from an AgentMonitor object.

Syntax:

AMS->StopListeningToEvents()

Parameters:

None

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IAgentMonitorPtr AM(__uuidof(AgentMonitor));IAgentMonitorEventSinkPtr AMS(__uuidof(AgentMonitorEventSink));

AMS->SetConnectionUpHandler((long) ConnectionUpHandler);AMS->SetConnectionDownHandler((long) ConnectionDownHandler);AMS->ListenToEvents(AM);

AM->MonitorId = 1;AM->UserArgument = (long)AM;AM->StartMessagePump();

OSMS API Reference Guide Confidential

Page 123: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–9

AM->Connect(0,"Ethernet");

…Add custom code here…

AMS->StopListeningToEvents();}

catch (_com_error& Error){}

CoUninitialize();

See Also:

"ListenToEvents"

ServiceMonitorEventSink

ListenToEventsDescription:

This method provides a C++ application with the ability to receive events fired from a ServiceMonitor object.

Syntax:

SMS->ListenToEvents(SM)

Parameters:

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try

Parameter Description

ServiceMonitorInterface An interface pointer to a ServiceMonitor object from which you will receive events.

Confidential OSMS API Reference Guide

Page 124: 700136a Epro61 Osms API Ref Guide

4–10 | Event Sink Interfaces Aspect Software

{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAcdDataArrivalHandler((long) AcdDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

See Also:

"StopListeningToEvents"

SetAcdDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when ACD statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetAcdDataArrivalHandler((long) AcdDataArrival)

Parameters:

void (*pfnAcdDataArrivalHandler)(IDispatch* pAcdData, int iMonitorId);

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 125: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–11

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAcdDataArrivalHandler((long) AcdDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetAgdDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when AGD statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetAgdDataArrivalHandler((long) AgdDataArrival)

Confidential OSMS API Reference Guide

Page 126: 700136a Epro61 Osms API Ref Guide

4–12 | Event Sink Interfaces Aspect Software

Parameters:

void (*pfnAgdDataArrivalHandler)(IDispatch* pAodData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAgdDataArrivalHandler((long) AgdDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetAodDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when AOD statistical data events are fired from a ServiceMonitor object.

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 127: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–13

Syntax:

SMS->SetAodDataArrivalHandler((long) AodDataArrival)

Parameters:

void (*pfnAodDataArrivalHandler)(IDispatch* pAodData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAodDataArrivalHandler((long) AodDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 128: 700136a Epro61 Osms API Ref Guide

4–14 | Event Sink Interfaces Aspect Software

SetCtiDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when CTI statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetCtiDataArrivalHandler((long) CtiDataArrival)

Parameters:

void (*pfnCtiDataArrivalHandler)(IDispatch* pCtiData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetCtiDataArrivalHandler((long) CtiDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 129: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–15

SetIvrDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when IVR statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetIvrDataArrivalHandler((long) CtiDataArrival)

Parameters:

void (*pfnIvrDataArrivalHandler)(IDispatch* pIvrData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetIvrDataArrivalHandler((long) IvrDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 130: 700136a Epro61 Osms API Ref Guide

4–16 | Event Sink Interfaces Aspect Software

SetWorkgroupDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when WORKGROUP statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetWorkgroupDataArrivalHandler((long) WorkgroupDataArrival)

Parameters:

void (*pfnWorkgroupDataArrivalHandler)(IDispatch* pWorkgroupData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetWorkgroupDataArrivalHandler((long) WorkgroupDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 131: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–17

SetServiceNotifyDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when service notification statistical data events are fired from an ServiceMonitor object.

Syntax:

SMS->SetSeviceNotifyDataArrivalHandler((long) NotifyDataArrival)

Parameters:

void (*pfnServiceNotifyDataArrivalHandler)(IDispatch* pNotifyData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetServiceNotifyDataArrivalHandler((long) NotifyDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 132: 700136a Epro61 Osms API Ref Guide

4–18 | Event Sink Interfaces Aspect Software

SetConnectionDownHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when a connection down event is fired from a ServiceMonitor object.

Syntax:

SMS->SetConnectionDownHandler((long) ServiceConnectionDown)

Parameters:

void (*pfnConnectionDownHandler)(int iMonitorId, long lUserArg, int iStatus);

iStatus values:

UNABLE_TO_CONNECT

The CenterCord or Proxy Server is down. The monitor object will continue to try to connect every five seconds.

AUTHENTICATION_FAILURE

The version of the client is incompatible with the version of the server. Install the version of the client compatible with the server before running the application again.

[not sure about the formatting]

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAcdDataArrivalHandler((long) AcdDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 133: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–19

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetConnectionUpHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when a connection up event is fired from a ServiceMonitor object.

Syntax:

SMS->SetConnectionUpHandler((long) ServiceConnectionUp)

Parameters:

void (*pfnConnectionUpHandler)(int iMonitorId, long lUserArg);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAcdDataArrivalHandler((long) AcdDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 134: 700136a Epro61 Osms API Ref Guide

4–20 | Event Sink Interfaces Aspect Software

SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetChatDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when Chat statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetChatDataArrivalHandler((long) ChatDataArrival)

Parameters:

void (*pfnChatDataArrivalHandler)(IDispatch* pChatData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 135: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–21

SMS->SetChatDataArrivalHandler((long) ChatDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetAmdDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when AMD statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetAmdDataArrivalHandler((long) AmdDataArrival)

Parameters:

void (*pfnAmdDataArrivalHandler)(IDispatch* pAmdData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 136: 700136a Epro61 Osms API Ref Guide

4–22 | Event Sink Interfaces Aspect Software

IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAmdDataArrivalHandler((long) AmdDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetFeedApplicationDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when FeedApplication statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetFeedApplicationDataArrivalHandler((long) FeedApplicationDataArrival)

Parameters:

void (*pfnFeedApplicationDataArrivalHandler)(IDispatch* pFeedApplicationData, int iMonitorId);

VB Sample:

Not applicable.

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 137: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–23

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetFeedApplicationDataArrivalHandler((long) FeedApplicationDataArrival);

SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetFeedApplicationQueueDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when FeedApplicationQueue statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetFeedApplicationQueueDataArrivalHandler((long) FeedApplicationQueueDataArrival)

Confidential OSMS API Reference Guide

Page 138: 700136a Epro61 Osms API Ref Guide

4–24 | Event Sink Interfaces Aspect Software

Parameters:

void (*pfnFeedApplicationQueueDataArrivalHandler)(IDispatch* pFeedApplicationQueueData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetFeedApplicationQueueDataArrivalHandler((long) FeedApplicationQueueDataArrival);

SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetAmdSelfServiceSummaryDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when AmdSelfServiceSummary statistical data events are fired from a ServiceMonitor object.

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 139: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–25

Syntax:

SMS->SetAmdSelfServiceSummaryDataArrivalHandler((long) AmdSelfServiceSummaryDataArrival)

Parameters:

void (*pfnAmdSelfServiceSummaryDataArrivalHandler)(IDispatch* pAmdSelfServiceSummaryData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAmdSelfServiceSummaryDataArrivalHandler((long) AmdSelfServiceSummaryDataArrival);

SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 140: 700136a Epro61 Osms API Ref Guide

4–26 | Event Sink Interfaces Aspect Software

SetAmdReviewSummaryDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when AmdReviewSummary statistical data events are fired from a ServiceMonitor object.

Syntax:

SMS->SetAmdReviewSummaryDataArrivalHandler((long) AmdReviewSummaryDataArrival)

Parameters:

void (*pfnAmdReviewSummaryDataArrivalHandler)(IDispatch* pAmdReviewSummaryData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAmdReviewSummaryDataArrivalHandler((long) AmdReviewSummaryDataArrival);

SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 141: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–27

catch (_com_error& Error)

{}

CoUninitialize();

StopListeningToEventsDescription:

This method provides a C++ application with the ability to stop receiving events fired from a ServiceMonitor object.

Syntax:

SMS->StopListeningToEvents()

Parameters:

None

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{IServiceMonitorPtr SM(__uuidof(ServiceMonitor));IServiceMonitorEventSinkPtr SMS(__uuidof(ServiceMonitorEventSink));

SMS->SetAcdDataArrivalHandler((long) AcdDataArrival);SMS->SetConnectionUpHandler((long) ConnectionUpHandler);SMS->SetConnectionDownHandler((long) ConnectionDownHandler);SMS->ListenToEvents(SM);

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

SMS->StopListeningToEvents();}

Confidential OSMS API Reference Guide

Page 142: 700136a Epro61 Osms API Ref Guide

4–28 | Event Sink Interfaces Aspect Software

catch (_com_error& Error)

{}

CoUninitialize();

See Also:

"ListenToEvents"

TableMonitorEventSink

ListenToEventsDescription:

This method provides a C++ application with the ability to receive events fired from a TableMonitor object.

Syntax:

TMS->ListenToEvents(TM)

Parameters:

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{ITableMonitorPtr TM(__uuidof(TableMonitor));ITableMonitorEventSinkPtr TMS(__uuidof(TableMonitorEventSink));

TMS->SetTableDataArrivalHandler((long) TableDataArrival);TMS->SetConnectionUpHandler((long) ConnectionUpHandler);

Parameter Description

TableMonitorInterface An interface pointer to a TableMonitor object from which you will receive events.

OSMS API Reference Guide Confidential

Page 143: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–29

TMS->SetConnectionDownHandler((long) ConnectionDownHandler);TMS->ListenToEvents(TM);

TM->MonitorId = 1;TM->UserArgument = (long)TM;TM->StartMessagePump();TM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

See Also:

"StopListeningToEvents"

SetTableDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when table statistical data events are fired from a TableMonitor object.

Syntax:

TMS->SetTableDataArrivalHandler((long) TableDataArrival)

Parameters:

void (*pfnTableDataArrivalHandler)(IDispatch* pTableData, int iMonitorId);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 144: 700136a Epro61 Osms API Ref Guide

4–30 | Event Sink Interfaces Aspect Software

{ITableMonitorPtr TM(__uuidof(TableMonitor));ITableMonitorEventSinkPtr TMS(__uuidof(TableMonitorEventSink));

TMS->SetTableDataArrivalHandler((long) TableDataArrival);TMS->SetConnectionUpHandler((long) ConnectionUpHandler);TMS->SetConnectionDownHandler((long) ConnectionDownHandler);TMS->ListenToEvents(TM);

TM->MonitorId = 1;TM->UserArgument = (long)TM;TM->StartMessagePump();TM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetTableNotifyDataArrivalHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when Table Notification statistical data events are fired from an TableMonitor object.

Syntax:

TMS->SetTableNotifyDataArrivalHandler((long) NotifyDataArrival)

Parameters:

void (*pfnTableNotifyDataArrivalHandler)(IDispatch* pNotifyData, int iMonitorId);

VB Sample:

Not applicable.

Parameter Description

long A pointer to a function.

OSMS API Reference Guide Confidential

Page 145: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–31

C++ Sample:

CoInitialize(NULL);

try{ITableMonitorPtr TM(__uuidof(TableMonitor));ITableMonitorEventSinkPtr TMS(__uuidof(TableMonitorEventSink));

TMS->SetTableNotifyDataArrivalHandler((long) NotifyDataArrival);TMS->SetConnectionUpHandler((long) ConnectionUpHandler);TMS->SetConnectionDownHandler((long) ConnectionDownHandler);TMS->ListenToEvents(TM);

TM->MonitorId = 1;TM->UserArgument = (long)TM;TM->StartMessagePump();TM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetConnectionDownHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when a connection down event is fired from a TableMonitor object.

Syntax:

TMS->SetConnectionDownHandler((long) TableConnectionDown)

Parameters:

void (*pfnConnectionDownHandler)(int iMonitorId, long lUserArg, int iStatus);

iStatus values:

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 146: 700136a Epro61 Osms API Ref Guide

4–32 | Event Sink Interfaces Aspect Software

UNABLE_TO_CONNECT

The CenterCord or Proxy Server is down. The monitor object will continue to try to connect every five seconds.

AUTHENTICATION_FAILURE

The version of the client is incompatible with the version of the server. Install the version of the client compatible with the server before running the application again.

[not sure of formatting]

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{ITableMonitorPtr TM(__uuidof(TableMonitor));ITableMonitorEventSinkPtr TMS(__uuidof(TableMonitorEventSink));

TMS->SetTableDataArrivalHandler((long) TableDataArrival);TMS->SetConnectionUpHandler((long) ConnectionUpHandler);TMS->SetConnectionDownHandler((long) ConnectionDownHandler);TMS->ListenToEvents(TM);

TM->MonitorId = 1;TM->UserArgument = (long)TM;TM->StartMessagePump();TM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

SetConnectionUpHandlerDescription:

This method provides a C++ application with the ability to set the callback function that is called when a connection up event is fired from a TableMonitor object.

OSMS API Reference Guide Confidential

Page 147: 700136a Epro61 Osms API Ref Guide

Aspect Software Event Sink Interfaces | 4–33

Syntax:

TMS->SetConnectionUpHandler((long) TableConnectionUp)

Parameters:

void (*pfnConnectionUpHandler)(int iMonitorId, long lUserArg);

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{ITableMonitorPtr TM(__uuidof(TableMonitor));ITableMonitorEventSinkPtr TMS(__uuidof(TableMonitorEventSink));

TMS->SetTableDataArrivalHandler((long) TableDataArrival);TMS->SetConnectionUpHandler((long) ConnectionUpHandler);TMS->SetConnectionDownHandler((long) ConnectionDownHandler);TMS->ListenToEvents(TM);

TM->MonitorId = 1;TM->UserArgument = (long)TM;TM->StartMessagePump();TM->Connect(0,"Ethernet");

SM->MonitorId = 1;SM->UserArgument = (long)SM;SM->StartMessagePump();SM->Connect(0,"Ethernet");

…Add custom code here…

}

catch (_com_error& Error){}

CoUninitialize();

Parameter Description

long A pointer to a function.

Confidential OSMS API Reference Guide

Page 148: 700136a Epro61 Osms API Ref Guide

4–34 | Event Sink Interfaces Aspect Software

StopListeningToEventsDescription:

This method provides a C++ application with the ability to stop receiving events fired from a TableMonitor object.

Syntax:

TMS->StopListeningToEvents()

Parameters:

None

VB Sample:

Not applicable.

C++ Sample:

CoInitialize(NULL);

try{ITableMonitorPtr TM(__uuidof(TableMonitor));ITableMonitorEventSinkPtr TMS(__uuidof(TableMonitorEventSink));TMS->SetTableDataArrivalHandler((long) TableDataArrival);TMS->SetConnectionUpHandler((long) ConnectionUpHandler);TMS->SetConnectionDownHandler((long) ConnectionDownHandler);TMS->ListenToEvents(TM);TM->MonitorId = 1;TM->UserArgument = (long)TM;TM->StartMessagePump();TM->Connect(0,"Ethernet");SM->Connect(0,"Ethernet");

…Add custom code here…

TMS->StopListeningToEvents();}

catch (_com_error& Error){}

CoUninitialize();

See Also:

"ListenToEvents"

OSMS API Reference Guide Confidential

Page 149: 700136a Epro61 Osms API Ref Guide

Chapter 5

Data Interfaces

The Data Interfaces are passed through the event handlers to provide you with statistical data. These objects have many properties that give you access to the data stored within them.

The following classes are found within the data interfaces:

• AcdData

• AgdData

• AgentData

• AmdData

• AmdSummaryByQueueData

• AodData

• ChatData

• CtiData

• DistListMailQueueData

• FeedApplicationData

• FeedApplicationData

• IvrData

• NotificationData

• TableData

• WorkgroupData

AcdData

The properties of the AcdData class are described in the following subsections.

AgentsInActiveDescription:

This property returns the current number of agents in the state of Active for the service specified by the acquired AcdData object.

Aspect Software Confidential OSMS API Reference Guide

Page 150: 700136a Epro61 Osms API Ref Guide

5–2 | Data Interfaces Aspect Software

Syntax:

IntegerValue = AcdData.AgentsInActive

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival (ByVal AcdData As Object, ByVal MonitorId As Long)

Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInActive)

Set AcdDataObject = Nothing

End Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInActive = pAcdDataPtr->AgentsInActive;

short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInActive: %d\n",iMonitorId,siServiceId,siAgentsInActive);

}

AgentsInHoldDescription:

This property returns the current number of agents in the state of Hold for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.AgentsInHold

OSMS API Reference Guide Confidential

Page 151: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–3

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInHold)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInHold = pAcdDataPtr->AgentsInHold;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInHold: %d\n",iMonitorId,siServiceId,siAgentsInHold);

}

AgentsInIdleDescription:

This property returns the current number of agents in the state of Idle for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.AgentsInIdle

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)

Confidential OSMS API Reference Guide

Page 152: 700136a Epro61 Osms API Ref Guide

5–4 | Data Interfaces Aspect Software

Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInIdle)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInIdle = pAcdDataPtr->AgentsInIdle;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInIdle: %d\n",iMonitorId,siServiceId,siAgentsInIdle);

}

AgentsInInternalDescription:

This property returns the current number of agents in the state of Internal for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.AgentsInInternal

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInInternal)

Set AcdDataObject = NothingEnd Sub

OSMS API Reference Guide Confidential

Page 153: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–5

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInInternal = pAcdDataPtr->AgentsInInternal;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInInternal: %d\n",iMonitorId,siServiceId,siAgentsInInternal);

}

AgentsInManualDescription:

This property returns the current number of agents in the state of Manual for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.AgentsInManual

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInManual)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInManual = pAcdDataPtr->AgentsInManual;short siServiceId = pAcdDataPtr->ServiceId;

Confidential OSMS API Reference Guide

Page 154: 700136a Epro61 Osms API Ref Guide

5–6 | Data Interfaces Aspect Software

printf("MonitorId: %d \t ServiceId: %d \t AgentsInManual: %d\n",iMonitorId,siServiceId,siAgentsInManual);

}

AgentsInNotReadyDescription:

This property returns the current number of agents in a state of Not Ready for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.AgentsInNotReady

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInNotReady)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInNotReady = pAcdDataPtr->AgentsInNotReady;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInNotReady: %d\n",iMonitorId,siServiceId,siAgentsInNotReady);

}

OSMS API Reference Guide Confidential

Page 155: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–7

AgentsInOtherDescription:

This property returns the current number of agents in a state of Other for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.AgentsInOther

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInOther)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInOther = pAcdDataPtr->AgentsInOther;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInOther: %d\n",iMonitorId,siServiceId,siAgentsInOther);

}

AgentsInPreviewDescription:

This property returns the current number of agents in a state of Preview for the service specified by the acquired AcdData object.

Confidential OSMS API Reference Guide

Page 156: 700136a Epro61 Osms API Ref Guide

5–8 | Data Interfaces Aspect Software

Syntax:

IntegerValue = AcdData.AgentsInPreview

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInPreview)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInPreview = pAcdDataPtr->AgentsInPreview;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInPreview: %d\n",iMonitorId,siServiceId,siAgentsInPreview);

}

AgentsInWrapDescription:

This property returns the current number of agents in a state of Wrap for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.AgentsInWrap

Property Type:

VB: integerC++: short

OSMS API Reference Guide Confidential

Page 157: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–9

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsInWrap)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInWrap = pAcdDataPtr->AgentsInWrap;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInWrap: %d\n",iMonitorId,siServiceId,siAgentsInWrap);

}

AgentsLoggedInDescription:

This property returns the current number of agents in a state of Logged In for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.AgentsLoggedIn

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AgentsLoggedIn)

Confidential OSMS API Reference Guide

Page 158: 700136a Epro61 Osms API Ref Guide

5–10 | Data Interfaces Aspect Software

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsLoggedIn = pAcdDataPtr->AgentsLoggedIn;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsLoggedIn: %d\n",iMonitorId,siServiceId,siAgentsLoggedIn);

}

ApplicationDescription:

This property returns the current application to which the service specified by the acquired AcdData object belongs.

Syntax:

StringValue = AcdData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = AcdDataObject.Application

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

OSMS API Reference Guide Confidential

Page 159: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–11

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

char szApplication[81];ConvertBSTRToSTR(pAcdDataPtr->Application,szApplication);short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",iMonitorId,siServiceId,szApplication);

}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.ApplicationId)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){

Confidential OSMS API Reference Guide

Page 160: 700136a Epro61 Osms API Ref Guide

5–12 | Data Interfaces Aspect Software

IAcdDataPtr pAcdDataPtr = pAcdData;

short siApplicationId = pAcdDataPtr->ApplicationId;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

AvgAgentActiveTimeDescription:

This property returns the average amount of time all agents have been in the state of Active for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.AvgAgentActiveTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AvgAgentActiveTime)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iAvgAgentActiveTime = pAcdDataPtr->AvgAgentActiveTime;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentActiveTime: %d\n",iMonitorId,siServiceId,iAvgAgentActiveTime);

}

OSMS API Reference Guide Confidential

Page 161: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–13

AvgAgentIdleTimeDescription:

This property returns the average amount of time all agents have been in the state of Idle for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.AvgAgentIdleTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AvgAgentIdleTime)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iAvgAgentIdleTime = pAcdDataPtr->AvgAgentIdleTime;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentIdleTime: %d\n",iMonitorId,siServiceId,iAvgAgentIdleTime);

}

AvgAgentWrapTimeDescription:

This property returns the average amount of time all agents have been in the state of Wrap for the service specified by the acquired AcdData object.

Confidential OSMS API Reference Guide

Page 162: 700136a Epro61 Osms API Ref Guide

5–14 | Data Interfaces Aspect Software

Syntax:

LongValue = AcdData.AvgAgentWrapTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AvgAgentWrapTime)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iAvgAgentWrapTime = pAcdDataPtr->AvgAgentWrapTime;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentWrapTime: %d\n",iMonitorId,siServiceId,iAvgAgentWrapTime);

}

AvgSpeedOfAnswerDescription:

This property returns the average amount of time it takes for a customer to pick up the phone for the service specified by the acquired AcdData object.

Syntax:

FloatValue = AcdData.AvgSpeedOfAnswer

Property Type:

VB: floatC++: float

OSMS API Reference Guide Confidential

Page 163: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–15

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AvgSpeedOfAnswer)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

float fAvgSpeedOfAnswer = pAcdDataPtr->AvgSpeedOfAnswer;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgSpeedOfAnswer: %d\n",iMonitorId,siServiceId,fAvgSpeedOfAnswer);

}

AvgTimeInQueueDescription:

This property returns the average amount of time a call stays in the queue before being processed for the service specified by the acquired AcdData object.

Syntax:

FloatValue = AcdData.AvgTimeInQueue

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AvgTimeInQueue)

Confidential OSMS API Reference Guide

Page 164: 700136a Epro61 Osms API Ref Guide

5–16 | Data Interfaces Aspect Software

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

float fAvgTimeInQueue = pAcdDataPtr->AvgTimeInQueue;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgTimeInQueue: %d\n",iMonitorId,siServiceId,fAvgTimeInQueue);

}

AvgTimeToAbandonDescription:

This property returns the average amount of time it takes for a customer to hang up the phone while waiting in queue for the service specified by the acquired AcdData object.

Syntax:

FloatValue = AcdData.AvgTimeToAbandon

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.AvgTimeToAbandon)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

OSMS API Reference Guide Confidential

Page 165: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–17

float fAvgTimeToAbandon = pAcdDataPtr->AvgTimeToAbandon;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgTimeToAbandon: %d\n",iMonitorId,siServiceId,fAvgTimeToAbandon);

}

CallsAbandonedBeforeQueueDescription:

This property returns the amount of calls that have been terminated before being placed in the queue for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsAbandonedBeforeQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsAbandonedBeforeQueue)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsAbandonedBeforeQueue = pAcdDataPtr->CallsAbandonedBeforeQueue;

short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAbandonedBeforeQueue: %d\n",iMonitorId,siServiceId,iCallsAbandonedBeforeQueue);

}

Confidential OSMS API Reference Guide

Page 166: 700136a Epro61 Osms API Ref Guide

5–18 | Data Interfaces Aspect Software

CallsAbandonedInQueueDescription:

This property returns the amount of calls terminated by customer after being placed in the queue for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsAbandonedInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsAbandonedInQueue)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsAbandonedInQueue = pAcdDataPtr->CallsAbandonedInQueue;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAbandonedInQueue: %d\n",iMonitorId,siServiceId,iCallsAbandonedInQueue);

}

CallsAnsweredDescription:

This property returns the amount of calls that have been answered for the service specified by the acquired AcdData object.

OSMS API Reference Guide Confidential

Page 167: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–19

Syntax:

LongValue = AcdData.CallsAnswered

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsAnswered)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsAnswered = pAcdDataPtr->CallsAnswered;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAnswered: %d\n",iMonitorId,siServiceId,iCallsAnswered);

}

CallsInProgressDescription:

This property returns the amount of calls currently in progress for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsInProgress

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 168: 700136a Epro61 Osms API Ref Guide

5–20 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsInProgress)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsInProgress = pAcdDataPtr->CallsInProgress;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInProgress: %d\n",iMonitorId,siServiceId,iCallsInProgress);

}

CallsInQueueDescription:

This property returns the amount of calls currently in queue for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsInQueue)

OSMS API Reference Guide Confidential

Page 169: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–21

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsInQueue = pAcdDataPtr->CallsInQueue;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInQueue: %d\n",iMonitorId,siServiceId,iCallsInQueue);

}

CallsInVoiceMailDescription:

This property returns the amount of calls currently in voice mail for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsInVoiceMail

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsInVoiceMail)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

Confidential OSMS API Reference Guide

Page 170: 700136a Epro61 Osms API Ref Guide

5–22 | Data Interfaces Aspect Software

int iCallsInVoiceMail = pAcdDataPtr->CallsInVoiceMail;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInVoiceMail: %d\n",iMonitorId,siServiceId,iCallsInVoiceMail);

}

CallsOfferedDescription:

This property returns the amount of calls that have been offered the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsOffered

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsOffered)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsOffered = pAcdDataPtr->CallsOffered;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsOffered: %d\n",iMonitorId,siServiceId,iCallsOffered);

}

OSMS API Reference Guide Confidential

Page 171: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–23

CallsOverflowedDescription:

This property returns the amount of calls that have been overflowed for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsOverflowed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsOverflowed)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsOverflowed = pAcdDataPtr->CallsOverflowed;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsOverflowed: %d\n",iMonitorId,siServiceId,iCallsOverflowed);

}

CallsRejectedDescription:

This property returns the amount of calls that have been rejected for the service specified by the acquired AcdData object.

Confidential OSMS API Reference Guide

Page 172: 700136a Epro61 Osms API Ref Guide

5–24 | Data Interfaces Aspect Software

Syntax:

LongValue = AcdData.CallsRejected

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsRejected)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsRejected = pAcdDataPtr->CallsRejected;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsRejected: %d\n",iMonitorId,siServiceId,iCallsRejected);

}

CallsReroutedDescription:

This property returns the amount of calls that have been rerouted for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsRerouted

Property Type:

VB: longC++: integer

OSMS API Reference Guide Confidential

Page 173: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–25

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsRerouted)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsRerouted = pAcdDataPtr->CallsRerouted;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsRerouted: %d\n",iMonitorId,siServiceId,iCallsRerouted);

}

CallsServicedWithinServiceLevelDescription:

This property returns the amount of calls serviced within the target queue time for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsServicedWithinServiceLevel

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsServicedWithinServiceLevel)

Confidential OSMS API Reference Guide

Page 174: 700136a Epro61 Osms API Ref Guide

5–26 | Data Interfaces Aspect Software

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsServicedWithinServiceLevel = pAcdDataPtr->CallsServicedWithinServiceLevel;

short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsServicedWithinServiceLevel: %d\n",iMonitorId,siServiceId,iCallsServicedWithinServiceLevel);

}

CallsTransferredToAgentDescription:

This property returns the amount of calls transferred to an agent for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsTransferredToAgent

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsTransferredToAgent)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){

OSMS API Reference Guide Confidential

Page 175: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–27

IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsTransferredToAgent = pAcdDataPtr->CallsTransferredToAgent;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToAgent: %d\n",iMonitorId,siServiceId,iCallsTransferredToAgent);

}

CallsTransferredToExternalDescription:

This property returns the amount of calls transferred to an external source for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsTransferredToExternal

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsTransferredToExternal)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsTransferredToExternal = pAcdDataPtr->CallsTransferredToExternal;

short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToExternal: %d\n",iMonitorId,siServiceId,iCallsTransferredToExternal);

}

Confidential OSMS API Reference Guide

Page 176: 700136a Epro61 Osms API Ref Guide

5–28 | Data Interfaces Aspect Software

CallsTransferredToServiceDescription:

This property returns the amount of calls transferred to another service for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.CallsTransferredToService

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CallsTransferredToService)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCallsTransferredToService = pAcdDataPtr->CallsTransferredToService;

short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToService: %d\n",iMonitorId,siServiceId,iCallsTransferredToService);

}

CurrentLongestQueueWaitSecondsDescription:

This property returns the current high-water mark for queue wait time for the service specified by the acquired AcdData object.

OSMS API Reference Guide Confidential

Page 177: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–29

Syntax:

LongValue = AcdData.CurrentLongestQueueWaitSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.CurrentLongestQueueWaitSeconds)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iCurrentLongestQueueWaitSeconds = pAcdDataPtr->CurrentLongestQueueWaitSeconds;

short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CurrentLongestQueueWaitSeconds: %d\n",iMonitorId,siServiceId,iCurrentLongestQueueWaitSeconds);

}

MaxCallsInQueueDescription:

This property returns the high-water mark for the number of calls in queue for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.MaxCallsInQueue

Confidential OSMS API Reference Guide

Page 178: 700136a Epro61 Osms API Ref Guide

5–30 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.MaxCallsInQueue)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iMaxCallsInQueue = pAcdDataPtr->MaxCallsInQueue;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxCallsInQueue: %d\n",iMonitorId,siServiceId,iMaxCallsInQueue);

}

MaxWaitInQueueDescription:

This property returns the high-water mark for the wait time in queue for the service specified by the acquired AcdData object.

Syntax:

LongValue = AcdData.MaxWaitInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)

OSMS API Reference Guide Confidential

Page 179: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–31

Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.MaxWaitInQueue)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

int iMaxWaitInQueue = pAcdDataPtr->MaxWaitInQueue;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxWaitInQueue: %d\n",iMonitorId,siServiceId,iMaxWaitInQueue);

}

OccupancyDescription:

This property returns agents’ productive time for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.Occupancy

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.Occupancy)

Set AcdDataObject = NothingEnd Sub

Confidential OSMS API Reference Guide

Page 180: 700136a Epro61 Osms API Ref Guide

5–32 | Data Interfaces Aspect Software

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siOccupancy = pAcdDataPtr->Occupancy;short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Occupancy: %d\n",iMonitorId,siServiceId,siOccupancy);

}

PercentServiceWithinServiceLevelDescription:

This property returns the quotient of CallsServicedWithinServiceLevel by CallsOffered for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.PercentServiceWithinServiceLevel

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.PercentServiceWithServiceLevel)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

float fPercentServiceWithinServiceLevel = pAcdDataPtr->PercentServiceWithinServiceLevel;

short siServiceId = pAcdDataPtr->ServiceId;

OSMS API Reference Guide Confidential

Page 181: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–33

printf("MonitorId: %d \t ServiceId: %d \t PercentServiceWithinServiceLevel: %d\n",iMonitorId,siServiceId,fPercentServiceWithinServiceLevel);

}

ServiceDescription:

This property returns the name of the service for the service specified by the acquired AcdData object.

Syntax:

StringValue = AcdData.Service

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = AcdDataObject.Service

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

Confidential OSMS API Reference Guide

Page 182: 700136a Epro61 Osms API Ref Guide

5–34 | Data Interfaces Aspect Software

char szService[81];ConvertBSTRToSTR(pAcdDataPtr->Service,szService);short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.ServiceId)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

OSMS API Reference Guide Confidential

Page 183: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–35

ServiceTypeDescription:

This property returns the name of the service type for the service specified by the acquired AcdData object.

Syntax:

StringValue = AcdData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = AcdDataObject.ServiceType

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

char szServiceType[81];ConvertBSTRToSTR(pAcdDataPtr->ServiceType,szServiceType);short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceType: %s\n",iMonitorId,siServiceId,szServiceType);

}

Confidential OSMS API Reference Guide

Page 184: 700136a Epro61 Osms API Ref Guide

5–36 | Data Interfaces Aspect Software

ServiceTypeIdDescription:

This property returns the service-type ID for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.ServiceTypeId)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siServiceTypeId = pAcdDataPtr->ServiceTypeId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTypeId %d\n",iMonitorId,siServiceId,siServiceTypeId);

}

StartTimeMilitaryDescription:

This property returns the time, in military, when the service was started for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.StartTimeMilitary

OSMS API Reference Guide Confidential

Page 185: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–37

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.StartTimeMilitary)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siStartTimeMilitary = pAcdDataPtr->StartTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StartTimeMilitary %d\n",iMonitorId,siServiceId,siStartTimeMilitary);

}

StatusDescription:

This property returns the name of the current status for the service specified by the acquired AcdData object.

Syntax:

StringValue = AcdData.Status

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdData

Confidential OSMS API Reference Guide

Page 186: 700136a Epro61 Osms API Ref Guide

5–38 | Data Interfaces Aspect Software

Set AcdDataObject = AcdData

MSF.Text = AcdDataObject.Status

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

char szStatus[81];ConvertBSTRToSTR(pAcdDataPtr->Status,szStatus);short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status: %s\n",iMonitorId,siServiceId,szStatus);

}

StatusIdDescription:

This property returns the name of the current status ID for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.StatusId

Property Type:

VB: integerC++: short

OSMS API Reference Guide Confidential

Page 187: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–39

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.StatusId)

Set AcdDataObject = NothingEnd Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siStatusId = pAcdDataPtr->StatusId;

printf("MonitorId: %d \t ServiceId: %d \t StatusId %d\n",iMonitorId,siServiceId,siStatusId);

}

StopTimeMilitaryDescription:

This property returns the time, in military, when the service was stopped for the service specified by the acquired AcdData object.

Syntax:

IntegerValue = AcdData.StopTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AcdDataArrival(ByVal AcdData As Object, ByVal MonitorId As Long)Dim AcdDataObject As CCPROOSMSCLIENTLib.AcdDataSet AcdDataObject = AcdData

MSF.Text = Str(AcdDataObject.StopTimeMilitary)

Set AcdDataObject = NothingEnd Sub

Confidential OSMS API Reference Guide

Page 188: 700136a Epro61 Osms API Ref Guide

5–40 | Data Interfaces Aspect Software

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siStopTimeMilitary = pAcdDataPtr->StopTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StopTimeMilitary %d\n",iMonitorId,siServiceId,siStopTimeMilitary);

}

GetAcdDataDescription:

This method returns a raw pointer to the data stored in the AcdData component.

Syntax:

AcdData->GetAcdData((long) &pAcdStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

DAcdStatistics* pAcdStats;pAcdDataPtr->GetAcdData((long)&pAcdStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pAcdStats->siServiceId);

}

Parameter Description

Long A casted pointer to a DAcdStatistics structure.

OSMS API Reference Guide Confidential

Page 189: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–41

AgdData

The properties of the AgdData class are described in the following subsections.

AgentsInActiveDescription:

This property returns the current number of agents in the state of Active for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.AgentsInActive

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival (ByVal AgdData As Object, ByVal MonitorId As Long)

Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsInActive)

Set AcdDataObject = Nothing

End Sub

C++ Sample:

void AcdDataArrival(IDispatch* pAcdData, int iMonitorId){IAcdDataPtr pAcdDataPtr = pAcdData;

short siAgentsInActive = pAcdDataPtr->AgentsInActive;

short siServiceId = pAcdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInActive: %d\n",iMonitorId,siServiceId,siAgentsInActive);

}

Confidential OSMS API Reference Guide

Page 190: 700136a Epro61 Osms API Ref Guide

5–42 | Data Interfaces Aspect Software

AgentsInHoldDescription:

This property returns the current number of agents in the state of Hold for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.AgentsInHold

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsInHold)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siAgentsInHold = pAgdDataPtr->AgentsInHold;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInHold: %d\n",iMonitorId,siServiceId,siAgentsInHold);

}

AgentsInIdleDescription:

This property returns the current number of agents in the state of Idle for the service specified by the acquired AgdData object.

OSMS API Reference Guide Confidential

Page 191: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–43

Syntax:

IntegerValue = AgdData.AgentsInIdle

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsInIdle)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siAgentsInIdle = pAgdDataPtr->AgentsInIdle;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInIdle: %d\n",iMonitorId,siServiceId,siAgentsInIdle);

}

AgentsInInternalDescription:

This property returns the current number of agents in the state of Internal for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.AgentsInInternal

Property Type:

VB: integerC++: short

Confidential OSMS API Reference Guide

Page 192: 700136a Epro61 Osms API Ref Guide

5–44 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsInInternal)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siAgentsInInternal = pAgdDataPtr->AgentsInInternal;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInInternal: %d\n",iMonitorId,siServiceId,siAgentsInInternal);

}

AgentsInManualDescription:

This property returns the current number of agents in the state of Manual for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.AgentsInManual

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsInManual)

OSMS API Reference Guide Confidential

Page 193: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–45

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siAgentsInManual = pAgdDataPtr->AgentsInManual;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInManual: %d\n",iMonitorId,siServiceId,siAgentsInManual);

}

AgentsInNotReadyDescription:

This property returns the current number of agents in a state of Not Ready for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.AgentsInNotReady

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsInNotReady)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

Confidential OSMS API Reference Guide

Page 194: 700136a Epro61 Osms API Ref Guide

5–46 | Data Interfaces Aspect Software

short siAgentsInNotReady = pAgdDataPtr->AgentsInNotReady;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInNotReady: %d\n",iMonitorId,siServiceId,siAgentsInNotReady);

}

AgentsInOtherDescription:

This property returns the current number of agents in a state of Other for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.AgentsInOther

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsInOther)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siAgentsInOther = pAgdDataPtr->AgentsInOther;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInOther: %d\n",iMonitorId,siServiceId,siAgentsInOther);

}

OSMS API Reference Guide Confidential

Page 195: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–47

AgentsInWrapDescription:

This property returns the current number of agents in a state of Wrap for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.AgentsInWrap

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsInWrap)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siAgentsInWrap = pAgdDataPtr->AgentsInWrap;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInWrap: %d\n",iMonitorId,siServiceId,siAgentsInWrap);

}

AgentsLoggedInDescription:

This property returns the current number of agents in a state of Logged In for the service specified by the acquired AgdData object.

Confidential OSMS API Reference Guide

Page 196: 700136a Epro61 Osms API Ref Guide

5–48 | Data Interfaces Aspect Software

Syntax:

IntegerValue = AgdData.AgentsLoggedIn

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AgentsLoggedIn)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siAgentsLoggedIn = pAgdDataPtr->AgentsLoggedIn;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsLoggedIn: %d\n",iMonitorId,siServiceId,siAgentsLoggedIn);

}

ApplicationDescription:

This property returns the current application to which the service specified by the acquired AgdData object belongs.

Syntax:

StringValue = AgdData.Application

Property Type:

VB: stringC++: BSTR

OSMS API Reference Guide Confidential

Page 197: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–49

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = AgdDataObject.Application

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

char szApplication[81];ConvertBSTRToSTR(pAgdDataPtr->Application,szApplication);short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",iMonitorId,siServiceId,szApplication);

}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.ApplicationId

Confidential OSMS API Reference Guide

Page 198: 700136a Epro61 Osms API Ref Guide

5–50 | Data Interfaces Aspect Software

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.ApplicationId)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siApplicationId = pAgdDataPtr->ApplicationId;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

AvgAgentActiveTimeDescription:

This property returns the average amount of time all agents have been in the state of Active for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.AvgAgentActiveTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)

OSMS API Reference Guide Confidential

Page 199: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–51

Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AvgAgentActiveTime)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iAvgAgentActiveTime = pAgdDataPtr->AvgAgentActiveTime;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentActiveTime: %d\n",iMonitorId,siServiceId,iAvgAgentActiveTime);

}

AvgAgentIdleTimeDescription:

This property returns the average amount of time all agents have been in the state of Idle for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.AvgAgentIdleTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AvgAgentIdleTime)

Set AgdDataObject = NothingEnd Sub

Confidential OSMS API Reference Guide

Page 200: 700136a Epro61 Osms API Ref Guide

5–52 | Data Interfaces Aspect Software

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iAvgAgentIdleTime = pAgdDataPtr->AvgAgentIdleTime;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentIdleTime: %d\n",iMonitorId,siServiceId,iAvgAgentIdleTime);

}

AvgAgentWrapTimeDescription:

This property returns the average amount of time all agents have been in the state of Wrap for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.AvgAgentWrapTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AvgAgentWrapTime)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iAvgAgentWrapTime = pAgdDataPtr->AvgAgentWrapTime;short siServiceId = pAgdDataPtr->ServiceId;

OSMS API Reference Guide Confidential

Page 201: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–53

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentWrapTime: %d\n",iMonitorId,siServiceId,iAvgAgentWrapTime);

}

AvgSpeedOfAnswerDescription:

This property returns the average amount of time it takes for a customer to pick up the phone for the service specified by the acquired AgdData object.

Syntax:

FloatValue = AgdData.AvgSpeedOfAnswer

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AvgSpeedOfAnswer)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

float fAvgSpeedOfAnswer = pAgdDataPtr->AvgSpeedOfAnswer;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgSpeedOfAnswer: %d\n",iMonitorId,siServiceId,fAvgSpeedOfAnswer);

}

Confidential OSMS API Reference Guide

Page 202: 700136a Epro61 Osms API Ref Guide

5–54 | Data Interfaces Aspect Software

AvgTimeInQueueDescription:

This property returns the average amount of time a call stays in the queue before being processed for the service specified by the acquired AgdData object.

Syntax:

FloatValue = AgdData.AvgTimeInQueue

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AvgTimeInQueue)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

float fAvgTimeInQueue = pAgdDataPtr->AvgTimeInQueue;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgTimeInQueue: %d\n",iMonitorId,siServiceId,fAvgTimeInQueue);

}

AvgTimeToAbandonDescription:

This property returns the average amount of time it takes for a customer to hang up the phone while waiting in queue for the service specified by the acquired AgdData object.

OSMS API Reference Guide Confidential

Page 203: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–55

Syntax:

FloatValue = AgdData.AvgTimeToAbandon

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.AvgTimeToAbandon)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

float fAvgTimeToAbandon = pAgdDataPtr->AvgTimeToAbandon;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgTimeToAbandon: %d\n",iMonitorId,siServiceId,fAvgTimeToAbandon);

}

CallsAnsweredDescription:

This property returns the amount of calls that have been answered for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CallsAnswered

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 204: 700136a Epro61 Osms API Ref Guide

5–56 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CallsAnswered)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iCallsAnswered = pAgdDataPtr->CallsAnswered;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAnswered: %d\n",iMonitorId,siServiceId,iCallsAnswered);

}

CallsInQueueDescription:

This property returns the amount of calls currently in queue for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CallsInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CallsInQueue)

OSMS API Reference Guide Confidential

Page 205: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–57

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iCallsInQueue = pAgdDataPtr->CallsInQueue;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInQueue: %d\n",iMonitorId,siServiceId,iCallsInQueue);

}

CallsOfferedDescription:

This property returns the amount of calls that have been offered the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CallsOffered

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CallsOffered)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

Confidential OSMS API Reference Guide

Page 206: 700136a Epro61 Osms API Ref Guide

5–58 | Data Interfaces Aspect Software

int iCallsOffered = pAgdDataPtr->CallsOffered;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsOffered: %d\n",iMonitorId,siServiceId,iCallsOffered);

}

CallsOverflowedDescription:

This property returns the amount of calls that have been overflowed for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CallsOverflowed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CallsOverflowed)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iCallsOverflowed = pAgdDataPtr->CallsOverflowed;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsOverflowed: %d\n",iMonitorId,siServiceId,iCallsOverflowed);

}

OSMS API Reference Guide Confidential

Page 207: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–59

CallsRejectedDescription:

This property returns the amount of calls that have been rejected for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CallsRejected

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CallsRejected)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iCallsRejected = pAgdDataPtr->CallsRejected;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsRejected: %d\n",iMonitorId,siServiceId,iCallsRejected);

}

CallsReroutedDescription:

This property returns the amount of calls that have been rerouted for the service specified by the acquired AgdData object.

Confidential OSMS API Reference Guide

Page 208: 700136a Epro61 Osms API Ref Guide

5–60 | Data Interfaces Aspect Software

Syntax:

LongValue = AgdData.CallsRerouted

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CallsRerouted)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iCallsRerouted = pAgdDataPtr->CallsRerouted;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsRerouted: %d\n",iMonitorId,siServiceId,iCallsRerouted);

}

CallsServicedWithinServiceLevelDescription:

This property returns the amount of calls serviced within the target queue time for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CallsServicedWithinServiceLevel

Property Type:

VB: longC++: integer

OSMS API Reference Guide Confidential

Page 209: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–61

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CallsServicedWithinServiceLevel)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iCallsServicedWithinServiceLevel = pAgdDataPtr->CallsServicedWithinServiceLevel;

short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsServicedWithinServiceLevel: %d\n",iMonitorId,siServiceId,iCallsServicedWithinServiceLevel);

}

CallsTransferredToAgentDescription:

This property returns the amount of calls transferred to an agent for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CallsTransferredToAgent

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

Confidential OSMS API Reference Guide

Page 210: 700136a Epro61 Osms API Ref Guide

5–62 | Data Interfaces Aspect Software

MSF.Text = Str(AgdDataObject.CallsTransferredToAgent)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iCallsTransferredToAgent = pAgdDataPtr->CallsTransferredToAgent;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToAgent: %d\n",iMonitorId,siServiceId,iCallsTransferredToAgent);

}

CallsTransferredToServiceDescription:

This property returns the amount of calls transferred to another service for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CallsTransferredToService

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CallsTransferredToService)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){

OSMS API Reference Guide Confidential

Page 211: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–63

IAgdDataPtr pAgdDataPtr = pAgdData;

int iCallsTransferredToService = pAgdDataPtr->CallsTransferredToService;

short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToService: %d\n",iMonitorId,siServiceId,iCallsTransferredToService);

}

CurrentLongestQueueWaitSecondsDescription:

This property returns the current high-water mark for queue wait time for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.CurrentLongestQueueWaitSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.CurrentLongestQueueWaitSeconds)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iCurrentLongestQueueWaitSeconds = pAgdDataPtr->CurrentLongestQueueWaitSeconds;

short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CurrentLongestQueueWaitSeconds: %d\n",iMonitorId,siServiceId,

Confidential OSMS API Reference Guide

Page 212: 700136a Epro61 Osms API Ref Guide

5–64 | Data Interfaces Aspect Software

iCurrentLongestQueueWaitSeconds);}

MaxCallsInQueueDescription:

This property returns the high-water mark for the number of calls in queue for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.MaxCallsInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.MaxCallsInQueue)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iMaxCallsInQueue = pAgdDataPtr->MaxCallsInQueue;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxCallsInQueue: %d\n",iMonitorId,siServiceId,iMaxCallsInQueue);

}

OSMS API Reference Guide Confidential

Page 213: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–65

MaxWaitInQueueDescription:

This property returns the high-water mark for the wait time in queue for the service specified by the acquired AgdData object.

Syntax:

LongValue = AgdData.MaxWaitInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.MaxWaitInQueue)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

int iMaxWaitInQueue = pAgdDataPtr->MaxWaitInQueue;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxWaitInQueue: %d\n",iMonitorId,siServiceId,iMaxWaitInQueue);

}

OccupancyDescription:

This property returns agents’ productive time for the service specified by the acquired AgdData object.

Confidential OSMS API Reference Guide

Page 214: 700136a Epro61 Osms API Ref Guide

5–66 | Data Interfaces Aspect Software

Syntax:

IntegerValue = AgdData.Occupancy

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.Occupancy)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siOccupancy = pAgdDataPtr->Occupancy;short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Occupancy: %d\n",iMonitorId,siServiceId,siOccupancy);

}

PercentServiceWithinServiceLevelDescription:

This property returns the quotient of CallsServicedWithinServiceLevel by CallsOffered for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.PercentServiceWithinServiceLevel

Property Type:

VB: float9C++: float

OSMS API Reference Guide Confidential

Page 215: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–67

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.PercentServiceWithServiceLevel)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

float fPercentServiceWithinServiceLevel = pAgdDataPtr->PercentServiceWithinServiceLevel;

short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t PercentServiceWithinServiceLevel: %d\n",iMonitorId,siServiceId,fPercentServiceWithinServiceLevel);

}

ServiceDescription:

This property returns the name of the service for the service specified by the acquired AgdData object.

Syntax:

StringValue = AgdData.Service

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

Confidential OSMS API Reference Guide

Page 216: 700136a Epro61 Osms API Ref Guide

5–68 | Data Interfaces Aspect Software

MSF.Text = AgdDataObject.Service

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

char szService[81];ConvertBSTRToSTR(pAgdDataPtr->Service,szService);short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdData

OSMS API Reference Guide Confidential

Page 217: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–69

Set AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.ServiceId)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

ServiceTypeDescription:

This property returns the name of the service type for the service specified by the acquired AgdData object.

Syntax:

StringValue = AgdData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = AgdDataObject.ServiceType

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){

Confidential OSMS API Reference Guide

Page 218: 700136a Epro61 Osms API Ref Guide

5–70 | Data Interfaces Aspect Software

int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

char szServiceType[81];ConvertBSTRToSTR(pAgdDataPtr->ServiceType,szServiceType);short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceType: %s\n",iMonitorId,siServiceId,szServiceType);

}

ServiceTypeIdDescription:

This property returns the service-type ID for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.ServiceTypeId)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId)

OSMS API Reference Guide Confidential

Page 219: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–71

{IAgdDataPtr pAgdDataPtr = pAgdData;

short siServiceTypeId = pAgdDataPtr->ServiceTypeId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTypeId %d\n",iMonitorId,siServiceId,siServiceTypeId);

}

StartTimeMilitaryDescription:

This property returns the time, in military, when the service was started for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.StartTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.StartTimeMilitary)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siStartTimeMilitary = pAgdDataPtr->StartTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StartTimeMilitary %d\n",iMonitorId,siServiceId,siStartTimeMilitary);

}

Confidential OSMS API Reference Guide

Page 220: 700136a Epro61 Osms API Ref Guide

5–72 | Data Interfaces Aspect Software

StatusDescription:

This property returns the name of the current status for the service specified by the acquired AgdData object.

Syntax:

StringValue = AgdData.Status

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = AgdDataObject.Status

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

char szStatus[81];ConvertBSTRToSTR(pAgdDataPtr->Status,szStatus);short siServiceId = pAgdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status: %s\n",iMonitorId,siServiceId,szStatus);

}

OSMS API Reference Guide Confidential

Page 221: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–73

StatusIdDescription:

This property returns the name of the current status ID for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.StatusId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.StatusId)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siStatusId = pAgdDataPtr->StatusId;

printf("MonitorId: %d \t ServiceId: %d \t StatusId %d\n",iMonitorId,siServiceId,siStatusId);

}

StopTimeMilitaryDescription:

This property returns the time, in military, when the service was stopped for the service specified by the acquired AgdData object.

Syntax:

IntegerValue = AgdData.StopTimeMilitary

Confidential OSMS API Reference Guide

Page 222: 700136a Epro61 Osms API Ref Guide

5–74 | Data Interfaces Aspect Software

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AgdDataArrival(ByVal AgdData As Object, ByVal MonitorId As Long)Dim AgdDataObject As CCPROOSMSCLIENTLib.AgdDataSet AgdDataObject = AgdData

MSF.Text = Str(AgdDataObject.StopTimeMilitary)

Set AgdDataObject = NothingEnd Sub

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

short siStopTimeMilitary = pAgdDataPtr->StopTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StopTimeMilitary %d\n",iMonitorId,siServiceId,siStopTimeMilitary);

}

GetAgdDataDescription:

This method returns a raw pointer to the data stored in the AgdData component.

Syntax:

AgdData->GetAgdData((long) &pAgdStatisticalStructure)

Parameters:

VB Sample:

None

Parameter Description

Long A casted pointer to a DAgdStatistics structure.

OSMS API Reference Guide Confidential

Page 223: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–75

C++ Sample:

void AgdDataArrival(IDispatch* pAgdData, int iMonitorId){IAgdDataPtr pAgdDataPtr = pAgdData;

DAgdStatistics* pAgdStats;pAgdDataPtr->GetAgdData((long)&pAgdStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pAgdStats->siServiceId);

}

AgentData

The properties of the AgentData class are described in the following subsections.

AcdCallsDescription:

This property returns the amount of ACD type calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.AcdCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.AcdCalls)

Set AgentDataObject = NothingEnd Sub

Confidential OSMS API Reference Guide

Page 224: 700136a Epro61 Osms API Ref Guide

5–76 | Data Interfaces Aspect Software

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iAcdCalls = pAgentDataPtr->AcdCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t AcdCalls: %d\n",iMonitorId,iAgentIndex,iAcdCalls);

}

AgdCallsDescription:

This property returns the amount of AGD type calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.AgdCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.AgdCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iAgdCalls = pAgentDataPtr->AgdCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

OSMS API Reference Guide Confidential

Page 225: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–77

printf("MonitorId: %d \t AgentIndex: %d \t AgdCalls: %d\n",iMonitorId,iAgentIndex,iAgdCalls);

}

ChatCallsDescription:

This property returns the amount of Chat type calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.ChatCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ChatCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iChatCalls = pAgentDataPtr->ChatCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ChatCalls: %d\n",iMonitorId,iAgentIndex,iChatCalls);

}

Confidential OSMS API Reference Guide

Page 226: 700136a Epro61 Osms API Ref Guide

5–78 | Data Interfaces Aspect Software

EmailCallsDescription:

This property returns the amount of Email type calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.EmailCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.EmailCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iEmailCalls = pAgentDataPtr->EmailCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t EmailCalls: %d\n",iMonitorId,iAgentIndex,iEmailCalls);

}

ActiveSecondsDescription:

This property returns the amount of seconds the agent has been active for the agent specified by the acquired AgentData object.

OSMS API Reference Guide Confidential

Page 227: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–79

Syntax:

LongValue = AgentData.ActiveSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ActiveSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iActiveSeconds = pAgentDataPtr->ActiveSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ActiveSeconds: %d\n",iMonitorId,iAgentIndex,iActiveSeconds);

}

AgentIndexDescription:

This property returns the EnsemblePro internal index number of the agent for the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.AgentIndex

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 228: 700136a Epro61 Osms API Ref Guide

5–80 | Data Interfaces Aspect Software

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.AgentIndex)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t \n",iMonitorId, iAgentIndex);

}

AodCallsDescription:

This property returns the amount of AOD type calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.AodCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.AodCalls)

Set AgentDataObject = NothingEnd Sub

OSMS API Reference Guide Confidential

Page 229: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–81

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iAcdCalls = pAgentDataPtr->AodCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t AodCalls: %d\n",iMonitorId,iAgentIndex,iAodCalls);

}

ApplicationDescription:

This property returns the name of the application to which the service specified by the acquired AgentData object belongs.

Syntax:

StringValue = AgentData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.Application

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

Confidential OSMS API Reference Guide

Page 230: 700136a Epro61 Osms API Ref Guide

5–82 | Data Interfaces Aspect Software

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szApplication[81];ConvertBSTRToSTR(pAgentDataPtr->Application,szApplication);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t Application: %s\n",iMonitorId,iAgentIndex,szApplication);

}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired AgentData object.

Syntax:

IntegerValue = AgentData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ApplicationId)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

short siApplicationId = pAgentDataPtr->ApplicationId;

OSMS API Reference Guide Confidential

Page 231: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–83

int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ApplicationId: %d\n",iMonitorId,iAgentIndex,siApplicationId);

}

ConferenceCallsDescription:

This property returns the amount of Conference Calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.ConferenceCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ConferenceCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iConferenceCalls = pAgentDataPtr->ConferenceCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ConferenceCalls: %d\n",iMonitorId,iAgentIndex,iConferenceCalls);

}

Confidential OSMS API Reference Guide

Page 232: 700136a Epro61 Osms API Ref Guide

5–84 | Data Interfaces Aspect Software

ConsultationCallsDescription:

This property returns the amount of Consultation Calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.ConsultationCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ConsultationCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iConsultationCalls = pAgentDataPtr->ConsultationCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ConsultationCalls: %d\n",iMonitorId,iAgentIndex,iConsultationCalls);

}

CurrentServiceIdDescription:

This property returns the ID of the current service for the agent specified by the acquired AgentData object.

OSMS API Reference Guide Confidential

Page 233: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–85

Syntax:

IntegerValue = AgentData.CurrentServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.CurrentServiceId)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

short siCurrentServiceId = pAgentDataPtr->CurrentServiceId;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t CurrentServiceId: %d\n",iMonitorId, iAgentIndex,siCurrentServiceId);

}

DidCallsDescription:

This property returns the amount of DID Calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.DidCalls

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 234: 700136a Epro61 Osms API Ref Guide

5–86 | Data Interfaces Aspect Software

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.DidCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iDidCalls = pAgentDataPtr->DidCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t DidCalls: %d\n",iMonitorId,iAgentIndex,iDidCalls);

}

FirstNameDescription:

This property returns the first name of the agent specified by the acquired AgentData object.

Syntax:

StringValue = AgentData.FirstName

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.FirstName

Set AgentDataObject = NothingEnd Sub

OSMS API Reference Guide Confidential

Page 235: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–87

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szFirstName[81];ConvertBSTRToSTR(pAgentDataPtr->FirstName,szFirstName);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t FirstName: %s\n",iMonitorId,iAgentIndex,szFirstName);

}

GetAgentDataDescription:

This method returns a raw pointer to the data stored in the AgentData component.

Syntax:

AgentData->GetAgentData((long) &pAgentStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){

Parameter Description

Long A casted pointer to a DAgentStatistics structure.

Confidential OSMS API Reference Guide

Page 236: 700136a Epro61 Osms API Ref Guide

5–88 | Data Interfaces Aspect Software

IAgentDataPtr pAgentDataPtr = pAgentData;

DAgentStatistics* pAgentStats;pAgentDataPtr->GetAgentData((long)&pAgentStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pAgentStats->siServiceId);

}

HeldCallsDescription:

This property returns the amount of Held Calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.HeldCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.HeldCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iHeldCalls = pAgentDataPtr->HeldCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t HeldCalls: %d\n",iMonitorId,iAgentIndex,iHeldCalls);

}

OSMS API Reference Guide Confidential

Page 237: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–89

HeldSecondsDescription:

This property returns the amount of seconds the agent was on hold for the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.HeldSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.HeldSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iHeldSeconds = pAgentDataPtr->HeldSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t HeldSeconds: %d\n",iMonitorId,iAgentIndex,iHeldSeconds);

}

IdleSecondsDescription:

This property returns the amount of seconds the agent was idle for the agent specified by the acquired AgentData object.

Confidential OSMS API Reference Guide

Page 238: 700136a Epro61 Osms API Ref Guide

5–90 | Data Interfaces Aspect Software

Syntax:

LongValue = AgentData.IdleSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.IdleSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iIdleSeconds = pAgentDataPtr->IdleSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t IdleSeconds: %d\n",iMonitorId,iAgentIndex,iIdleSeconds);

}

InternalCallsDescription:

This property returns the amount of Internal Calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.InternalCalls

Property Type:

VB: longC++: integer

OSMS API Reference Guide Confidential

Page 239: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–91

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.InternalCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iInternalCalls = pAgentDataPtr->InternalCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t InternalCalls: %d\n",iMonitorId,iAgentIndex,iInternalCalls);

}

InternalSecondsDescription:

This property returns the amount of seconds the agent was on an internal call for the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.InternalSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.InternalSeconds)

Confidential OSMS API Reference Guide

Page 240: 700136a Epro61 Osms API Ref Guide

5–92 | Data Interfaces Aspect Software

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iInternalSeconds = pAgentDataPtr->InternalSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t InternalSeconds: %d\n",iMonitorId,iAgentIndex,iInternalSeconds);

}

LastDispositionDescription:

This property returns the description of the disposition of the last call for the agent specified by the acquired AgentData object.

Syntax:

StringValue = AgentData.LastDisposition

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.LastDisposition

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

OSMS API Reference Guide Confidential

Page 241: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–93

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szLastDisposition[81];ConvertBSTRToSTR(pAgentDataPtr->LastDisposition,szLastDisposition);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t LastDisposition: %s\n",iMonitorId,iAgentIndex,szLastDisposition);

}

LastDispositionIdDescription:

This property returns the ID of the disposition of the last call for the agent specified by the acquired AgentData object.

Syntax:

IntegerValue = AgentData.LastDispositionId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.LastDispositionId)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){

Confidential OSMS API Reference Guide

Page 242: 700136a Epro61 Osms API Ref Guide

5–94 | Data Interfaces Aspect Software

IAgentDataPtr pAgentDataPtr = pAgentData;

short siLastDispositionId = pAgentDataPtr->LastDispositionId;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t LastDispositionId: %d\n",iMonitorId,iAgentIndex,siLastDispositionId);

}

LastNameDescription:

This property returns the last name of the agent specified by the acquired AgentData object.

Syntax:

StringValue = AgentData.LastName

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.LastName

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){

OSMS API Reference Guide Confidential

Page 243: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–95

IAgentDataPtr pAgentDataPtr = pAgentData;

char szLastName[81];ConvertBSTRToSTR(pAgentDataPtr->LastName,szLastName);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t LastName: %s\n",iMonitorId,iAgentIndex,szLastName);

}

LoggedInSecondsDescription:

This property returns the amount of seconds the agent was logged in for the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.LoggedInSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.LoggedInSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iInternalSeconds = pAgentDataPtr->LoggedInSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t LoggedInSeconds: %d\n",iMonitorId,iAgentIndex,iLoggedInSeconds);

}

Confidential OSMS API Reference Guide

Page 244: 700136a Epro61 Osms API Ref Guide

5–96 | Data Interfaces Aspect Software

ManualCallsDescription:

This property returns the amount of Manual Calls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.ManualCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ManualCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iManualCalls = pAgentDataPtr->ManualCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ManualCalls: %d\n",iMonitorId,iAgentIndex,iManualCalls);

}

ManualSecondsDescription:

This property returns the amount of seconds the agent has been in Manual for the agent specified by the acquired AgentData object.

OSMS API Reference Guide Confidential

Page 245: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–97

Syntax:

LongValue = AgentData.ManualSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ManualSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iManualSeconds = pAgentDataPtr->ManualSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ManualSeconds: %d\n",iMonitorId,iAgentIndex,iManualSeconds);

}

MonitoringCallsDescription:

This property returns the amount of MonitoringCalls made by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.MonitoringCalls

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 246: 700136a Epro61 Osms API Ref Guide

5–98 | Data Interfaces Aspect Software

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.MonitoringCalls)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iMonitoringCalls = pAgentDataPtr->MonitoringCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t MonitoringCalls: %d\n",iMonitorId,iAgentIndex,iMonitoringCalls);

}

NotReadySecondsDescription:

This property returns the amount of seconds the agent was not ready to receive calls for the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.NotReadySeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.NotReadySeconds)

OSMS API Reference Guide Confidential

Page 247: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–99

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iNotReadySeconds = pAgentDataPtr->NotReadySeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t NotReadySeconds: %d\n",iMonitorId,iAgentIndex,iNotReadySeconds);

}

NumberOfSalesDescription:

This property returns the amount of calls that ended in the disposition of 'Sales' for the agent specified by the acquired AgentData object.

Syntax:

IntegerValue = AgentData.NumberOfSales

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.NumberOfSales)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

Confidential OSMS API Reference Guide

Page 248: 700136a Epro61 Osms API Ref Guide

5–100 | Data Interfaces Aspect Software

short siNumberOfSales = pAgentDataPtr->NumberOfSales;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t NumberOfSales: %d\n",iMonitorId,iAgentIndex,siNumberOfSales);

}

OtherSecondsDescription:

This property returns the amount of seconds the agent was in an Other state for the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.OtherSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.OtherSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iOtherSeconds = pAgentDataPtr->OtherSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t OtherSeconds: %d\n",iMonitorId,iAgentIndex,iOtherSeconds);

}

OSMS API Reference Guide Confidential

Page 249: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–101

PreviewSecondsDescription:

This property returns the amount of seconds the agent was in the state of Preview for the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.PreviewSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.PreviewSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iPreviewSeconds = pAgentDataPtr->PreviewSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t PreviewSeconds: %d\n",iMonitorId,iAgentIndex,iPreviewSeconds);

}

ServiceDescription:

This property returns the description of the service to which the Agent specified by the acquired AgentData object is logged in.

Confidential OSMS API Reference Guide

Page 250: 700136a Epro61 Osms API Ref Guide

5–102 | Data Interfaces Aspect Software

Syntax:

StringValue = AgentData.Service

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.Service

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szService[81];ConvertBSTRToSTR(pAgentDataPtr->Service,szService);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t Service: %s\n",iMonitorId,iAgentIndex,szService);

}

OSMS API Reference Guide Confidential

Page 251: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–103

ServiceIdDescription:

This property returns the ID of the service for the agent specified by the acquired AgentData object.

Syntax:

IntegerValue = AgentData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ServiceId)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

short siServiceId = pAgentDataPtr->ServiceId;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ServiceId: %d\n",iMonitorId, iAgentIndex,siServiceId);

}

ServiceTypeDescription:

This property returns the description of the Service Type to which the agent specified by the acquired AgentData object belongs.

Confidential OSMS API Reference Guide

Page 252: 700136a Epro61 Osms API Ref Guide

5–104 | Data Interfaces Aspect Software

Syntax:

StringValue = AgentData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.ServiceType

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szServiceType[81];ConvertBSTRToSTR(pAgentDataPtr->ServiceType,szServiceType);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ServiceType: %s\n",iMonitorId,iAgentIndex,szServiceType);

}

OSMS API Reference Guide Confidential

Page 253: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–105

ServiceTypeIdDescription:

This property returns the ID of the service type to which the agent specified by the acquired AgentData object belongs.

Syntax:

IntegerValue = AgentData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.ServiceTypeId)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

short siServiceTypeId = pAgentDataPtr->ServiceTypeId;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t ServiceTypeId: %d\n",iMonitorId,iAgentIndex,siServiceTypeId);

}

StationDescription:

This property returns the station to which the agent specified by the acquired AgentData object belongs.

Confidential OSMS API Reference Guide

Page 254: 700136a Epro61 Osms API Ref Guide

5–106 | Data Interfaces Aspect Software

Syntax:

StringValue = AgentData.Station

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.Station

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szStation[81];ConvertBSTRToSTR(pAgentDataPtr->Station,szStation);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t Station: %s\n",iMonitorId,iAgentIndex,szStation);

}

OSMS API Reference Guide Confidential

Page 255: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–107

StatusDescription:

This property returns the description of the current Status of the agent specified by the acquired AgentData object.

Syntax:

StringValue = AgentData.Status

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.Status

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szStatus[81];ConvertBSTRToSTR(pAgentDataPtr->Status,szStatus);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t Status: %s\n",iMonitorId,iAgentIndex,szStatus);

}

Confidential OSMS API Reference Guide

Page 256: 700136a Epro61 Osms API Ref Guide

5–108 | Data Interfaces Aspect Software

StatusIdDescription:

This property returns the ID of the current Status of the agent specified by the acquired AgentData object.

Syntax:

IntegerValue = AgentData.StatusId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.StatusId)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

short siStatusId = pAgentDataPtr->StatusId;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t StatusId: %d\n",iMonitorId,iAgentIndex,siStatusId);

}

StatusSecondsDescription:

This property returns the amount of seconds the agent has been in their current state for the agent specified by the acquired AgentData object.

OSMS API Reference Guide Confidential

Page 257: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–109

Syntax:

LongValue = AgentData.StatusSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.StatusSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iStatusSeconds = pAgentDataPtr->StatusSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t StatusSeconds: %d\n",iMonitorId, iAgentIndex,iStatusSeconds);

}

StatusStartTimeMilitaryDescription:

This property returns the time the agent entered the current state, in military, for the agent specified by the acquired AgentData object.

Syntax:

IntegerValue = AgentData.StatusStartTimeMilitary

Property Type:

VB: integerC++: short

Confidential OSMS API Reference Guide

Page 258: 700136a Epro61 Osms API Ref Guide

5–110 | Data Interfaces Aspect Software

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.StatusStartTimeMilitary)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

short siStatusId = pAgentDataPtr->StatusStartTimeMilitary;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t StatusStartTimeMilitary: %d\n",iMonitorId,iAgentIndex,siStatusStartTimeMilitary);

}

TransferredCallsDescription:

This property returns the amount of calls transferred by the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.TransferredCalls

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.TransferredCalls)

OSMS API Reference Guide Confidential

Page 259: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–111

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iTransferredCalls = pAgentDataPtr->TransferredCalls;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t TransferredCalls: %d\n",iMonitorId,iAgentIndex,iTransferredCalls);

}

UserIdDescription:

This property returns the user ID of the agent specified by the acquired AgentData object.

Syntax:

StringValue = AgentData.UserId

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.UserId

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

Confidential OSMS API Reference Guide

Page 260: 700136a Epro61 Osms API Ref Guide

5–112 | Data Interfaces Aspect Software

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szServiceType[81];ConvertBSTRToSTR(pAgentDataPtr->UserId,szServiceType);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t UserId: %s\n",iMonitorId,iAgentIndex,szUserId);

}

WorkGroupDescription:

This property returns the description of the current Workgroup for the agent specified by the acquired AgentData object.

Syntax:

StringValue = AgentData.WorkGroup

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = AgentDataObject.WorkGroup

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){

OSMS API Reference Guide Confidential

Page 261: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–113

int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

char szWorkGroup[81];ConvertBSTRToSTR(pAgentDataPtr->WorkGroup,szWorkGroup);int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t WorkGroup: %s\n",iMonitorId,iAgentIndex,szWorkGroup);

}

WorkGroupIdDescription:

This property returns the workgroup ID for the agent specified by the acquired AgentData object.

Syntax:

IntegerValue = AgentData.WorkGroupId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object, ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.WorkGroupId)

Set AgentDataObject = NothingEnd Sub

Confidential OSMS API Reference Guide

Page 262: 700136a Epro61 Osms API Ref Guide

5–114 | Data Interfaces Aspect Software

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

short siWorkGroupId = pAgentDataPtr->WorkGroupId;int iAgentIndex = pAgentDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t WorkGroupId: %d\n",iMonitorId,iAgentIndex,siWorkGroupId);

}

WrapSecondsDescription:

This property returns the amount of seconds the agent was in the state of Wrap for the agent specified by the acquired AgentData object.

Syntax:

LongValue = AgentData.WrapSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentDataArrival(ByVal AgentData As Object,ByVal MonitorId As Long)Dim AgentDataObject As CCPROOSMSCLIENTLib.AgentDataSet AgentDataObject = AgentData

MSF.Text = Str(AgentDataObject.WrapSeconds)

Set AgentDataObject = NothingEnd Sub

C++ Sample:

void AgentDataArrival(IDispatch* pAgentData, int iMonitorId){IAgentDataPtr pAgentDataPtr = pAgentData;

int iWrapSeconds = pAgentDataPtr->WrapSeconds;int iAgentIndex = pAgentDataPtr->AgentIndex;

OSMS API Reference Guide Confidential

Page 263: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–115

printf("MonitorId: %d \t AgentIndex: %d \t WrapSeconds: %d\n",iMonitorId,iAgentIndex,iWrapSeconds);

}

AmdData

The properties of the AmdData class are described in the following subsections.

AgentsInActiveDescription:

This property returns the current number of agents in the state of Active for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.AgentsInActive

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)

Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AgentsInActive)

Set AmdDataObject = Nothing

End Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siAgentsInActive = pAmdDataPtr->AgentsInActive;short siServiceId = pAmdDataPtr->ServiceId;

Confidential OSMS API Reference Guide

Page 264: 700136a Epro61 Osms API Ref Guide

5–116 | Data Interfaces Aspect Software

printf("MonitorId: %d \t ServiceId: %d \t AgentsInActive: %d\n",iMonitorId,siServiceId,siAgentsInActive);

}

AgentsInIdleDescription:

This property returns the current number of agents in the state of Idle for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.AgentsInIdle

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AgentsInIdle)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siAgentsInIdle = pAmdDataPtr->AgentsInIdle;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInIdle: %d\n",iMonitorId,siServiceId,siAgentsInIdle);

}

OSMS API Reference Guide Confidential

Page 265: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–117

AgentsInInternalDescription:

This property returns the current number of agents in the state of Internal for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.AgentsInInternal

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AgentsInInternal)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siAgentsInInternal = pAmdDataPtr->AgentsInInternal;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInInternal: %d\n",iMonitorId,siServiceId,siAgentsInInternal);

}

AgentsInManualDescription:

This property returns the current number of agents in the state of Manual for the service specified by the acquired AmdData object.

Confidential OSMS API Reference Guide

Page 266: 700136a Epro61 Osms API Ref Guide

5–118 | Data Interfaces Aspect Software

Syntax:

IntegerValue = AmdData.AgentsInManual

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AgentsInManual)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siAgentsInManual = pAmdDataPtr->AgentsInManual;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInManual: %d\n",iMonitorId,siServiceId,siAgentsInManual);

}

AgentsInNotReadyDescription:

This property returns the current number of agents in a state of Not Ready for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.AgentsInNotReady

Property Type:

VB: integerC++: short

OSMS API Reference Guide Confidential

Page 267: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–119

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AgentsInNotReady)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siAgentsInNotReady = pAmdDataPtr->AgentsInNotReady;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInNotReady: %d\n",iMonitorId,siServiceId,siAgentsInNotReady);

}

AgentsInOtherDescription:

This property returns the current number of agents in a state of Other for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.AgentsInOther

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AgentsInOther)

Confidential OSMS API Reference Guide

Page 268: 700136a Epro61 Osms API Ref Guide

5–120 | Data Interfaces Aspect Software

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siAgentsInOther = pAmdDataPtr->AgentsInOther;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInOther: %d\n",iMonitorId,siServiceId,siAgentsInOther);

}

AgentsInWrapDescription:

This property returns the current number of agents in a state of Wrap for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.AgentsInWrap

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AgentsInWrap)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

OSMS API Reference Guide Confidential

Page 269: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–121

short siAgentsInWrap = pAmdDataPtr->AgentsInWrap;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInWrap: %d\n",iMonitorId,siServiceId,siAgentsInWrap);

}

AgentsLoggedInDescription:

This property returns the current number of agents in a state of Logged In for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.AgentsLoggedIn

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AgentsLoggedIn)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siAgentsLoggedIn = pAmdDataPtr->AgentsLoggedIn;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsLoggedIn: %d\n",iMonitorId,siServiceId,siAgentsInLoggedIn);

}

Confidential OSMS API Reference Guide

Page 270: 700136a Epro61 Osms API Ref Guide

5–122 | Data Interfaces Aspect Software

ApplicationDescription:

This property returns the current application to which the service specified by the acquired AmdData object belongs.

Syntax:

StringValue = AmdData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = AmdDataObject.Application

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

char szApplication[81];ConvertBSTRToSTR(pAmdDataPtr->Application,szApplication);short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",iMonitorId,siServiceId,szApplication);

}

OSMS API Reference Guide Confidential

Page 271: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–123

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.ApplicationId)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siApplicationId = pAmdDataPtr->ApplicationId;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

AvgAgentActiveTimeDescription:

This property returns the average amount of time all agents have been in the state of Active for the service specified by the acquired AmdData object.

Confidential OSMS API Reference Guide

Page 272: 700136a Epro61 Osms API Ref Guide

5–124 | Data Interfaces Aspect Software

Syntax:

LongValue = AmdData.AvgAgentActiveTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AvgAgentActiveTime)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iAvgAgentActiveTime = pAmdDataPtr->AvgAgentActiveTime;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentActiveTime: %d\n",iMonitorId,siServiceId,iAvgAgentActiveTime);

}

AvgAgentIdleTimeDescription:

This property returns the average amount of time all agents have been in the state of Idle for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.AvgAgentIdleTime

Property Type:

VB: longC++: integer

OSMS API Reference Guide Confidential

Page 273: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–125

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AvgAgentIdleTime)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iAvgAgentIdleTime = pAmdDataPtr->AvgAgentIdleTime;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentIdleTime: %d\n",iMonitorId,siServiceId,iAvgAgentIdleTime);

}

AvgAgentWrapTimeDescription:

This property returns the average amount of time all agents have been in the state of Wrap for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.AvgAgentWrapTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AvgAgentWrapTime)

Confidential OSMS API Reference Guide

Page 274: 700136a Epro61 Osms API Ref Guide

5–126 | Data Interfaces Aspect Software

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iAvgAgentWrapTime = pAmdDataPtr->AvgAgentWrapTime;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentWrapTime: %d\n",iMonitorId,siServiceId,iAvgAgentWrapTime);

}

AvgSpeedOfAnswerDescription:

This property returns the average amount of time it takes for a customer to pick up the phone for the service specified by the acquired AmdData object.

Syntax:

FloatValue = AmdData.AvgSpeedOfAnswer

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AvgSpeedOfAnswer)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

OSMS API Reference Guide Confidential

Page 275: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–127

float fAvgSpeedOfAnswer = pAmdDataPtr->AvgSpeedOfAnswer;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgSpeedOfAnswer: %d\n",iMonitorId,siServiceId,fAvgSpeedOfAnswer);

}

AvgTimeInQueueDescription:

This property returns the average amount of time a call stays in the queue before being processed for the service specified by the acquired AmdData object.

Syntax:

FloatValue = AmdData.AvgTimeInQueue

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.AvgTimeInQueue)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

float fAvgTimeInQueue = pAmdDataPtr->AvgTimeInQueue;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgTimeInQueue: %d\n",iMonitorId,siServiceId,fAvgTimeInQueue);

}

Confidential OSMS API Reference Guide

Page 276: 700136a Epro61 Osms API Ref Guide

5–128 | Data Interfaces Aspect Software

CallsAnsweredDescription:

This property returns the amount of calls that were answered for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.CallsAnswered

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CallsAnswered)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iCallsAnswered = pAmdDataPtr->CallsAnswered;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAnswered: %d\n",iMonitorId,siServiceId,iCallsAnswered);

}

CallsAutoRespondedDescription:

This property returns the total number of inbound e-mail messages responded by the natural language process for the service specified by the acquired AmdData object.

OSMS API Reference Guide Confidential

Page 277: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–129

Syntax:

LongValue = AmdData.CallsInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CallsInQueue)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iCallsInQueue = pAmdDataPtr->CallsInQueue;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInQueue: %d\n",iMonitorId,siServiceId,iCallsInQueue);

}

CallsInQueueDescription:

This property returns the amount of calls currently in queue for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.CallsInQueue

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 278: 700136a Epro61 Osms API Ref Guide

5–130 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CallsInQueue)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iCallsInQueue = pAmdDataPtr->CallsInQueue;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInQueue: %d\n",iMonitorId,siServiceId,iCallsInQueue);

}

CallsOfferedDescription:

This property returns the amount of calls that were offered the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.CallsOffered

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CallsOffered)

OSMS API Reference Guide Confidential

Page 279: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–131

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iCallsOffered = pAmdDataPtr->CallsOffered;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsOffered: %d\n",iMonitorId,siServiceId,iCallsOffered);

}

CallsOverflowedDescription:

This property returns the amount of calls that were overflowed for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.CallsOverflowed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CallsOverflowed)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

Confidential OSMS API Reference Guide

Page 280: 700136a Epro61 Osms API Ref Guide

5–132 | Data Interfaces Aspect Software

int iCallsOverflowed = pAmdDataPtr->CallsOverflowed;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsOverflowed: %d\n",iMonitorId,siServiceId,iCallsOverflowed);

}

CallsPendingProcessingDescription:

This property returns the total number of e-mail messages waiting to be serviced by the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.CallsPendingProcessing

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CallsPendingProcessing)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iCallsPendingProcessing = pAmdDataPtr->CallsPendingProcessing;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsPendingProcessing: %d\n",iMonitorId,siServiceId,iCallsPendingProcessing);

}

OSMS API Reference Guide Confidential

Page 281: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–133

CallsReroutedDescription:

This property returns the amount of calls that were rerouted for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.CallsRerouted

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CallsRerouted)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iCallsRerouted = pAmdDataPtr->CallsRerouted;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsRerouted: %d\n",iMonitorId,siServiceId,iCallsRerouted);

}

CallsServicedWithinServiceLevelDescription:

This property returns the amount of calls serviced within the target queue time for the service specified by the acquired AmdData object.

Confidential OSMS API Reference Guide

Page 282: 700136a Epro61 Osms API Ref Guide

5–134 | Data Interfaces Aspect Software

Syntax:

LongValue = AmdData.CallsServicedWithinServiceLevel

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CallsServicedWithinServiceLevel)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iCallsServicedWithinServiceLevel = pAmdDataPtr->CallsServicedWithinServiceLevel;

short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsServicedWithinServiceLevel: %d\n",iMonitorId,siServiceId,iCallsServicedWithinServiceLevel);

}

CurrentLongestQueueWaitSecondsDescription:

This property returns the current high-water mark for queue wait time for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.CurrentLongestQueueWaitSeconds

OSMS API Reference Guide Confidential

Page 283: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–135

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.CurrentLongestQueueWaitSeconds)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iCurrentLongestQueueWaitSeconds = pAmdDataPtr->CurrentLongestQueueWaitSeconds;

short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CurrentLongestQueueWaitSeconds: %d\n",iMonitorId,siServiceId,iCurrentLongestQueueWaitSeconds);

}

MaxCallsInQueueDescription:

This property returns the high-water mark for the number of calls in queue for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.MaxCallsInQueue

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 284: 700136a Epro61 Osms API Ref Guide

5–136 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.MaxCallsInQueue)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iMaxCallsInQueue = pAmdDataPtr->MaxCallsInQueue;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxCallsInQueue: %d\n",iMonitorId,siServiceId,iMaxCallsInQueue);

}

MaxWaitInQueueDescription:

This property returns the high-water mark for the wait time in queue for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.MaxWaitInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.MaxWaitInQueue)

OSMS API Reference Guide Confidential

Page 285: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–137

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iMaxWaitInQueue = pAmdDataPtr->MaxWaitInQueue;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxWaitInQueue: %d\n",iMonitorId,siServiceId,iMaxWaitInQueue);

}

MessagesInReviewListDescription:

This property returns the total number of e-mail messages pending review by Center Directors for the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.MessagesInReviewList

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.MessagesInReviewList)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

Confidential OSMS API Reference Guide

Page 286: 700136a Epro61 Osms API Ref Guide

5–138 | Data Interfaces Aspect Software

int iMessagesInReviewList = pAmdDataPtr->MessagesInReviewList;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MessagesInReviewList: %d\n",iMonitorId,siServiceId,iMessagesInReviewList);

}

NumberOfOutboundEMailsDescription:

This property returns the total number of e-mail messages that have been sent by the service specified by the acquired AmdData object.

Syntax:

LongValue = AmdData.NumberOfOutboundEMails

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.NumberOfOutboundEMails)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

int iNumberOfOutboundEMails = pAmdDataPtr->NumberOfOutboundEMails;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberOfOutboundEMails: %d\n",iMonitorId,siServiceId,iNumberOfOutboundEMails);

}

OSMS API Reference Guide Confidential

Page 287: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–139

OccupancyDescription:

This property returns agents’ productive time for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.Occupancy

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.Occupancy)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siOccupancy = pAmdDataPtr->Occupancy;short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Occupancy: %d\n",iMonitorId,siServiceId,siOccupancy);

}

PercentServiceWithinServiceLevelDescription:

This property returns the quotient of CallsServicedWithinServiceLevel by CallsOffered for the service specified by the acquired AmdData object.

Confidential OSMS API Reference Guide

Page 288: 700136a Epro61 Osms API Ref Guide

5–140 | Data Interfaces Aspect Software

Syntax:

IntegerValue = AmdData.PercentServiceWithinServiceLevel

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.PercentServiceWithServiceLevel)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

float fPercentServiceWithinServiceLevel = pAmdDataPtr->PercentServiceWithinServiceLevel;

short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t PercentServiceWithinServiceLevel: %d\n",iMonitorId,siServiceId,fPercentServiceWithinServiceLevel);

}

ServiceDescription:

This property returns the name of the service for the service specified by the acquired AmdData object.

Syntax:

StringValue = AmdData.Service

OSMS API Reference Guide Confidential

Page 289: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–141

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = AmdDataObject.Service

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

char szService[81];ConvertBSTRToSTR(pAmdDataPtr->Service,szService);short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired AmdData object.

Confidential OSMS API Reference Guide

Page 290: 700136a Epro61 Osms API Ref Guide

5–142 | Data Interfaces Aspect Software

Syntax:

IntegerValue = AmdData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.ServiceId)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

ServiceTypeDescription:

This property returns the name of the service type for the service specified by the acquired AmdData object.

Syntax:

StringValue = AmdData.ServiceType

Property Type:

VB: stringC++: BSTR

OSMS API Reference Guide Confidential

Page 291: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–143

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = AmdDataObject.ServiceType

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

char szServiceType[81];ConvertBSTRToSTR(pAmdDataPtr->ServiceType,szServiceType);short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceType: %s\n",iMonitorId,siServiceId,szServiceType);

}

ServiceTypeIdDescription:

This property returns the service type ID for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.ServiceTypeId

Confidential OSMS API Reference Guide

Page 292: 700136a Epro61 Osms API Ref Guide

5–144 | Data Interfaces Aspect Software

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.ServiceTypeId)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siServiceTypeId = pAmdDataPtr->ServiceTypeId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTypeId %d\n",iMonitorId,siServiceId,siServiceTypeId);

}

StartTimeMilitaryDescription:

This property returns the time, in military, when the service was started for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.StartTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdData

OSMS API Reference Guide Confidential

Page 293: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–145

Set AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.StartTimeMilitary)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siStartTimeMilitary = pAmdDataPtr->StartTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StartTimeMilitary %d\n",iMonitorId,siServiceId,siStartTimeMilitary);

}

StatusDescription:

This property returns the name of the current status for the service specified by the acquired AmdData object.

Syntax:

StringValue = AmdData.Status

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = AmdDataObject.Status

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString)

Confidential OSMS API Reference Guide

Page 294: 700136a Epro61 Osms API Ref Guide

5–146 | Data Interfaces Aspect Software

{int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

char szStatus[81];ConvertBSTRToSTR(pAmdDataPtr->Status,szStatus);short siServiceId = pAmdDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status: %s\n",iMonitorId,siServiceId,szStatus);

}

StatusIdDescription:

This property returns the name of the current status ID for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.StatusId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.StatusId)

Set AmdDataObject = NothingEnd Sub

OSMS API Reference Guide Confidential

Page 295: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–147

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siStatusId = pAmdDataPtr->StatusId;

printf("MonitorId: %d \t ServiceId: %d \t StatusId %d\n",iMonitorId,siServiceId,siStatusId);

}

StopTimeMilitaryDescription:

This property returns the time, in military, when the service was stopped for the service specified by the acquired AmdData object.

Syntax:

IntegerValue = AmdData.StopTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdDataArrival(ByVal AmdData As Object, ByVal MonitorId As Long)Dim AmdDataObject As CCPROOSMSCLIENTLib.AmdDataSet AmdDataObject = AmdData

MSF.Text = Str(AmdDataObject.StopTimeMilitary)

Set AmdDataObject = NothingEnd Sub

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

short siStopTimeMilitary = pAmdDataPtr->StopTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StopTimeMilitary %d\n",iMonitorId,siServiceId,siStopTimeMilitary);

}

Confidential OSMS API Reference Guide

Page 296: 700136a Epro61 Osms API Ref Guide

5–148 | Data Interfaces Aspect Software

GetAmdDataDescription:

This method returns a raw pointer to the data stored in the AmdData component.

Syntax:

AmdData->GetAmdData((long) &pAmdStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void AmdDataArrival(IDispatch* pAmdData, int iMonitorId){IAmdDataPtr pAmdDataPtr = pAmdData;

DAmdStatistics* pAmdStats;pAmdDataPtr->GetAmdData((long)&pAcdStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pAcdStats->siServiceId);

}

AmdSummaryByQueueData

The properties of the AmdSummaryByQueueData class are described in the following subsections.

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired AmdSummaryByQueueData object.

Parameter Description

Long A casted pointer to a DAmdStatistics structure.

OSMS API Reference Guide Confidential

Page 297: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–149

Syntax:

IntegerValue = AmdSummaryByQueueData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdSummaryByQueueDataArrival(ByVal AmdSummaryByQueueData As Object, ByVal MonitorId As Long)Dim AmdSummaryByQueueDataObject As

CCPROOSMSCLIENTLib.AmdSummaryByQueueDataSet AmdSummaryByQueueDataObject = AmdSummaryByQueueData

MSF.Text = Str(AmdSummaryByQueueDataObject.ServiceId)

Set AmdSummaryByQueueDataObject = NothingEnd Sub

C++ Sample:

void AmdSummaryByQueueDataArrival(IDispatch* pAmdSummaryByQueueData, int iMonitorId){IAmdSummaryByQueueDataPtr pAmdSummaryByQueueDataPtr =

pAmdSummaryByQueueData;

short siServiceId = pAmdSummaryByQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

ServiceDescription:

This property returns the name of the service for the service specified by the acquired AmdSummaryByQueueData object.

Syntax:

StringValue = AmdSummaryByQueueData.Service

Property Type:

VB: stringC++: BSTR

Confidential OSMS API Reference Guide

Page 298: 700136a Epro61 Osms API Ref Guide

5–150 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AmdSummaryByQueueDataArrival(ByVal AmdSummaryByQueueData As Object, ByVal MonitorId As Long)Dim AmdSummaryByQueueDataObject As

CCPROOSMSCLIENTLib.AmdSummaryByQueueDataSet AmdSummaryByQueueDataObject = AmdSummaryByQueueData

MSF.Text = AmdSummaryByQueueDataObject.Service

Set AmdSummaryByQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AmdSummaryByQueueDataArrival(IDispatch* pAmdSummaryByQueueData, int iMonitorId){IAmdSummaryByQueueDataPtr pAmdSummaryByQueueDataPtr =

pAmdSummaryByQueueData;

char szService[81];ConvertBSTRToSTR(pAmdSummaryByQueueDataPtr->Service,szService);short siServiceId = pAmdSummaryByQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

QueueIdDescription:

This property returns the ID associated with the queue specified by the acquired AmdSummaryByQueueData object.

Syntax:

IntegerValue = AmdSummaryByQueueData.QueueId

OSMS API Reference Guide Confidential

Page 299: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–151

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AmdSummaryByQueueDataArrival(ByVal AmdSummaryByQueueData As Object, ByVal MonitorId As Long)Dim AmdSummaryByQueueDataObject As

CCPROOSMSCLIENTLib.AmdSummaryByQueueDataSet AmdSummaryByQueueDataObject = AmdSummaryByQueueData

MSF.Text = Str(AmdSummaryByQueueDataObject.QueueId)

Set AmdSummaryByQueueDataObject = NothingEnd Sub

C++ Sample:

void AmdSummaryByQueueDataArrival(IDispatch* pAmdSummaryByQueueData, int iMonitorId){IAmdSummaryByQueueDataPtr pAmdSummaryByQueueDataPtr =

pAmdSummaryByQueueData;

short siQueueId = pAmdSummaryByQueueDataPtr->QueueId;

printf("MonitorId: %d \t QueueId: %d \n",iMonitorId,siServiceId);}

QueueDescription:

This property returns the name of the e-mail address for the service specified by the acquired AmdSummaryByQueueData object.

Syntax:

StringValue = AmdSummaryByQueueData.Queue

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AmdSummaryByQueueDataArrival

Confidential OSMS API Reference Guide

Page 300: 700136a Epro61 Osms API Ref Guide

5–152 | Data Interfaces Aspect Software

(ByVal AmdSummaryByQueueData As Object, ByVal MonitorId As Long)Dim AmdSummaryByQueueDataObject As

CCPROOSMSCLIENTLib.AmdSummaryByQueueDataSet AmdSummaryByQueueDataObject = AmdSummaryByQueueData

MSF.Text = AmdSummaryByQueueDataObject.Queue

Set AmdSummaryByQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AmdSummaryByQueueDataArrival(IDispatch* pAmdSummaryByQueueData, int iMonitorId){IAmdSummaryByQueueDataPtr pAmdSummaryByQueueDataPtr =

pAmdSummaryByQueueData;

char szQueue[81];ConvertBSTRToSTR(pAmdSummaryByQueueDataPtr->Queue,szQueue);short siQueueId = pAmdSummaryByQueueDataPtr->QueueId;

printf("MonitorId: %d \t QueueId: %d \t Queue: %s\n",iMonitorId,siQueueId,szQueue);

}

NumberOfEmailsDescription:

This property returns the number of e-mail messages in queue for the service specified by the acquired AmdSummaryByQueueData object.

Syntax:

LongValue = AmdSummaryByQueueData.NumberOfEmails

OSMS API Reference Guide Confidential

Page 301: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–153

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AmdSummaryByQueueDataArrival(ByVal AmdSummaryByQueueData As Object, ByVal MonitorId As Long)Dim AmdSummaryByQueueDataObject As

CCPROOSMSCLIENTLib.AmdSummaryByQueueDataSet AmdSummaryByQueueDataObject = AmdSummaryByQueueData

MSF.Text = Str(AmdSummaryByQueueDataObject.NumberOfEmails)

Set AmdSummaryByQueueDataObject = NothingEnd Sub

C++ Sample:

void AmdSummaryByQueueDataArrival(IDispatch* pAmdSummaryByQueueData, int iMonitorId){IAmdSummaryByQueueDataPtr pAmdSummaryByQueueDataPtr =

pAmdSummaryByQueueData;

int iNumberOfEmails = pAmdSummaryByQueueDataPtr->NumberOfEmails;short siServiceId = pAmdSummaryByQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberOfEmails: %d\n",iMonitorId,siServiceId,iNumberOfEmails);

}

GetAmdSummaryByQueueDataDescription:

This method returns a raw pointer to the data stored in the AmdSummaryByQueueData component.

Syntax:

AmdSummaryByQueueData->GetAmdSummaryByQueueData((long)&pAmdStatisticalStructure)

Confidential OSMS API Reference Guide

Page 302: 700136a Epro61 Osms API Ref Guide

5–154 | Data Interfaces Aspect Software

Parameters:

VB Sample:

None

C++ Sample:

void AmdSummaryByQueueDataArrival(IDispatch* pAmdSummaryByQueueData, int iMonitorId){IAmdSummaryByQueueDataPtr pAmdSummaryByQueueDataPtr =

pAmdSummaryByQueueData;

DAmdStatistics* pAmdStats;pAmdSummaryByQueueDataPtr->GetAmdSummaryByQueueData((long)

&pAcdStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pAcdStats->siServiceId);

}

AodData

The properties of the AodData class are described in the following subsections.

AbandonedByCustomerDescription:

This property returns the amount of times the call was terminated by the customer for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.AbandonedByCustomer

Property Type:

VB: longC++: integer

Parameter Description

Long A casted pointer to a DAmdStatistics structure.

OSMS API Reference Guide Confidential

Page 303: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–155

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AbandonedByCustomer)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iAbandonedByCustomer = pAodDataPtr->AbandonedByCustomer;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AbandonedByCustomer: %d\n",iMonitorId,siServiceId,iAbandonedByCustomer);

}

AbandonedBySwitchDescription:

This property returns the amount of times the call was hung up by the switch for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.AbandonedBySwitch

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AbandonedBySwitch)

Confidential OSMS API Reference Guide

Page 304: 700136a Epro61 Osms API Ref Guide

5–156 | Data Interfaces Aspect Software

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iAbandonedBySwitch = pAodDataPtr->AbandonedBySwitch;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t AgentIndex: %d \t AbandonedBySwitch: %d\n",iMonitorId,siServiceId,iAbandonedBySwitch);

}

AbandonedPercentDescription:

This property returns the quotient of AbandonedBySwitch by the total number of calls for the service specified by the acquired AodData object.

Syntax:

FloatValue = AodData.AbandonedPercent

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AbandonedPrecent)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

OSMS API Reference Guide Confidential

Page 305: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–157

float fAbandonedPercent = pAodDataPtr->AbandonedPrecent;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AbandonedPrecent: %f\n",iMonitorId,siServiceId,fAbandonedPrecent);

}

AgentsInActiveDescription:

This property returns the current number of agents in the state of Active for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.AgentsInActive

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInActive)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsInActive = pAodDataPtr->AgentsInActive;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInActive: %d\n",iMonitorId,siServiceId,siAgentsInActive);

}

Confidential OSMS API Reference Guide

Page 306: 700136a Epro61 Osms API Ref Guide

5–158 | Data Interfaces Aspect Software

AgentsInHoldDescription:

This property returns the current number of agents in the state of Hold for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.AgentsInHold

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInHold)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsInHold = pAodDataPtr->AgentsInHold;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInHold: %d\n",iMonitorId,siServiceId,siAgentsInHold);

}

AgentsInIdleDescription:

This property returns the current number of agents in the state of Idle for the service specified by the acquired AodData object.

OSMS API Reference Guide Confidential

Page 307: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–159

Syntax:

IntegerValue = AodData.AgentsInIdle

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInIdle)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsInIdle = pAodDataPtr->AgentsInIdle;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInIdle: %d\n",iMonitorId,siServiceId,siAgentsInIdle);

}

AgentsInInternalDescription:

This property returns the current number of agents in the state of Internal for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.AgentsInInternal

Property Type:

VB: integerC++: short

Confidential OSMS API Reference Guide

Page 308: 700136a Epro61 Osms API Ref Guide

5–160 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInInternal)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsInInternal = pAodDataPtr->AgentsInInternal;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInInternal: %d\n",iMonitorId,siServiceId,siAgentsInInternal);

}

AgentsInManualDescription:

This property returns the current number of agents in the state of Manual for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.AgentsInManual

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInManual)

OSMS API Reference Guide Confidential

Page 309: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–161

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsInManual = pAodDataPtr->AgentsInManual;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInManual: %d\n",iMonitorId,siServiceId,siAgentsInManual);

}

AgentsInNotReadyDescription:

This property returns the current number of agents in a state of Not Ready for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.AgentsInNotReady

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInNotReady)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

Confidential OSMS API Reference Guide

Page 310: 700136a Epro61 Osms API Ref Guide

5–162 | Data Interfaces Aspect Software

short siAgentsInNotReady = pAodDataPtr->AgentsInNotReady;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInNotReady: %d\n",iMonitorId,siServiceId,siAgentsInNotReady);

}

AgentsInOtherDescription:

This property returns the current number of agents in a state of Other for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.AgentsInOther

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInOther)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsInOther = pAodDataPtr->AgentsInOther;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInOther: %d\n",iMonitorId,siServiceId,siAgentsInOther);

}

OSMS API Reference Guide Confidential

Page 311: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–163

AgentsInPreviewDescription:

This property returns the current number of agents in a state of Preview for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.AgentsInPreview

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInPreview)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsInPreview = pAodDataPtr->AgentsInPreview;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInPreview: %d\n",iMonitorId,siServiceId,siAgentsInPreview);

}

AgentsInWrapDescription:

This property returns the current number of agents in a state of Wrap for the service specified by the acquired AodData object.

Confidential OSMS API Reference Guide

Page 312: 700136a Epro61 Osms API Ref Guide

5–164 | Data Interfaces Aspect Software

Syntax:

IntegerValue = AodData.AgentsInWrap

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsInWrap)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsInWrap = pAodDataPtr->AgentsInWrap;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInWrap: %d\n",iMonitorId,siServiceId,siAgentsInWrap);

}

AgentsLoggedInDescription:

This property returns the current number of agents in a state of Logged In for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.AgentsLoggedIn

Property Type:

VB: integerC++: short

OSMS API Reference Guide Confidential

Page 313: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–165

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AgentsLoggedIn)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siAgentsLoggedIn = pAodDataPtr->AgentsLoggedIn;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsLoggedIn: %d\n",iMonitorId,siServiceId,siAgentsLoggedIn);

}

ApplicationDescription:

This property returns the current application to which the service specified by the acquired AodData object belongs.

Syntax:

StringValue = AodData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = AodDataObject.Application

Confidential OSMS API Reference Guide

Page 314: 700136a Epro61 Osms API Ref Guide

5–166 | Data Interfaces Aspect Software

Set AodDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

char szApplication[81];ConvertBSTRToSTR(pAodDataPtr->Application,szApplication);short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",iMonitorId,siServiceId,szApplication);

}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

OSMS API Reference Guide Confidential

Page 315: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–167

MSF.Text = Str(AodDataObject.ApplicationId)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siApplicationId = pAodDataPtr->ApplicationId;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

AvgAgentActiveTimeDescription:

This property returns the average amount of time all agents have been in the state of Active for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.AvgAgentActiveTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AvgAgentActiveTime)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){

Confidential OSMS API Reference Guide

Page 316: 700136a Epro61 Osms API Ref Guide

5–168 | Data Interfaces Aspect Software

IAodDataPtr pAodDataPtr = pAodData;

int iAvgAgentActiveTime = pAodDataPtr->AvgAgentActiveTime;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentActiveTime: %d\n",iMonitorId,siServiceId,iAvgAgentActiveTime);

}

AvgAgentIdleTimeDescription:

This property returns the average amount of time all agents have been in the state of Idle for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.AvgAgentIdleTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AvgAgentIdleTime)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iAvgAgentIdleTime = pAodDataPtr->AvgAgentIdleTime;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentIdleTime: %d\n",iMonitorId,siServiceId,iAvgAgentIdleTime);

}

OSMS API Reference Guide Confidential

Page 317: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–169

AvgAgentWrapTimeDescription:

This property returns the average amount of time all agents have been in the state of Wrap for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.AvgAgentWrapTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.AvgAgentWrapTime)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iAvgAgentWrapTime = pAodDataPtr->AvgAgentWrapTime;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentWrapTime: %d\n",iMonitorId,siServiceId,iAvgAgentWrapTime);

}

BusyHourCallRateDescription:

This property returns the amount of seconds taken to dial the last 100 calls for the service specified by the acquired AodData object.

Confidential OSMS API Reference Guide

Page 318: 700136a Epro61 Osms API Ref Guide

5–170 | Data Interfaces Aspect Software

Syntax:

LongValue = AodData.BusyHourCallRate

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.BusyHourCallRate)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iBusyHourCallRate = pAodDataPtr->BusyHourCallRate;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t BusyHourCallRate: %d\n",iMonitorId,siServiceId,iBusyHourCallRate);

}

CallsAnsweredDescription:

This property returns the amount of calls that have been answered for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.CallsAnswered

Property Type:

VB: longC++: integer

OSMS API Reference Guide Confidential

Page 319: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–171

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.CallsAnswered)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iCallsAnswered = pAodDataPtr->CallsAnswered;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAnswered: %d\n",iMonitorId,siServiceId,iCallsAnswered);

}

CallsDialedDescription:

This property returns the amount of calls dialed for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.CallsDialed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.CallsDialed)

Confidential OSMS API Reference Guide

Page 320: 700136a Epro61 Osms API Ref Guide

5–172 | Data Interfaces Aspect Software

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iCallsDialed = pAodDataPtr->CallsDialed;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsDialed: %d\n",iMonitorId,siServiceId,iCallsDialed);

}

CallsInProgressDescription:

This property returns the amount of calls currently in progress for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.CallsInProgress

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.CallsInProgress)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

OSMS API Reference Guide Confidential

Page 321: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–173

int iCallsInProgress = pAodDataPtr->CallsInProgress;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInProgress: %d\n",iMonitorId,siServiceId,iCallsInProgress);

}

CallsInQueueDescription:

This property returns the amount of calls currently in queue for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.CallsInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.CallsInQueue)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iCallsInQueue = pAodDataPtr->CallsInQueue;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInQueue: %d\n",iMonitorId,siServiceId,iCallsInQueue);

}

Confidential OSMS API Reference Guide

Page 322: 700136a Epro61 Osms API Ref Guide

5–174 | Data Interfaces Aspect Software

CallsTransferredToAgentDescription:

This property returns the amount of calls transferred to an agent for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.CallsTransferredToAgent

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.CallsTransferredToAgent)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iCallsTransferredToAgent = pAodDataPtr->CallsTransferredToAgent;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToAgent: %d\n",iMonitorId,siServiceId,iCallsTransferredToAgent);

}

CallsTransferredToExternalDescription:

This property returns the amount of calls transferred to an external source for the service specified by the acquired AodData object.

OSMS API Reference Guide Confidential

Page 323: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–175

Syntax:

LongValue = AodData.CallsTransferredToExternal

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.CallsTransferredToExternal)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iCallsTransferredToExternal = pAodDataPtr->CallsTransferredToExternal;

short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToExternal: %d\n",iMonitorId,siServiceId,iCallsTransferredToExternal);

}

CallsTransferredToServiceDescription:

This property returns the amount of calls transferred to a service for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.CallsTransferredToService

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 324: 700136a Epro61 Osms API Ref Guide

5–176 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.CallsTransferredToService)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iCallsTransferredToService = pAodDataPtr->CallsTransferredToService;

short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToService: %d\n",iMonitorId,siServiceId,iCallsTransferredToService);

}

CurrentQuotaDescription:

This property returns the no of records dialed from the quota specified.

Syntax:

IntegerValue = TableData.CurrentQuota

Parameters:

None

VB Sample:

None

C++ Sample:

None

OSMS API Reference Guide Confidential

Page 325: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–177

GetAodDataDescription:

This method returns a raw pointer to the data stored in the AodData component.

Syntax:

AodData->GetAodData((long) &pAodStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

DAodStatistics* pAodStats;pAodDataPtr->GetAodData((long)&pAodStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pAodStats->siServiceId);

}

HangupDescription:

This property returns the amount of hangups for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.Hangup

Property Type:

VB: longC++: integer

Parameter Description

Long A casted pointer to a DAodStatistics structure.

Confidential OSMS API Reference Guide

Page 326: 700136a Epro61 Osms API Ref Guide

5–178 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.Hangup)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iHangup = pAodDataPtr->Hangup;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Hangup: %d\n",iMonitorId,siServiceId,iHangup);

}

HitRateDescription:

This property returns the amount of numbers dialed where the phone was picked up for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.HitRate

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.HitRate)

OSMS API Reference Guide Confidential

Page 327: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–179

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siHitRate = pAodDataPtr->HitRate;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t HitRate: %d\n",iMonitorId,siServiceId,siHitRate);

}

MaxCallsInQueueDescription:

This property returns the high-water mark for the number of calls in queue for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.MaxCallsInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.MaxCallsInQueue)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

Confidential OSMS API Reference Guide

Page 328: 700136a Epro61 Osms API Ref Guide

5–180 | Data Interfaces Aspect Software

int iMaxCallsInQueue = pAodDataPtr->MaxCallsInQueue;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxCallsInQueue: %d\n",iMonitorId,siServiceId,iMaxCallsInQueue);

}

MaxQuotaDescription:

This property returns the quota set for the aod service. It indicates max no of records to be dialed for the service.

Syntax:

IntegerValue = TableData.MaxQuota

Parameters:

None

VB Sample:

None

C++ Sample:

None

NumberOfSalesDescription:

This property returns the amount of calls that ended in the disposition of ‘Sales’ for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.NumberOfSales

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object,

OSMS API Reference Guide Confidential

Page 329: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–181

ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.NumberOfSales)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iNumberOfSales = pAodDataPtr->NumberOfSales;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberOfSales: %d\n",iMonitorId,siServiceId,iNumberOfSales);

}

OccupancyDescription:

This property returns agents’ productive time for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.Occupancy

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.Occupancy)

Set AodDataObject = NothingEnd Sub

Confidential OSMS API Reference Guide

Page 330: 700136a Epro61 Osms API Ref Guide

5–182 | Data Interfaces Aspect Software

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siOccupancy = pAodDataPtr->Occupancy;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Occupancy: %d\n",iMonitorId,siServiceId,siOccupancy);

}

PeakHourCallRateDescription:

This property returns the high-water mark of the amount of seconds taken to dial 100 calls for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.PeakHourCallRate

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.PeakHourCallRate)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iPeakHourCallRate = pAodDataPtr->PeakHourCallRate;short siServiceId = pAodDataPtr->ServiceId;

OSMS API Reference Guide Confidential

Page 331: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–183

printf("MonitorId: %d \t ServiceId: %d \t PeakHourCallRate: %d\n",iMonitorId,siServiceId,iPeakHourCallRate);

}

PlayMessageDescription:

This property returns the amount of times a message was played after a phone call was picked up for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.PlayMessage

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.PlayMessage)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iPlayMessage = pAodDataPtr->PlayMessage;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t PlayMessage: %d\n",iMonitorId,siServiceId,iPlayMessage);

}

Confidential OSMS API Reference Guide

Page 332: 700136a Epro61 Osms API Ref Guide

5–184 | Data Interfaces Aspect Software

PlayScriptDescription:

This property returns the amount of times a script was run after a phone call was picked up for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.PlayScript

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.PlayScript)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iPlayMessage = pAodDataPtr->PlayScript;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t PlayScript: %d\n",iMonitorId,siServiceId,iPlayScript);

}

ScheduledCallbacksDescription:

This property returns the amount of calls scheduled for callbacks for the service specified by the acquired AodData object.

OSMS API Reference Guide Confidential

Page 333: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–185

Syntax:

LongValue = AodData.ScheduledCallbacks

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.ScheduledCallbacks)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iScheduledCallbacks = pAodDataPtr->ScheduledCallbacks;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ScheduledCallbacks: %d\n",iMonitorId,siServiceId,iScheduleCallbacks);

}

SendDigitsDescription:

This property returns the amount of times a beeper message was sent after a phone call was picked up for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.SendDigits

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 334: 700136a Epro61 Osms API Ref Guide

5–186 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.SendDigits)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iSendDigits = pAodDataPtr->SendDigits;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t SendDigits: %d\n",iMonitorId,siServiceId,iSendDigits);

}

SendFaxDescription:

This property returns the amount of times a fax message was sent after a phone call was picked up for the service specified by the acquired AodData object.

Syntax:

LongValue = AodData.SendFax

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.SendFax)

OSMS API Reference Guide Confidential

Page 335: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–187

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

int iSendFax = pAodDataPtr->SendFax;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t SendFax: %d\n",iMonitorId,siServiceId,iSendFax);

}

ServiceDescription:

This property returns the name of the service for the service specified by the acquired AodData object.

Syntax:

StringValue = AodData.Service

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = AodDataObject.Service

Set AodDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

Confidential OSMS API Reference Guide

Page 336: 700136a Epro61 Osms API Ref Guide

5–188 | Data Interfaces Aspect Software

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

char szService[81];ConvertBSTRToSTR(pAodDataPtr->Service,szService);short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.ServiceId)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

OSMS API Reference Guide Confidential

Page 337: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–189

short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

ServiceTypeDescription:

This property returns the name of the service type for the service specified by the acquired AodData object.

Syntax:

StringValue = AodData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = AodDataObject.ServiceType

Set AodDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

Confidential OSMS API Reference Guide

Page 338: 700136a Epro61 Osms API Ref Guide

5–190 | Data Interfaces Aspect Software

char szServiceType[81];ConvertBSTRToSTR(pAodDataPtr->ServiceType,szServiceType);short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceType: %s\n",iMonitorId,siServiceId,szServiceType);

}

ServiceTypeIdDescription:

This property returns the service type ID for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.ServiceTypeId)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siServiceTypeId = pAodDataPtr->ServiceTypeId;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTypeId %d\n",iMonitorId,siServiceId,siServiceTypeId);

}

OSMS API Reference Guide Confidential

Page 339: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–191

StartTimeMilitaryDescription:

This property returns the time, in military, when the service was started for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.StartTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.StartTimeMilitary)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siStartTimeMilitary = pAodDataPtr->StartTimeMilitary;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t StartTimeMilitary %d\n",iMonitorId,siServiceId,siStartTimeMilitary);

}

StatusDescription:

This property returns the name of the current status for the service specified by the acquired AodData object.

Confidential OSMS API Reference Guide

Page 340: 700136a Epro61 Osms API Ref Guide

5–192 | Data Interfaces Aspect Software

Syntax:

StringValue = AodData.Status

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = AodDataObject.Status

Set AodDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

char szStatus[81];ConvertBSTRToSTR(pAodDataPtr->Status,szStatus);short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status: %s\n",iMonitorId,siServiceId,szStatus);

}

OSMS API Reference Guide Confidential

Page 341: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–193

StatusIdDescription:

This property returns the name of the current status ID for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.StatusId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.StatusId)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siStatusId = pAodDataPtr->StatusId;

printf("MonitorId: %d \t ServiceId: %d \t StatusId %d\n",iMonitorId,siServiceId,siStatusId);

}

StopTimeMilitaryDescription:

This property returns the time, in military, when the service was stopped for the service specified by the acquired AodData object.

Syntax:

IntegerValue = AodData.StopTimeMilitary

Confidential OSMS API Reference Guide

Page 342: 700136a Epro61 Osms API Ref Guide

5–194 | Data Interfaces Aspect Software

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_AodDataArrival(ByVal AodData As Object, ByVal MonitorId As Long)Dim AodDataObject As CCPROOSMSCLIENTLib.AodDataSet AodDataObject = AodData

MSF.Text = Str(AodDataObject.StopTimeMilitary)

Set AodDataObject = NothingEnd Sub

C++ Sample:

void AodDataArrival(IDispatch* pAodData, int iMonitorId){IAodDataPtr pAodDataPtr = pAodData;

short siStopTimeMilitary = pAodDataPtr->StopTimeMilitary;short siServiceId = pAodDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t StopTimeMilitary %d\n",iMonitorId,siServiceId,siStopTimeMilitary);

}

ChatData

The properties of the ChatData class are described in the following subsections.

AgentsInActiveDescription:

This property returns the current number of agents in the state of Active for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.AgentsInActive

OSMS API Reference Guide Confidential

Page 343: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–195

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)

Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInActive)

Set ChatDataObject = Nothing

End Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInActive = pChatDataPtr->AgentsInActive;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInActive: %d\n",iMonitorId,siServiceId,siAgentsInActive);

}

AgentsInHoldDescription:

This property returns the current number of agents in the state of Hold for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.AgentsInHold

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival

Confidential OSMS API Reference Guide

Page 344: 700136a Epro61 Osms API Ref Guide

5–196 | Data Interfaces Aspect Software

(ByVal ChatData As Object, ByVal MonitorId As Long)

Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInHold)

Set ChatDataObject = Nothing

End Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInHold = pChatDataPtr->AgentsInHold;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInHold: %d\n",iMonitorId,siServiceId,siAgentsInHold);

}

AgentsInIdleDescription:

This property returns the current number of agents in the state of Idle for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.AgentsInIdle

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInIdle)

Set ChatDataObject = NothingEnd Sub

OSMS API Reference Guide Confidential

Page 345: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–197

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInIdle = pChatDataPtr->AgentsInIdle;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInIdle: %d\n",iMonitorId,siServiceId,siAgentsInIdle);

}

AgentsInInternalDescription:

This property returns the current number of agents in the state of Internal for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.AgentsInInternal

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInInternal)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInInternal = pChatDataPtr->AgentsInInternal;short siServiceId = pChatDataPtr->ServiceId;

Confidential OSMS API Reference Guide

Page 346: 700136a Epro61 Osms API Ref Guide

5–198 | Data Interfaces Aspect Software

printf("MonitorId: %d \t ServiceId: %d \t AgentsInInternal: %d\n",iMonitorId,siServiceId,siAgentsInInternal);

}

AgentsInManualDescription:

This property returns the current number of agents in the state of Manual for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.AgentsInManual

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInManual)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInManual = pChatDataPtr->AgentsInManual;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInManual: %d\n",iMonitorId,siServiceId,siAgentsInManual);

}

OSMS API Reference Guide Confidential

Page 347: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–199

AgentsInNotReadyDescription:

This property returns the current number of agents in a state of Not Ready for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.AgentsInNotReady

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInNotReady)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInNotReady = pChatDataPtr->AgentsInNotReady;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInNotReady: %d\n",iMonitorId,siServiceId,siAgentsInNotReady);

}

AgentsInOtherDescription:

This property returns the current number of agents in a state of Other for the service specified by the acquired ChatData object.

Confidential OSMS API Reference Guide

Page 348: 700136a Epro61 Osms API Ref Guide

5–200 | Data Interfaces Aspect Software

Syntax:

IntegerValue = ChatData.AgentsInOther

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInOther)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInOther = pChatDataPtr->AgentsInOther;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInOther: %d\n",iMonitorId,siServiceId,siAgentsInOther);

}

AgentsInWrapDescription:

This property returns the current number of agents in a state of Wrap for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.AgentsInWrap

Property Type:

VB: integerC++: short

OSMS API Reference Guide Confidential

Page 349: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–201

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInWrap)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInWrap = pChatDataPtr->AgentsInWrap;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInWrap: %d\n",iMonitorId,siServiceId,siAgentsInWrap);

}

AgentsLoggedInDescription:

This property returns the current number of agents in a state of Logged In for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.AgentsInLoggedIn

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AgentsInLoggedIn)

Confidential OSMS API Reference Guide

Page 350: 700136a Epro61 Osms API Ref Guide

5–202 | Data Interfaces Aspect Software

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siAgentsInLoggedIn = pChatDataPtr->AgentsInLoggedIn;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AgentsInLoggedIn: %d\n",iMonitorId,siServiceId,siAgentsInLoggedIn);

}

ApplicationDescription:

This property returns the current application to which the service specified by the acquired ChatData object belongs.

Syntax:

StringValue = ChatData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = ChatDataObject.Application

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

OSMS API Reference Guide Confidential

Page 351: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–203

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

char szApplication[81];ConvertBSTRToSTR(pChatDataPtr->Application,szApplication);short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",iMonitorId,siServiceId,szApplication);

}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.ApplicationId)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){

Confidential OSMS API Reference Guide

Page 352: 700136a Epro61 Osms API Ref Guide

5–204 | Data Interfaces Aspect Software

IChatDataPtr pChatDataPtr = pChatData;

short siApplicationId = pChatDataPtr->ApplicationId;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

AvgAgentActiveTimeDescription:

This property returns the average amount of time all agents have been in the state of Active for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.AvgAgentActiveTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AvgAgentActiveTime)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iAvgAgentActiveTime = pChatDataPtr->AvgAgentActiveTime;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentActiveTime: %d\n",iMonitorId,siServiceId,iAvgAgentActiveTime);

}

OSMS API Reference Guide Confidential

Page 353: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–205

AvgAgentIdleTimeDescription:

This property returns the average amount of time all agents have been in the state of Idle for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.AvgAgentIdleTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AvgAgentIdleTime)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iAvgAgentIdleTime = pChatDataPtr->AvgAgentIdleTime;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentIdleTime: %d\n",iMonitorId,siServiceId,iAvgAgentIdleTime);

}

AvgAgentWrapTimeDescription:

This property returns the average amount of time all agents have been in the state of Wrap for the service specified by the acquired ChatData object.

Confidential OSMS API Reference Guide

Page 354: 700136a Epro61 Osms API Ref Guide

5–206 | Data Interfaces Aspect Software

Syntax:

LongValue = ChatData.AvgAgentWrapTime

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AvgAgentWrapTime)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iAvgAgentWrapTime = pChatDataPtr->AvgAgentWrapTime;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgAgentWrapTime: %d\n",iMonitorId,siServiceId,iAvgAgentWrapTime);

}

AvgSpeedOfAnswerDescription:

This property returns the average amount of time it takes for a customer to connect to an agent for the service specified by the acquired ChatData object.

Syntax:

FloatValue = ChatData.AvgSpeedOfAnswer

Property Type:

VB: floatC++: float

OSMS API Reference Guide Confidential

Page 355: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–207

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AvgSpeedOfAnswer)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

float fAvgSpeedOfAnswer = pChatDataPtr->AvgSpeedOfAnswer;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgSpeedOfAnswer: %d\n",iMonitorId,siServiceId,fAvgSpeedOfAnswer);

}

AvgTimeInQueueDescription:

This property returns the average amount of time a call stays in the queue before being processed for the service specified by the acquired ChatData object.

Syntax:

FloatValue = ChatData.AvgTimeInQueue

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AvgTimeInQueue)

Confidential OSMS API Reference Guide

Page 356: 700136a Epro61 Osms API Ref Guide

5–208 | Data Interfaces Aspect Software

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

float fAvgTimeInQueue = pChatDataPtr->AvgTimeInQueue;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgTimeInQueue: %d\n",iMonitorId,siServiceId,fAvgTimeInQueue);

}

AvgTimeToAbandonDescription:

This property returns the average amount of time it takes for a customer to hang up on the chat request while waiting in queue for the service specified by the acquired ChatData object.

Syntax:

FloatValue = ChatData.AvgTimeToAbandon

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.AvgTimeToAbandon)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

OSMS API Reference Guide Confidential

Page 357: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–209

float fAvgTimeToAbandon = pChatDataPtr->AvgTimeToAbandon;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AvgTimeToAbandon: %d\n",iMonitorId,siServiceId,fAvgTimeToAbandon);

}

CallsAbandonedBeforeQueueDescription:

This property returns the amount of calls that have been terminated before being placed in the queue for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsAbandonedBeforeQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsAbandonedBeforeQueue)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsAbandonedBeforeQueue = pChatDataPtr->CallsAbandonedBeforeQueue;

short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAbandonedBeforeQueue: %d\n",iMonitorId,siServiceId,iCallsAbandonedBeforeQueue);

}

Confidential OSMS API Reference Guide

Page 358: 700136a Epro61 Osms API Ref Guide

5–210 | Data Interfaces Aspect Software

CallsAbandonedInQueueDescription:

This property returns the amount of calls that have been terminated after being placed in the queue for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsAbandonedInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsAbandonedInQueue)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsAbandonedInQueue = pChatDataPtr->CallsAbandonedInQueue;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAbandonedInQueue: %d\n",iMonitorId,siServiceId,iCallsAbandonedInQueue);

}

CallsAnsweredDescription:

This property returns the amount of calls that have been answered for the service specified by the acquired ChatData object.

OSMS API Reference Guide Confidential

Page 359: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–211

Syntax:

LongValue = ChatData.CallsAnswered

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsAnswered)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsAnswered = pChatDataPtr->CallsAnswered;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAnswered: %d\n",iMonitorId,siServiceId,iCallsAnswered);

}

CallsInEmailDescription:

This property returns the amount of calls currently in Email for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsInEmail

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 360: 700136a Epro61 Osms API Ref Guide

5–212 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsInEmail)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsInEmail = pChatDataPtr->CallsInEmail;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInEmail: %d\n",iMonitorId,siServiceId,iCallsInEmail);

}

CallsInQueueDescription:

This property returns the amount of calls currently in queue for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsInQueue)

OSMS API Reference Guide Confidential

Page 361: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–213

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsInQueue = pChatDataPtr->CallsInQueue;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsInQueue: %d\n",iMonitorId,siServiceId,iCallsInQueue);

}

CallsOfferedDescription:

This property returns the amount of calls that have been offered the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsOffered

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsOffered)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

Confidential OSMS API Reference Guide

Page 362: 700136a Epro61 Osms API Ref Guide

5–214 | Data Interfaces Aspect Software

int iCallsOffered = pChatDataPtr->CallsOffered;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsOffered: %d\n",iMonitorId,siServiceId,iCallsOffered);

}

CallsOverflowedDescription:

This property returns the amount of calls that have been overflowed for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsOverflowed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsOverflowed)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsOverflowed = pChatDataPtr->CallsOverflowed;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsOverflowed: %d\n",iMonitorId,siServiceId,iCallsOverflowed);

}

OSMS API Reference Guide Confidential

Page 363: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–215

CallsRejectedDescription:

This property returns the amount of calls that have been rejected for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsRejected

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsRejected)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsRejected = pChatDataPtr->CallsRejected;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsRejected: %d\n",iMonitorId,siServiceId,iCallsRejected);

}

CallsReroutedDescription:

This property returns the amount of calls that have been rerouted for the service specified by the acquired ChatData object.

Confidential OSMS API Reference Guide

Page 364: 700136a Epro61 Osms API Ref Guide

5–216 | Data Interfaces Aspect Software

Syntax:

LongValue = ChatData.CallsRerouted

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsRerouted)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsRerouted = pChatDataPtr->CallsRerouted;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsRerouted: %d\n",iMonitorId,siServiceId,iCallsRerouted);

}

CallsServicedWithinServiceLevelDescription:

This property returns the amount of calls serviced within the target queue time for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsServicedWithinServiceLevel

Property Type:

VB: longC++: integer

OSMS API Reference Guide Confidential

Page 365: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–217

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsServicedWithinServiceLevel)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsServicedWithinServiceLevel = pChatDataPtr->CallsServicedWithinServiceLevel;

short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsServicedWithinServiceLevel: %d\n",iMonitorId,siServiceId,iCallsServicedWithinServiceLevel);

}

CallsTransferredToAgentDescription:

This property returns the amount of calls transferred to an agent for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsTransferredToAgent

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

Confidential OSMS API Reference Guide

Page 366: 700136a Epro61 Osms API Ref Guide

5–218 | Data Interfaces Aspect Software

MSF.Text = Str(ChatDataObject.CallsTransferredToAgent)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCallsTransferredToAgent = pChatDataPtr->CallsTransferredToAgent;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToAgent: %d\n",iMonitorId,siServiceId,iCallsTransferredToAgent);

}

CallsTransferredToServiceDescription:

This property returns the amount of calls transferred to another service for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CallsTransferredToService

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CallsTransferredToService)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){

OSMS API Reference Guide Confidential

Page 367: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–219

IChatDataPtr pChatDataPtr = pChatData;

int iCallsTransferredToService = pChatDataPtr->CallsTransferredToService;

short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsTransferredToService: %d\n",iMonitorId,siServiceId,iCallsTransferredToService);

}

CurrentLongestQueueWaitSecondsDescription:

This property returns the current high-water mark for queue wait time for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.CurrentLongestQueueWaitSeconds

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.CurrentLongestQueueWaitSeconds)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iCurrentLongestQueueWaitSeconds = pChatDataPtr->CurrentLongestQueueWaitSeconds;

short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CurrentLongestQueueWaitSeconds: %d\n",iMonitorId,siServiceId,iCurrentLongestQueueWaitSeconds);

}

Confidential OSMS API Reference Guide

Page 368: 700136a Epro61 Osms API Ref Guide

5–220 | Data Interfaces Aspect Software

MaxCallsInQueueDescription:

This property returns the high-water mark for the number of calls in queue for the service specified by the acquired ChatData object.

Syntax:

LongValue = ChatData.MaxCallsInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.MaxCallsInQueue)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iMaxCallsInQueue = pChatDataPtr->MaxCallsInQueue;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxCallsInQueue: %d\n",iMonitorId,siServiceId,iMaxCallsInQueue);

}

MaxWaitInQueueDescription:

This property returns the high-water mark for the wait time in queue for the service specified by the acquired ChatData object.

OSMS API Reference Guide Confidential

Page 369: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–221

Syntax:

LongValue = ChatData.MaxWaitInQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.MaxWaitInQueue)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

int iMaxWaitInQueue = pChatDataPtr->MaxWaitInQueue;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MaxWaitInQueue: %d\n",iMonitorId,siServiceId,iMaxWaitInQueue);

}

OccupancyDescription:

This property returns agents’ productive time for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.Occupancy

Property Type:

VB: integerC++: short

Confidential OSMS API Reference Guide

Page 370: 700136a Epro61 Osms API Ref Guide

5–222 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.Occupancy)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siOccupancy = pChatDataPtr->Occupancy;short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Occupancy: %d\n",iMonitorId,siServiceId,siOccupancy);

}

PercentServiceWithinServiceLevelDescription:

This property returns the quotient of CallsServicedWithinServiceLevel by CallsOffered for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.PercentServiceWithinServiceLevel

Property Type:

VB: floatC++: float

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.PercentServiceWithServiceLevel)

OSMS API Reference Guide Confidential

Page 371: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–223

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

float fPercentServiceWithinServiceLevel = pChatDataPtr->PercentServiceWithinServiceLevel;

short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t PercentServiceWithinServiceLevel: %d\n",iMonitorId,siServiceId,fPercentServiceWithinServiceLevel);

}

ServiceDescription:

This property returns the name of the service for the service specified by the acquired ChatData object.

Syntax:

StringValue = ChatData.Service

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = ChatDataObject.Service

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){

Confidential OSMS API Reference Guide

Page 372: 700136a Epro61 Osms API Ref Guide

5–224 | Data Interfaces Aspect Software

int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

char szService[81];ConvertBSTRToSTR(pChatDataPtr->Service,szService);short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.ServiceId)

Set ChatDataObject = NothingEnd Sub

OSMS API Reference Guide Confidential

Page 373: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–225

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

ServiceTypeDescription:

This property returns the name of the service type for the service specified by the acquired ChatData object.

Syntax:

StringValue = ChatData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = ChatDataObject.ServiceType

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

Confidential OSMS API Reference Guide

Page 374: 700136a Epro61 Osms API Ref Guide

5–226 | Data Interfaces Aspect Software

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

char szServiceType[81];ConvertBSTRToSTR(pChatDataPtr->ServiceType,szServiceType);short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceType: %s\n",iMonitorId,siServiceId,szServiceType);

}

ServiceTypeIdDescription:

This property returns the service type ID for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.ServiceTypeId)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siServiceTypeId = pChatDataPtr->ServiceTypeId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTypeId %d\n",iMonitorId,siServiceId,siServiceTypeId);

}

OSMS API Reference Guide Confidential

Page 375: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–227

StartTimeMilitaryDescription:

This property returns the time, in military, when the service was started for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.StartTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.StartTimeMilitary)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siStartTimeMilitary = pChatDataPtr->StartTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StartTimeMilitary %d\n",iMonitorId,siServiceId,siStartTimeMilitary);

}

StatusDescription:

This property returns the name of the current status for the service specified by the acquired ChatData object.

Syntax:

StringValue = ChatData.Status

Confidential OSMS API Reference Guide

Page 376: 700136a Epro61 Osms API Ref Guide

5–228 | Data Interfaces Aspect Software

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = ChatDataObject.Status

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

char szStatus[81];ConvertBSTRToSTR(pChatDataPtr->Status,szStatus);short siServiceId = pChatDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status: %s\n",iMonitorId,siServiceId,szStatus);

}

StatusIdDescription:

This property returns the name of the current status ID for the service specified by the acquired ChatData object.

OSMS API Reference Guide Confidential

Page 377: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–229

Syntax:

IntegerValue = ChatData.StatusId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.StatusId)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siStatusId = pChatDataPtr->StatusId;

printf("MonitorId: %d \t ServiceId: %d \t StatusId %d\n",iMonitorId,siServiceId,siStatusId);

}

StopTimeMilitaryDescription:

This property returns the time, in military, when the service was stopped for the service specified by the acquired ChatData object.

Syntax:

IntegerValue = ChatData.StopTimeMilitary

Property Type:

VB: integerC++: short

Confidential OSMS API Reference Guide

Page 378: 700136a Epro61 Osms API Ref Guide

5–230 | Data Interfaces Aspect Software

VB Sample:

Private Sub ServiceMonitor_ChatDataArrival(ByVal ChatData As Object, ByVal MonitorId As Long)Dim ChatDataObject As CCPROOSMSCLIENTLib.ChatDataSet ChatDataObject = ChatData

MSF.Text = Str(ChatDataObject.StopTimeMilitary)

Set ChatDataObject = NothingEnd Sub

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

short siStopTimeMilitary = pChatDataPtr->StopTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StopTimeMilitary %d\n",iMonitorId,siServiceId,siStopTimeMilitary);

}

GetChatDataDescription:

This method returns a raw pointer to the data stored in the ChatData component.

Syntax:

ChatData->GetChatData((long) &pChatStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void ChatDataArrival(IDispatch* pChatData, int iMonitorId){IChatDataPtr pChatDataPtr = pChatData;

Parameter Description

Long A casted pointer to a DChatStatistics structure.

OSMS API Reference Guide Confidential

Page 379: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–231

DChatStatistics* pChatStats;pChatDataPtr->GetChatData((long)&pChatStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pChatStats->siServiceId);

}

CtiData

The CtiData class has the same properties as the AcdData class. Refer to the following AcdData property sections for details:

• “AgentsInActive“ on page 5–1

• “AgentsInHold“ on page 5–2

• “AgentsInIdle“ on page 5–3

• “AgentsInInternal“ on page 5–4

• “AgentsInManual“ on page 5–5

• “AgentsInNotReady“ on page 5–6

• “AgentsInOther“ on page 5–7

• “AgentsInPreview“ on page 5–7

• “AgentsInWrap“ on page 5–8

• “AgentsLoggedIn“ on page 5–9

• “Application“ on page 5–10

• “ApplicationId“ on page 5–11

• “AvgAgentActiveTime“ on page 5–12

• “AvgAgentIdleTime“ on page 5–13

• “AvgAgentWrapTime“ on page 5–13

• “AvgSpeedOfAnswer“ on page 5–14

• “AvgTimeInQueue“ on page 5–15

• “AvgTimeToAbandon“ on page 5–16

• “CallsAbandonedBeforeQueue“ on page 5–17

• “CallsAbandonedInQueue“ on page 5–18

• “CallsAnswered“ on page 5–18

• “CallsInProgress“ on page 5–19

Confidential OSMS API Reference Guide

Page 380: 700136a Epro61 Osms API Ref Guide

5–232 | Data Interfaces Aspect Software

• “CallsInQueue“ on page 5–20

• “CallsInVoiceMail“ on page 5–21

• “CallsOffered“ on page 5–22

• “CallsOverflowed“ on page 5–23

• “CallsRejected“ on page 5–23

• “CallsRerouted“ on page 5–24

• “CallsServicedWithinServiceLevel“ on page 5–25

• “CallsTransferredToAgent“ on page 5–26

• “CallsTransferredToExternal“ on page 5–27

• “CallsTransferredToService“ on page 5–28

• “CurrentLongestQueueWaitSeconds“ on page 5–28

• “MaxCallsInQueue“ on page 5–29

• “MaxWaitInQueue“ on page 5–30

• “Occupancy“ on page 5–31

• “PercentServiceWithinServiceLevel“ on page 5–32

• “Service“ on page 5–33

• “ServiceId“ on page 5–34

• “ServiceType“ on page 5–35

• “ServiceTypeId“ on page 5–36

• “StartTimeMilitary“ on page 5–36

• “Status“ on page 5–37

• “StatusId“ on page 5–38

• “StopTimeMilitary“ on page 5–39

DistListMailQueueData

The properties of the DistListMailQueueData class are described in the following subsections.

OSMS API Reference Guide Confidential

Page 381: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–233

ApplicationDescription:

This property returns the current application to which the service specified by the acquired DistListMailQueueData object belongs.

Syntax:

StringValue = DistListMailQueueData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByValDistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = DistListMailQueueDataObject.Application

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

char szApplication[81];ConvertBSTRToSTR(pDistListMailQueueDataPtr->Application,

Confidential OSMS API Reference Guide

Page 382: 700136a Epro61 Osms API Ref Guide

5–234 | Data Interfaces Aspect Software

szApplication);short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",iMonitorId,siServiceId,szApplication);

}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired DistListMailQueueData object.

Syntax:

IntegerValue = DistListMailQueueData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.ApplicationId)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

short siApplicationId = pDistListMailQueueDataPtr->ApplicationId;short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

OSMS API Reference Guide Confidential

Page 383: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–235

DistributionListDescription:

This property returns the name of the current distribution list for the service specified by the acquired DistListMailQueueData object.

Syntax:

StringValue = DistListMailQueueData.DistributionList

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByValDistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = DistListMailQueueDataObject.DistributionList

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

char szDistributionList[81];ConvertBSTRToSTR(pDistListMailQueueDataPtr->DistributionList,

Confidential OSMS API Reference Guide

Page 384: 700136a Epro61 Osms API Ref Guide

5–236 | Data Interfaces Aspect Software

szDistributionList);short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t DistributionList: %s\n",iMonitorId,siServiceId,szDistributionList);

}

DistributionListIdDescription:

This property returns the current distribution list ID for the service specified by the acquired DistListMailQueueData object.

Syntax:

IntegerValue = DistListMailQueueData.DistributionListId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.DistributionListId)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

short siDistributionListId =pDistListMailQueueDataPtr->DistributionListId;

short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t DistributionListId: %d\n",

OSMS API Reference Guide Confidential

Page 385: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–237

iMonitorId,siServiceId,siDistributionListId);}

EMailedDescription:

This property returns the amount of Emails that have been sent by the service specified by the acquired DistListMailQueueData object.

Syntax:

LongValue = DistListMailQueueData.EMailed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.EMailed)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

int iEMailed = pDistListMailQueueDataPtr->EMailed;short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t EMailed: %d\n",iMonitorId,siServiceId,iEMailed);

}

Confidential OSMS API Reference Guide

Page 386: 700136a Epro61 Osms API Ref Guide

5–238 | Data Interfaces Aspect Software

EndTimeMilitaryDescription:

This property returns the time, in military, when the service was stopped for the service specified by the acquired DistListMailQueueData object.

Syntax:

IntegerValue = DistListMailQueueData.EndTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.EndTimeMilitary)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

short siEndTimeMilitary = pDistListMailQueueDataPtr->EndTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t EndTimeMilitary %d\n",iMonitorId,siServiceId,siEndTimeMilitary);

}

OSMS API Reference Guide Confidential

Page 387: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–239

LeftToBeMailedDescription:

This property returns the amount of Emails that have not yet been sent by the service specified by the acquired DistListMailQueueData object.

Syntax:

LongValue = DistListMailQueueData.LeftToBeMailed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.LeftToBeMailed)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

int iLeftToBeMailed = pDistListMailQueueDataPtr->LeftToBeMailed;short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t LeftToBeMailed: %d\n",iMonitorId,siServiceId,iLeftToBeMailed);

}

Confidential OSMS API Reference Guide

Page 388: 700136a Epro61 Osms API Ref Guide

5–240 | Data Interfaces Aspect Software

MailQueueDescription:

This property returns the current mail queue for the service specified by the acquired DistListMailQueueData object.

Syntax:

StringValue = DistListMailQueueData.MailQueue

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByValDistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = DistListMailQueueDataObject.MailQueue

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

char szMailQueue[81];ConvertBSTRToSTR(pDistListMailQueueDataPtr->MailQueue,

szMailQueue);

OSMS API Reference Guide Confidential

Page 389: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–241

short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MailQueue: %s\n",iMonitorId,siServiceId,szMailQueue);

}

MailQueueIdDescription:

This property returns the current mail queue ID used by the service specified by the acquired DistListMailQueueData object.

Syntax:

IntegerValue = DistListMailQueueData.MailQueueId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.MailQueueId)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

short siMailQueueId = pDistListMailQueueDataPtr->MailQueueId;short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t MailQueueId: %d\n",iMonitorId,siServiceId,siMailQueueId);

}

Confidential OSMS API Reference Guide

Page 390: 700136a Epro61 Osms API Ref Guide

5–242 | Data Interfaces Aspect Software

SelectedDescription:

This property returns the amount of Emails that have been selected for sending by the service specified by the acquired DistListMailQueueData object.

Syntax:

LongValue = DistListMailQueueData.Selected

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.Selected)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

int iSelected = pDistListMailQueueDataPtr->Selected;short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Selected: %d\n",iMonitorId,siServiceId,iSelected);

}

OSMS API Reference Guide Confidential

Page 391: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–243

SendFailedCountDescription:

This property returns the amount of Emails that the service specified by the acquired DistListMailQueueData object could not send.

Syntax:

LongValue = DistListMailQueueData.SendFailedCount

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.SendFailedCount)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

int iSendFailedCount = pDistListMailQueueDataPtr->SendFailedCount;short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t SendFailedCount: %d\n",iMonitorId,siServiceId,iSendFailedCount);

}

Confidential OSMS API Reference Guide

Page 392: 700136a Epro61 Osms API Ref Guide

5–244 | Data Interfaces Aspect Software

ServiceDescription:

This property returns the name of the service for the service specified by the acquired DistListMailQueueData object.

Syntax:

StringValue = DistListMailQueueData.Service

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByValDistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = DistListMailQueueDataObject.Service

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

char szService[81];ConvertBSTRToSTR(pDistListMailQueueDataPtr->Service, szService);

OSMS API Reference Guide Confidential

Page 393: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–245

short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired DistListMailQueueData object.

Syntax:

IntegerValue = DistListMailQueueData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.ServiceId)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

short siServiceId =pDistListMailQueueDataPtr->ServiceId;

short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceId: %d\n",iMonitorId,siServiceId,siServiceId);

}

Confidential OSMS API Reference Guide

Page 394: 700136a Epro61 Osms API Ref Guide

5–246 | Data Interfaces Aspect Software

ServiceTypeDescription:

This property returns the name of the service type for the service specified by the acquired DistListMailQueueData object.

Syntax:

StringValue = DistListMailQueueData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = DistListMailQueueDataObject.ServiceType

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

char szServiceType[81];ConvertBSTRToSTR(pDistListMailQueueDataPtr->ServiceType,

OSMS API Reference Guide Confidential

Page 395: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–247

szServiceType);short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceType: %s\n",iMonitorId,siServiceId,szServiceType);

}

ServiceTypeIdDescription:

This property returns the service type ID for the service specified by the acquired DistListMailQueueData object.

Syntax:

IntegerValue = DistListMailQueueData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.ServiceTypeId)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

short siServiceTypeId = pDistListMailQueueDataPtr->ServiceTypeId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTypeId %d\n",iMonitorId,siServiceId,siServiceTypeId);

}

Confidential OSMS API Reference Guide

Page 396: 700136a Epro61 Osms API Ref Guide

5–248 | Data Interfaces Aspect Software

StartTimeMilitaryDescription:

This property returns the time, in military, when the service was started for the service specified by the acquired DistListMailQueueData object.

Syntax:

IntegerValue = DistListMailQueueData.StartTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.StartTimeMilitary)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

short siStartTimeMilitary =pDistListMailQueueDataPtr->StartTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StartTimeMilitary %d\n",iMonitorId,siServiceId,siStartTimeMilitary);

}

OSMS API Reference Guide Confidential

Page 397: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–249

StatusDescription:

This property returns the name of the current status for the service specified by the acquired DistListMailQueueData object.

Syntax:

StringValue = DistListMailQueueData.Status

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = DistListMailQueueDataObject.Status

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

char szStatus[81];ConvertBSTRToSTR(pDistListMailQueueDataPtr->Status,szStatus);

Confidential OSMS API Reference Guide

Page 398: 700136a Epro61 Osms API Ref Guide

5–250 | Data Interfaces Aspect Software

short siServiceId = pDistListMailQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status: %s\n",iMonitorId,siServiceId,szStatus);

}

StatusIdDescription:

This property returns the name of the current status ID for the service specified by the acquired DistListMailQueueData object.

Syntax:

IntegerValue = DistListMailQueueData.StatusId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_DistListMailQueueDataArrival(ByVal DistListMailQueueData As Object, ByVal MonitorId As Long)Dim DistListMailQueueDataObject As

CCPROOSMSCLIENTLib.DistListMailQueueDataSet DistListMailQueueDataObject = DistListMailQueueData

MSF.Text = Str(DistListMailQueueDataObject.StatusId)

Set DistListMailQueueDataObject = NothingEnd Sub

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr =

pDistListMailQueueData;

short siStatusId = pDistListMailQueueDataPtr->StatusId;

printf("MonitorId: %d \t ServiceId: %d \t StatusId %d\n",iMonitorId,siServiceId,siStatusId);

}

OSMS API Reference Guide Confidential

Page 399: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–251

GetDistListMailQueueDataDescription:

This method returns a raw pointer to the data stored in the DistListMailQueueData component.

Syntax:

DistListMailQueueData->GetDistListMailQueueData((long) &pDistList-MailQueueStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void DistListMailQueueDataArrival(IDispatch* pDistListMailQueueData, int iMonitorId){IDistListMailQueueDataPtr pDistListMailQueueDataPtr = pDistListMailQueueData;

DDistListMailQueueStatistics* pDistListMailQueueStats;pDistListMailQueueDataPtr->GetDistListMailQueueData((long)&pAcdStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pAcdStats->siServiceId);

}

FeedApplicationData

The properties of the FeedApplicationData class are described in the following subsections.

Parameter Description

Long A casted pointer to a DDistListMailQueueStatistics structure.

Confidential OSMS API Reference Guide

Page 400: 700136a Epro61 Osms API Ref Guide

5–252 | Data Interfaces Aspect Software

AbandonedBySwitchDescription:

This property returns the amount of calls abandoned by the switch for the Feed Application specified by the acquired FeedApplicationData object.

Syntax:

LongValue = FeedApplicationData.AbandonedBySwitch

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival(ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As

CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.AbandonedBySwitch)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

int iAbandonedBySwitch = pFeedApplicationDataPtr->AbandonedBySwitch;short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AbandonedBySwitch: %d\n",iMonitorId,siServiceId,iAbandonedBySwitch);

}

OSMS API Reference Guide Confidential

Page 401: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–253

ApplicationDescription:

This property returns the current application to which the service specified by the acquired FeedApplicationData object belongs.

Syntax:

StringValue = FeedApplicationData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = FeedApplicationDataObject.Application

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

char szApplication[81];ConvertBSTRToSTR(pFeedApplicationDataPtr->Application,szApplication);short siServiceId = pFeedApplicationDataPtr->ServiceId;

Confidential OSMS API Reference Guide

Page 402: 700136a Epro61 Osms API Ref Guide

5–254 | Data Interfaces Aspect Software

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",iMonitorId,siServiceId,szApplication);

}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired FeedApplicationData object.

Syntax:

IntegerValue = FeedApplicationData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As

CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.ApplicationId)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr = pFeedApplicationData;

short siApplicationId = pFeedApplicationDataPtr->ApplicationId;short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

OSMS API Reference Guide Confidential

Page 403: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–255

AverageDialRateDescription:

This property returns the average dial rate by the switch for the Feed Application specified by the acquired FeedApplicationData object.

Syntax:

LongValue = FeedApplicationData.AverageDialRate

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival(ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As

CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.AverageDialRate)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

int iAverageDialRate = pFeedApplicationDataPtr->AverageDialRate;short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageDialRate: %d\n",iMonitorId,siServiceId,iAverageDialRate);

}

Confidential OSMS API Reference Guide

Page 404: 700136a Epro61 Osms API Ref Guide

5–256 | Data Interfaces Aspect Software

AverageFeedRateDescription:

This property returns the average feed rate by the switch for the Feed Application specified by the acquired FeedApplicationData object.

Syntax:

LongValue = FeedApplicationData.AverageFeedRate

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival(ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As

CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.AverageFeedRate)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

int iAverageFeedRate = pFeedApplicationDataPtr->AverageFeedRate;short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageFeedRate: %d\n",iMonitorId,siServiceId,iAverageFeedRate);

}

OSMS API Reference Guide Confidential

Page 405: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–257

AverageRequestRateDescription:

This property returns the average request rate by the switch for the Feed Application specified by the acquired FeedApplicationData object.

Syntax:

LongValue = FeedApplicationData.AverageRequestRate

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival(ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As

CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.AverageRequestRate)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

int iAverageRequestRate = pFeedApplicationDataPtr->AverageRequestRate;

short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageRequestRate: %d\n",iMonitorId,siServiceId,iAverageRequestRate);

}

Confidential OSMS API Reference Guide

Page 406: 700136a Epro61 Osms API Ref Guide

5–258 | Data Interfaces Aspect Software

CallsAnsweredDescription:

This property returns the amount of calls that were answered for the service specified by the acquired FeedApplicationData object.

Syntax:

LongValue = FeedApplicationData.CallsAnswered

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.CallsAnswered)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr = pFeedApplicationData;

int iCallsAnswered = pFeedApplicationDataPtr->CallsAnswered;short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsAnswered: %d\n",iMonitorId,siServiceId,iCallsAnswered);

}

OSMS API Reference Guide Confidential

Page 407: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–259

CallsDialedDescription:

This property returns the amount of calls dialed for the service specified by the acquired FeedApplicationData object.

Syntax:

LongValue = FeedApplicationData.CallsDialed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.CallsDialed)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr = pFeedApplicationData;

int iCallsDialed = pFeedApplicationDataPtr->CallsDialed;short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsDialed: %d\n",iMonitorId,siServiceId,iCallsDialed);

}

Confidential OSMS API Reference Guide

Page 408: 700136a Epro61 Osms API Ref Guide

5–260 | Data Interfaces Aspect Software

CallsProvidedDescription:

This property returns the amount of calls provided for the service specified by the acquired FeedApplicationData object.

Syntax:

LongValue = FeedApplicationData.CallsProvided

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.CallsProvided)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr = pFeedApplicationData;

int iCallsProvided = pFeedApplicationDataPtr->CallsProvided;short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t CallsProvided: %d\n",iMonitorId,siServiceId,iCallsProvided);

}

FeedApplicationDescription:

This property returns the name associated with the customer’s Feed Application.

OSMS API Reference Guide Confidential

Page 409: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–261

Syntax:

StringValue = FeedApplicationData.FeedApplication

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = FeedApplicationDataObject.FeedApplication

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

char szFeedApplication[81];ConvertBSTRToSTR(pFeedApplicationDataPtr->FeedApplication,

szFeedApplication);short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t FeedApplication: %s\n",iMonitorId,siServiceId,szFeedApplication);

}

Confidential OSMS API Reference Guide

Page 410: 700136a Epro61 Osms API Ref Guide

5–262 | Data Interfaces Aspect Software

GetFeedApplicationDataDescription:

This method returns a raw pointer to the data stored in the FeedApplicationData component.

Syntax:

FeedApplicationData->GetFeedApplicationData((long)&pFeedApplicationStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData,int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

DFeedApplicationStatistics* pFeedApplicationStats;pFeedApplicationDataPtr->GetFeedApplicationData((long

&pFeedApplicationStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pFeedApplicationStats->siServiceId);

}

ServiceDescription:

This property returns the name of the service for the service specified by the acquired FeedApplicationData object.

Syntax:

StringValue = FeedApplicationData.Service

Parameter Description

Long A casted pointer to a DFeedApplicationStatistics structure.

OSMS API Reference Guide Confidential

Page 411: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–263

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = FeedApplicationDataObject.Service

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr = pFeedApplicationData;

char szService[81];ConvertBSTRToSTR(pFeedApplicationDataPtr->Service,szService);short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

Confidential OSMS API Reference Guide

Page 412: 700136a Epro61 Osms API Ref Guide

5–264 | Data Interfaces Aspect Software

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired FeedApplicationData object.

Syntax:

IntegerValue = FeedApplicationData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.ServiceId)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr = pFeedApplicationData;

short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

ServiceTypeDescription:

This property returns the name of the service type for the service specified by the acquired FeedApplicationData object.

OSMS API Reference Guide Confidential

Page 413: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–265

Syntax:

StringValue = FeedApplicationData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = FeedApplicationDataObject.ServiceType

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr = pFeedApplicationData;

char szServiceType[81];ConvertBSTRToSTR(pFeedApplicationDataPtr->ServiceType,szServiceType);short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceType: %s\n",iMonitorId,siServiceId,szServiceType);

}

Confidential OSMS API Reference Guide

Page 414: 700136a Epro61 Osms API Ref Guide

5–266 | Data Interfaces Aspect Software

ServiceTypeIdDescription:

This property returns the service type ID for the service specified by the acquired FeedApplicationData object.

Syntax:

IntegerValue = FeedApplicationData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.ServiceTypeId)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr = pFeedApplicationData;

short siServiceTypeId = pFeedApplicationDataPtr->ServiceTypeId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTypeId %d\n",iMonitorId,siServiceId,siServiceTypeId);

}

StartTimeMilitaryDescription:

This property returns the time, in military, when the service was started for the service specified by the acquired FeedApplicationData object.

OSMS API Reference Guide Confidential

Page 415: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–267

Syntax:

IntegerValue = FeedApplicationData.StartTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.StartTimeMilitary)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

short siStartTimeMilitary =pFeedApplicationDataPtr->StartTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StartTimeMilitary %d\n",iMonitorId,siServiceId,siStartTimeMilitary);

}

StatusDescription:

This property returns the name of the current status for the service specified by the acquired FeedApplicationData object.

Syntax:

StringValue = FeedApplicationData.Status

Confidential OSMS API Reference Guide

Page 416: 700136a Epro61 Osms API Ref Guide

5–268 | Data Interfaces Aspect Software

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As

CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = FeedApplicationDataObject.Status

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

char szStatus[81];ConvertBSTRToSTR(pFeedApplicationDataPtr->Status,szStatus);short siServiceId = pFeedApplicationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status: %s\n",iMonitorId,siServiceId,szStatus);

}

OSMS API Reference Guide Confidential

Page 417: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–269

StatusIdDescription:

This property returns the name of the current status ID for the service specified by the acquired FeedApplicationData object.

Syntax:

IntegerValue = FeedApplicationData.StatusId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As

CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.StatusId)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

short siStatusId = pFeedApplicationDataPtr->StatusId;

printf("MonitorId: %d \t ServiceId: %d \t StatusId %d\n",iMonitorId,siServiceId,siStatusId);

}

StopTimeMilitaryDescription:

This property returns the time, in military, when the service was stopped for the service specified by the acquired FeedApplicationData object.

Confidential OSMS API Reference Guide

Page 418: 700136a Epro61 Osms API Ref Guide

5–270 | Data Interfaces Aspect Software

Syntax:

IntegerValue = FeedApplicationData.StopTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationDataArrival (ByVal FeedApplicationData As Object, ByVal MonitorId As Long)Dim FeedApplicationDataObject As

CCPROOSMSCLIENTLib.FeedApplicationDataSet FeedApplicationDataObject = FeedApplicationData

MSF.Text = Str(FeedApplicationDataObject.StopTimeMilitary)

Set FeedApplicationDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationDataArrival(IDispatch* pFeedApplicationData, int iMonitorId){IFeedApplicationDataPtr pFeedApplicationDataPtr =

pFeedApplicationData;

short siStopTimeMilitary = pFeedApplicationDataPtr->StopTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StopTimeMilitary %d\n",iMonitorId,siServiceId,siStopTimeMilitary);

}

FeedApplicationQueueData

The properties of the FeedApplicationQueueData class are described in the following subsections.

ApplicationDescription:

This property returns the current application to which the service specified by the acquired FeedApplicationQueueData object belongs.

OSMS API Reference Guide Confidential

Page 419: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–271

Syntax:

StringValue = FeedApplicationQueueData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival (ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = FeedApplicationQueueDataObject.Application

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

char szApplication[81];ConvertBSTRToSTR(pFeedApplicationQueueDataPtr->Application,

szApplication);short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",iMonitorId,siServiceId,szApplication);

}

Confidential OSMS API Reference Guide

Page 420: 700136a Epro61 Osms API Ref Guide

5–272 | Data Interfaces Aspect Software

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired FeedApplicationQueueData object.

Syntax:

IntegerValue = FeedApplicationQueueData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival (ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.ApplicationId)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr = pFeedApplicationQueueData;

short siApplicationId = pFeedApplicationQueueDataPtr->ApplicationId;short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

OSMS API Reference Guide Confidential

Page 421: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–273

AverageDialRateForNormalQueueDescription:

This property returns the average number of records per hour dialed by the switch, from the normal priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageDialRateForNormalQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageDialRateForNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageDialRateForNormalQueue = pFeedApplicationQueueDataPtr->AverageDialRateForNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageDialRateForNormalQueue: %d\n",iMonitorId,siServiceId,iAverageDialRateForNormalQueue);

}

Confidential OSMS API Reference Guide

Page 422: 700136a Epro61 Osms API Ref Guide

5–274 | Data Interfaces Aspect Software

AverageDialRateForMediumQueueDescription:

This property returns the average number of records per hour dialed by the switch, from the medium priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageDialRateForMediumQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageDialRateForMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageDialRateForMediumQueue = pFeedApplicationQueueDataPtr->AverageDialRateForMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageDialRateForMediumQueue: %d\n",iMonitorId,siServiceId,iAverageDialRateForMediumQueue);

}

OSMS API Reference Guide Confidential

Page 423: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–275

AverageDialRateForHighQueueDescription:

This property returns the average number of records per hour dialed by the switch, from the high priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageDialRateForHighQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageDialRateForHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageDialRateForHighQueue = pFeedApplicationQueueDataPtr->AverageDialRateForHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageDialRateForHighQueue: %d\n",iMonitorId,siServiceId,iAverageDialRateForHighQueue);

}

Confidential OSMS API Reference Guide

Page 424: 700136a Epro61 Osms API Ref Guide

5–276 | Data Interfaces Aspect Software

AverageFeedRateForNormalQueueDescription:

This property returns the average number of records pushed from the application to the CenterCord, from the normal priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageFeedRateForNormalQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageFeedRateForNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageFeedRateForNormalQueue = pFeedApplicationQueueDataPtr->AverageFeedRateForNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageFeedRateForNormalQueue: %d\n",iMonitorId,siServiceId,iAverageFeedRateForNormalQueue);

}

OSMS API Reference Guide Confidential

Page 425: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–277

AverageFeedRateForMediumQueueDescription:

This property returns the average number of records pushed from the application to the CenterCord, from the medium priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageFeedRateForMediumQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageFeedRateForMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageFeedRateForMediumQueue = pFeedApplicationQueueDataPtr->AverageFeedRateForMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageFeedRateForMediumQueue: %d\n",iMonitorId,siServiceId,iAverageFeedRateForMediumQueue);

}

Confidential OSMS API Reference Guide

Page 426: 700136a Epro61 Osms API Ref Guide

5–278 | Data Interfaces Aspect Software

AverageFeedRateForHighQueueDescription:

This property returns the average number of records pushed from the application to the CenterCord, from the high priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageFeedRateForHighQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageFeedRateForHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageFeedRateForHighQueue = pFeedApplicationQueueDataPtr->AverageFeedRateForHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageFeedRateForHighQueue: %d\n",iMonitorId,siServiceId,iAverageFeedRateForHighQueue);

}

OSMS API Reference Guide Confidential

Page 427: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–279

AverageRequestRateForNormalQueueDescription:

This property returns the average number of requests for records by the CenterCord, from the normal priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageRequestRateForNormalQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageRequestRateForNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageRequestRateForNormalQueue = pFeedApplicationQueueDataPtr->AverageRequestRateForNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageRequestRateForNormalQueue: %d\n",iMonitorId,siServiceId,iAverageRequestRateForNormalQueue);

}

Confidential OSMS API Reference Guide

Page 428: 700136a Epro61 Osms API Ref Guide

5–280 | Data Interfaces Aspect Software

AverageRequestRateForMediumQueueDescription:

This property returns the average number of requests for records by the CenterCord, from the medium priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageRequestRateForMediumQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageRequestRateForMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageRequestRateForMediumQueue = pFeedApplicationQueueDataPtr->AverageRequestRateForMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageRequestRateForMediumQueue: %d\n",iMonitorId,siServiceId,iAverageRequestRateForMediumQueue);

}

OSMS API Reference Guide Confidential

Page 429: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–281

AverageRequestRateForHighQueueDescription:

This property returns the average number of requests for records by the CenterCord, from the high priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.AverageRequestRateForHighQueue

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.AverageRequestRateForHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iAverageRequestRateForHighQueue = pFeedApplicationQueueDataPtr->AverageRequestRateForHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t AverageRequestRateForHighQueue: %d\n",iMonitorId,siServiceId,iAverageRequestRateForHighQueue);

}

Confidential OSMS API Reference Guide

Page 430: 700136a Epro61 Osms API Ref Guide

5–282 | Data Interfaces Aspect Software

GetFeedApplicationQueueDataDescription:

This method returns a raw pointer to the data stored in the FeedApplicationQueueData component.

Syntax:

FeedApplicationQueueData->GetFeedApplicationQueueData((long)&pFeedApplicationQueueStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch*pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

DFeedApplicationQueueStatistics* pFeedApplicationQueueStats;pFeedApplicationQueueDataPtr->GetFeedApplicationQueueData((long)

&pFeedApplicationQueueStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pFeedApplicationQueueStats->siServiceId);

}

NumberDeletedInNormalQueueDescription:

This property returns the number of delete requests, from the normal queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberDeletedInNormalQueue

Parameter Description

Long A casted pointer to a DFeedApplicationQueueStatistics structure.

OSMS API Reference Guide Confidential

Page 431: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–283

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberDeletedInNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberDeletedInNormalQueue = pFeedApplicationQueueDataPtr->NumberDeletedInNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberDeletedInNormalQueue: %d\n",iMonitorId,siServiceId,iNumberDeletedInNormalQueue);

}

NumberDeletedInMediumQueueDescription:

This property returns the number of delete requests, from the medium queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberDeletedInMediumQueue

Confidential OSMS API Reference Guide

Page 432: 700136a Epro61 Osms API Ref Guide

5–284 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberDeletedInMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberDeletedInMediumQueue = pFeedApplicationQueueDataPtr->NumberDeletedInMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberDeletedInMediumQueue: %d\n",iMonitorId,siServiceId,iNumberDeletedInMediumQueue);

}

NumberDeletedInHighQueueDescription:

This property returns the number of delete requests, from the high queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberDeletedInHighQueue

OSMS API Reference Guide Confidential

Page 433: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–285

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberDeletedInHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberDeletedInHighQueue = pFeedApplicationQueueDataPtr->NumberDeletedInHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberDeletedInHighQueue: %d\n",iMonitorId,siServiceId,iNumberDeletedInHighQueue);

}

NumberDialedFromNormalQueueDescription:

This property returns the number of records dialed by the switch for the period from midnight or startup to current, from the normal priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberDialedFromNormalQueue

Confidential OSMS API Reference Guide

Page 434: 700136a Epro61 Osms API Ref Guide

5–286 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberDialedFromNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberDialedFromNormalQueue = pFeedApplicationQueueDataPtr->NumberDialedFromNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberDialedFromNormalQueue: %d\n",iMonitorId,siServiceId,iNumberDialedFromNormalQueue);

}

NumberDialedFromMediumQueueDescription:

This property returns the number of records dialed by the switch for the period from midnight or startup to current, from the medium priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberDialedFromMediumQueue

OSMS API Reference Guide Confidential

Page 435: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–287

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberDialedFromMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberDialedFromMediumQueue = pFeedApplicationQueueDataPtr->NumberDialedFromMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberDialedFromMediumQueue: %d\n",iMonitorId,siServiceId,iNumberDialedFromMediumQueue);

}

NumberDialedFromHighQueueDescription:

This property returns the number of records dialed by the switch for the period from midnight or startup to current, from the high priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberDialedFromHighQueue

Confidential OSMS API Reference Guide

Page 436: 700136a Epro61 Osms API Ref Guide

5–288 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberDialedFromHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberDialedFromHighQueue = pFeedApplicationQueueDataPtr->NumberDialedFromHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberDialedFromHighQueue: %d\n",iMonitorId,siServiceId,iNumberDialedFromHighQueue);

}

NumberOfRecordsInNormalQueueDescription:

This property returns the number of records currently in queue, from the normal priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberOfRecordsInNormalQueue

OSMS API Reference Guide Confidential

Page 437: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–289

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberOfRecordsInNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberOfRecordsInNormalQueue = pFeedApplicationQueueDataPtr->NumberOfRecordsInNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberOfRecordsInNormalQueue: %d\n",iMonitorId,siServiceId,iNumberOfRecordsInNormalQueue);

}

NumberOfRecordsInMediumQueueDescription:

This property returns the number of records currently in queue, from the medium priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberOfRecordsInMediumQueue

Confidential OSMS API Reference Guide

Page 438: 700136a Epro61 Osms API Ref Guide

5–290 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberOfRecordsInMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberOfRecordsInMediumQueue = pFeedApplicationQueueDataPtr->NumberOfRecordsInMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberOfRecordsInMediumQueue: %d\n",iMonitorId,siServiceId,iNumberOfRecordsInMediumQueue);

}

NumberOfRecordsInHighQueueDescription:

This property returns the number of records currently in queue, from the high priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberOfRecordsInHighQueue

OSMS API Reference Guide Confidential

Page 439: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–291

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberOfRecordsInHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberOfRecordsInHighQueue = pFeedApplicationQueueDataPtr->NumberOfRecordsInHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberOfRecordsInHighQueue: %d\n",iMonitorId,siServiceId,iNumberOfRecordsInHighQueue);

}

NumberPrioritizedInNormalQueueDescription:

This property returns the number of prioritization requests, from the normal priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberPrioritizedInNormalQueue

Confidential OSMS API Reference Guide

Page 440: 700136a Epro61 Osms API Ref Guide

5–292 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberPrioritizedInNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberPrioritizedInNormalQueue = pFeedApplicationQueueDataPtr->NumberPrioritizedInNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberPrioritizedInNormalQueue: %d\n",iMonitorId,siServiceId,iNumberPrioritizedInNormalQueue);

}

NumberPrioritizedInMediumQueueDescription:

This property returns the number of prioritization requests, from the medium priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberPrioritizedInMediumQueue

OSMS API Reference Guide Confidential

Page 441: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–293

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberPrioritizedInMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberPrioritizedInMediumQueue = pFeedApplicationQueueDataPtr->NumberPrioritizedInMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberPrioritizedInMediumQueue: %d\n",iMonitorId,siServiceId,iNumberPrioritizedInMediumQueue);

}

NumberPrioritizedInHighQueueDescription:

This property returns the number of prioritization requests, from the high priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberPrioritizedInHighQueue

Confidential OSMS API Reference Guide

Page 442: 700136a Epro61 Osms API Ref Guide

5–294 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberPrioritizedInHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberPrioritizedInHighQueue = pFeedApplicationQueueDataPtr->NumberPrioritizedInHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberPrioritizedInHighQueue: %d\n",iMonitorId,siServiceId,iNumberPrioritizedInHighQueue);

}

NumberProvidedInNormalQueueDescription:

This property returns the number of records fed to the CenterCord, from the normal priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberProvidedInNormalQueue

OSMS API Reference Guide Confidential

Page 443: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–295

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberProvidedInNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberProvidedInNormalQueue = pFeedApplicationQueueDataPtr->NumberProvidedInNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberProvidedInNormalQueue: %d\n",iMonitorId,siServiceId,iNumberProvidedInNormalQueue);

}

NumberProvidedInMediumQueueDescription:

This property returns the number of records fed to the CenterCord, from the medium priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberProvidedInMediumQueue

Confidential OSMS API Reference Guide

Page 444: 700136a Epro61 Osms API Ref Guide

5–296 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberProvidedInMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberProvidedInMediumQueue = pFeedApplicationQueueDataPtr->NumberProvidedInMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberProvidedInMediumQueue: %d\n",iMonitorId,siServiceId,iNumberProvidedInMediumQueue);

}

NumberProvidedInHighQueueDescription:

This property returns the number of records fed to the CenterCord, from the high priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberProvidedInHighQueue

OSMS API Reference Guide Confidential

Page 445: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–297

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberProvidedInHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberProvidedInHighQueue = pFeedApplicationQueueDataPtr->NumberProvidedInHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberProvidedInHighQueue: %d\n",iMonitorId,siServiceId,iNumberProvidedInHighQueue);

}

NumberRequestedInNormalQueueDescription:

This property returns the total number of requests for records by the CenterCord, from the normal priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberRequestedInNormalQueue

Confidential OSMS API Reference Guide

Page 446: 700136a Epro61 Osms API Ref Guide

5–298 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberRequestedInNormalQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberRequestedInNormalQueue = pFeedApplicationQueueDataPtr->NumberRequestedInNormalQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberRequestedInNormalQueue: %d\n",iMonitorId,siServiceId,iNumberRequestedInNormalQueue);

}

NumberRequestedInMediumQueueDescription:

This property returns the total number of requests for records by the CenterCord, from the medium priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberRequestedInMediumQueue

OSMS API Reference Guide Confidential

Page 447: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–299

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberRequestedInMediumQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberRequestedInMediumQueue = pFeedApplicationQueueDataPtr->NumberRequestedInMediumQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberRequestedInMediumQueue: %d\n",iMonitorId,siServiceId,iNumberRequestedInMediumQueue);

}

NumberRequestedInHighQueueDescription:

This property returns the total number of requests for records by the CenterCord, from the high priority queue, for the Feed Application specified by the acquired FeedApplicationQueueData object.

Syntax:

LongValue = FeedApplicationQueueData.NumberRequestedInHighQueue

Confidential OSMS API Reference Guide

Page 448: 700136a Epro61 Osms API Ref Guide

5–300 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival(ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As

CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.NumberRequestedInHighQueue)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr =

pFeedApplicationQueueData;

int iNumberRequestedInHighQueue = pFeedApplicationQueueDataPtr->NumberRequestedInHighQueue;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t NumberRequestedInHighQueue: %d\n",iMonitorId,siServiceId,iNumberRequestedInHighQueue);

}

ServiceDescription:

This property returns the name of the service for the service specified by the acquired FeedApplicationQueueData object.

Syntax:

StringValue = FeedApplicationQueueData.Service

OSMS API Reference Guide Confidential

Page 449: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–301

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival (ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = FeedApplicationQueueDataObject.Service

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr = pFeedApplicationQueueData;

char szService[81];ConvertBSTRToSTR(pFeedApplicationQueueDataPtr->Service,szService);short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Service: %s\n",iMonitorId,siServiceId,szService);

}

Confidential OSMS API Reference Guide

Page 450: 700136a Epro61 Osms API Ref Guide

5–302 | Data Interfaces Aspect Software

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired FeedApplicationQueueData object.

Syntax:

IntegerValue = FeedApplicationQueueData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival (ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.ServiceId)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr = pFeedApplicationQueueData;

short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

ServiceTypeDescription:

This property returns the name of the service type for the service specified by the acquired FeedApplicationQueueData object.

OSMS API Reference Guide Confidential

Page 451: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–303

Syntax:

StringValue = FeedApplicationQueueData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival (ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = FeedApplicationQueueDataObject.ServiceType

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr = pFeedApplicationQueueData;

char szServiceType[81];ConvertBSTRToSTR(pFeedApplicationQueueDataPtr->ServiceType,

szServiceType);short siServiceId = pFeedApplicationQueueDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceType: %s\n",iMonitorId,siServiceId,szServiceType);

}

Confidential OSMS API Reference Guide

Page 452: 700136a Epro61 Osms API Ref Guide

5–304 | Data Interfaces Aspect Software

ServiceTypeIdDescription:

This property returns the service type ID for the service specified by the acquired FeedApplicationQueueData object.

Syntax:

IntegerValue = FeedApplicationQueueData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_FeedApplicationQueueDataArrival (ByVal FeedApplicationQueueData As Object, ByVal MonitorId As Long)Dim FeedApplicationQueueDataObject As CCPROOSMSCLIENTLib.FeedApplicationQueueDataSet FeedApplicationQueueDataObject = FeedApplicationQueueData

MSF.Text = Str(FeedApplicationQueueDataObject.ServiceTypeId)

Set FeedApplicationQueueDataObject = NothingEnd Sub

C++ Sample:

void FeedApplicationQueueDataArrival(IDispatch* pFeedApplicationQueueData, int iMonitorId){IFeedApplicationQueueDataPtr pFeedApplicationQueueDataPtr = pFeedApplicationQueueData;

short siServiceTypeId = pFeedApplicationQueueDataPtr->ServiceTypeId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTypeId %d\n",iMonitorId,siServiceId,siServiceTypeId);

}

IvrData

OSMS API Reference Guide Confidential

Page 453: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–305

The IvrData class has the following properties:

• Application

• ApplicationId

• AvgTimeBeforeAbandon

• AvgTimeInService

• CurContactsMsgPlayed

• CurContactsOffered

• CurNumNoAttnRetainer

• LongestTimeInService

• NumCallsAbandoned

• NumCallsAcdRoute

• NumCallsAgdXfer

• NumCallsAgentXfer

• NumCallsChatXfer

• NumCallsEmailXfer

• NumCallsExternalXfer

• NumCallsTerminated

• NumVoiceMailXfer

• Service

• ServiceId

• ServiceType

• ServiceTypeId

• StartTimeMilitary

• Status

• StatusId

• StopTimeMilitary

• TotalContactsMsgPlayed

• TotalContactsOffered

• TotalNumNoAttnRetainer

Confidential OSMS API Reference Guide

Page 454: 700136a Epro61 Osms API Ref Guide

5–306 | Data Interfaces Aspect Software

NotificationData

The properties of the NotificationData class are described in the following subsections.

AgentIndexDescription:

This property returns the EnsemblePro internal index number of the agent for the agent specified by the acquired NotificationData object.

Syntax:

LongValue = NotificationData.AgentIndex

Property Type:

VB: longC++: integer

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib.NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.AgentIndex)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void AgentNotificationDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

int iAgentIndex = pNotificationDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \n",iMonitorId,iAgentIndex);}

OSMS API Reference Guide Confidential

Page 455: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–307

ApplicationDescription:

This property returns the current application to which the service specified by the acquired NotificationData object belongs.

Syntax:

StringValue = NotificationData.Application

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib.NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = NotificationDataObject.Application

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

char szApplication[81];ConvertBSTRToSTR(pNotificationDataPtr->Application,szApplication);int siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Application: %s\n",

Confidential OSMS API Reference Guide

Page 456: 700136a Epro61 Osms API Ref Guide

5–308 | Data Interfaces Aspect Software

iMonitorId,siServiceId,szApplication);}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.ApplicationId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.ApplicationId)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void AgentNotificationDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siApplicationId = pNotificationDataPtr->ApplicationId;short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siApplicationId);

}

OSMS API Reference Guide Confidential

Page 457: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–309

DistributionListIdDescription:

This property returns the distribution list ID for the distribution list specified by the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.DistributionListId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.DistributionListId)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siDistributionListId = pNotificationDataPtr->DistributionListId;

printf("MonitorId: %d \t DistributionListId: %d \n",iMonitorId,siDistributionListId);

}

FirstNameDescription:

This property returns the first name of the agent specified by the acquired NotificationData object.

Confidential OSMS API Reference Guide

Page 458: 700136a Epro61 Osms API Ref Guide

5–310 | Data Interfaces Aspect Software

Syntax:

StringValue = NotificationData.FirstName

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = NotificationDataObject.FirstName

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

char szFirstName[81];ConvertBSTRToSTR(pAgentDataPtr->FirstName,szFirstName);int iAgentIndex = pNotificationDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t FirstName: %s\n",iMonitorId,iAgentIndex,szFirstName);

}

OSMS API Reference Guide Confidential

Page 459: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–311

GetNotificationDataDescription:

This method returns a raw pointer to the data stored in the NotificationData component.

Syntax:

NotificationData->GetNotificationData((long) &pNotificationStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

DDynamicNotification* pNotificationStats;pNotificationDataPtr->GetNotificationData((long)&pNotificationStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pNotificationStats->siServiceId);

}

LastNameDescription:

This property returns the last name of the agent specified by the acquired NotificationData object.

Syntax:

StringValue = NotificationData.LastName

Property Type:

VB: stringC++: BSTR

Parameter Description

Long A casted pointer to a DDynamicNotification structure.

Confidential OSMS API Reference Guide

Page 460: 700136a Epro61 Osms API Ref Guide

5–312 | Data Interfaces Aspect Software

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = NotificationDataObject.LastName

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentNotificationDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

char szLastName[81];ConvertBSTRToSTR(pNotificationDataPtr->LastName,szLastName);int iAgentIndex = pNotificationDataPtr->AgentIndex;

printf("MonitorId: %d \t AgentIndex: %d \t LastName: %s\n",iMonitorId,iAgentIndex,szLastName);

}

MailQueueIdDescription:

This property returns the mail queue ID for the service specified by the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.MailQueueId

OSMS API Reference Guide Confidential

Page 461: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–313

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.MailQueueId)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siMailQueueId = pNotificationDataPtr->MailQueueId;

printf("MonitorId: %d \t MailQueueId: %d \n",iMonitorId,siMailQueueId);

}

MailQueueIndexDescription:

This property returns the mail queue index for the service specified by the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.MailQueueIndex

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)

Confidential OSMS API Reference Guide

Page 462: 700136a Epro61 Osms API Ref Guide

5–314 | Data Interfaces Aspect Software

Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.MailQueueIndex)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siMailQueueIndex = pNotificationDataPtr->MailQueueIndex;

printf("MonitorId: %d \t MailQueueIndex: %d \n",iMonitorId,siMailQueueIndex);

}

ServiceCountDescription:

This property returns the service count for the service specified by the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.ServiceCount

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.ServiceCount)

Set NotificationDataObject = NothingEnd Sub

OSMS API Reference Guide Confidential

Page 463: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–315

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siServiceId = pNotificationDataPtr->ServiceId;short siServiceCount = pNotificationDataPtr->ServiceCount;

printf("MonitorId: %d \t ServiceId: %d \t ServiceCount \n",iMonitorId,siServiceId,siServiceCount);

}

ServiceIdDescription:

This property returns the service ID for the service specified by the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.ServiceId)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siServiceId = pNotificationDataPtr->ServiceId;

Confidential OSMS API Reference Guide

Page 464: 700136a Epro61 Osms API Ref Guide

5–316 | Data Interfaces Aspect Software

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId,siServiceId);}

ServiceLongDescription:

This property returns the long service description for the service specified by the acquired NotificationData object.

Syntax:

StringValue = NotificationData.ServiceLong

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = NotificationDataObject.ServiceLong

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentNotificationDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

char szServiceLong[81];

OSMS API Reference Guide Confidential

Page 465: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–317

ConvertBSTRToSTR(pNotificationDataPtr->ServiceLong,szServiceLong);short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceLong: %s\n",iMonitorId,siServiceId,szServiceLong);

}

ServiceShortDescription:

This property returns the short service description for the service specified by the acquired NotificationData object.

Syntax:

StringValue = NotificationData.ServiceShort

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = NotificationDataObject.ServiceShort

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentNotificationDataArrival(IDispatch* pNotificationData, int iMonitorId)

Confidential OSMS API Reference Guide

Page 466: 700136a Epro61 Osms API Ref Guide

5–318 | Data Interfaces Aspect Software

{INotificationDataPtr pNotificationDataPtr = pNotificationData;

char szServiceShort[81];ConvertBSTRToSTR(pNotificationDataPtr->ServiceShort,szServiceShort);short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceShort: %s\n",iMonitorId,siServiceId,szServiceShort);

}

StatusDescription:

This property returns the status of the notification for the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.Status

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.Status)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siStatus = pNotificationDataPtr->Status;short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status %d\n",iMonitorId,siServiceId,siStatus);

}

OSMS API Reference Guide Confidential

Page 467: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–319

TimeDescription:

This property returns the time of the notification for the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.Time

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.Time)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siTime = pNotificationDataPtr->Time;short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Time %d\n",iMonitorId,siServiceId,siTime);

}

TypeDescription:

This property returns the type of the notification for the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.Type

Confidential OSMS API Reference Guide

Page 468: 700136a Epro61 Osms API Ref Guide

5–320 | Data Interfaces Aspect Software

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.Type)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siType = pNotificationDataPtr->Type;short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Type %d\n",iMonitorId,siServiceId,siType);

}

UserIdDescription:

This property returns the user ID for the agent specified by the acquired NotificationData object.

Syntax:

StringValue = NotificationData.UserId

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)

OSMS API Reference Guide Confidential

Page 469: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–321

Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = NotificationDataObject.UserId

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentNotificationDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

char szUserId[81];ConvertBSTRToSTR(pNotificationDataPtr->UserId,szUserId);short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t UserId: %s\n",iMonitorId,siServiceId,szUserId);

}

WorkGroupDescription:

This property returns the workgroup description for the agent specified by the acquired NotificationData object.

Syntax:

StringValue = NotificationData.WorkGroup

Property Type:

VB: stringC++: BSTR

Confidential OSMS API Reference Guide

Page 470: 700136a Epro61 Osms API Ref Guide

5–322 | Data Interfaces Aspect Software

VB Sample:

Private Sub AgentMonitor_AgentNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = NotificationDataObject.WorkGroup

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void AgentNotificationDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

char szWorkGroup[81];ConvertBSTRToSTR(pNotificationDataPtr->WorkGroup,szWorkGroup);short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t WorkGroup: %s\n",iMonitorId,siServiceId,szWorkGroup);

}

WorkGroupIdDescription:

This property returns the workgroup ID for the agent specified by the acquired NotificationData object.

Syntax:

IntegerValue = NotificationData.WorkGroupId

OSMS API Reference Guide Confidential

Page 471: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–323

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_ServiceNotifyDataArrival(ByVal NotificationData As Object, ByVal MonitorId As Long)Dim NotificationDataObject As CCPROOSMSCLIENTLib. NotificationDataSet NotificationDataObject = NotificationData

MSF.Text = Str(NotificationDataObject.WorkGroupId)

Set NotificationDataObject = NothingEnd Sub

C++ Sample:

void ServiceNotifyDataArrival(IDispatch* pNotificationData, int iMonitorId){INotificationDataPtr pNotificationDataPtr = pNotificationData;

short siWorkGroupId = pNotificationDataPtr->WorkGroupId;short siServiceId = pNotificationDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t WorkGroup %d\n",iMonitorId,siServiceId,siWorkGroupId);

}

TableData

The properties of the TableData class are described in the following subsections.

AbandonedDescription:

This property returns the amount of calls abandoned for the AOD table specified by the acquired TableData object.

Syntax:

LongValue = TableData.Abandoned

Confidential OSMS API Reference Guide

Page 472: 700136a Epro61 Osms API Ref Guide

5–324 | Data Interfaces Aspect Software

Property Type:

VB: longC++: integer

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.Abandoned)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iAbandoned = pTableDataPtr->Abandoned;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t Abandoned %d \n",iMonitorId,siServiceId,siServiceTableId,iAbandoned);

}

ApplicationDescription:

This property returns the current application to which the service specified by the acquired TableData object belongs.

Syntax:

StringValue = TableData.Application

Property Type:

VB: stringC++: BSTR

OSMS API Reference Guide Confidential

Page 473: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–325

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = TableDataObject.Application

Set TableDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

char szApplication[81];ConvertBSTRToSTR(pTableDataPtr->Application,szApplication);int siServiceId = pTableDataPtr->ServiceId;int siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId %d \t Application: %s\n",iMonitorId,siServiceId,siServiceTableId,szApplication);

}

ApplicationIdDescription:

This property returns the current application ID of the service specified by the acquired TableData object.

Syntax:

IntegerValue = TableData.ApplicationId

Confidential OSMS API Reference Guide

Page 474: 700136a Epro61 Osms API Ref Guide

5–326 | Data Interfaces Aspect Software

Property Type:

VB: integerC++: short

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.ApplicationId)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siApplicationId = pTableDataPtr->ApplicationId;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t ApplicationId: %d\n",iMonitorId,siServiceId,siServiceTableId,siApplicationId);

}

BadPhoneNumberCountDescription:

This property returns the amount of bad phone numbers for the AOD table specified by the acquired TableData object.

Syntax:

LongValue = TableData.BadPhoneNumberCount

Property Type:

VB: longC++: integer

OSMS API Reference Guide Confidential

Page 475: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–327

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.BadPhoneNumberCount)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iBadPhoneNumberCount = pTableDataPtr->BadPhoneNumberCount;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t BadPhoneNumberCount %d \n",iMonitorId,siServiceId,siServiceTableId,iBadPhoneNumberCount);

}

DialedDescription:

This property returns the amount of calls made for the AOD table specified by the acquired TableData object.

Syntax:

LongValue = TableData.Dialed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

Confidential OSMS API Reference Guide

Page 476: 700136a Epro61 Osms API Ref Guide

5–328 | Data Interfaces Aspect Software

MSF.Text = Str(TableDataObject.Dialed)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iDialed = pTableDataPtr->Dialed;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t Dialed %d \n",iMonitorId,siServiceId,siServiceTableId,iDialed);

}

EndTimeMilitaryDescription:

This property returns the time, in military, the table was stopped for the table specified by the acquired TableData object.

Syntax:

IntegerValue = TableData.EndTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.EndTimeMilitary)

Set TableDataObject = NothingEnd Sub

OSMS API Reference Guide Confidential

Page 477: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–329

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siEndTimeMilitary = pTableDataPtr->EndTimeMilitary;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t EndTimeMilitary: %d\n",iMonitorId,siServiceId,siServiceTableId,siEndTimeMilitary);

}

ExcludedCountDescription:

This property returns the no of records excluded from the table.

Syntax:

IntegerValue = TableData.ExcludedCount

FilterDescription:

This property returns the current filter description for the table specified by the acquired TableData object.

Syntax:

StringValue = TableData.Filter

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

Confidential OSMS API Reference Guide

Page 478: 700136a Epro61 Osms API Ref Guide

5–330 | Data Interfaces Aspect Software

MSF.Text = TableDataObject.Filter

Set TableDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

char szFiler[81];ConvertBSTRToSTR(pTableDataPtr->Filer,szFiler);int siServiceId = pTableDataPtr->ServiceId;int siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId %d \t Filer: %s\n",iMonitorId,siServiceId,siServiceTableId,szFiler);

}

FilterIdDescription:

This property returns the current filter ID for the table specified by the acquired TableData object.

Syntax:

IntegerValue = TableData.FilterId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object,

OSMS API Reference Guide Confidential

Page 479: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–331

ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.FilterId)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siFilterId = pTableDataPtr->FilterId;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t FilterId: %d\n",iMonitorId,siServiceId,siServiceTableId,siFilterId);

}

GetTableDataDescription:

This method returns a raw pointer to the data stored in the NotificationData component.

Syntax:

TableData->GetTableData((long) &pTableStatisticalStructure)

Parameters:

VB Sample:

None

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

Parameter Description

Long A casted pointer to a DAodTableStatistics structure.

Confidential OSMS API Reference Guide

Page 480: 700136a Epro61 Osms API Ref Guide

5–332 | Data Interfaces Aspect Software

DAodTableStatistics* pTableStats;pTableDataPtr->GetTableData((long)&pTableStats);

printf("MonitorId: %d \t ServiceId: %d \n",iMonitorId, pTableStats->siServiceId);

}

InProgressDescription:

This property returns the number of calls being dialed by the acquired TableData object.

Syntax:

IntegerValue = TableData.InProgress

Property Type:

VB: integerC++: short

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.InProgress)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siInProgress = pTableDataPtr->InProgress;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t InProgress: %d\n",iMonitorId,siServiceId,siServiceTableId,siInProgress);

}

OSMS API Reference Guide Confidential

Page 481: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–333

LeftToBeDialedDescription:

This property returns the amount of calls left to be dialed for the AOD table specified by the acquired TableData object.

Syntax:

LongValue = TableData.LeftToBeDialed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.LeftToBeDialed)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iLeftToBeDialed = pTableDataPtr->LeftToBeDialed;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t LeftToBeDialed %d \n",iMonitorId,siServiceId,siServiceTableId,iLeftToBeDialed);

}

RecordsProcessedDescription:

This property returns the amount of records processed for the AOD table specified by the acquired TableData object.

Confidential OSMS API Reference Guide

Page 482: 700136a Epro61 Osms API Ref Guide

5–334 | Data Interfaces Aspect Software

Syntax:

LongValue = TableData.RecordsProcessed

Property Type:

VB: longC++: integer

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.RecordsProcessed)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iRecordsProcessed = pTableDataPtr->RecordsProcessed;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t RecordsProcessed %d \n",iMonitorId,siServiceId,iServiceTableId,iRecordsProcessed);

}

RGBusyQueueCountDescription:

This property returns the RGBusyQueueCount for the AOD table specified by the acquired TableData object.

Syntax:

LongValue = TableData.RGBusyQueueCount

OSMS API Reference Guide Confidential

Page 483: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–335

Property Type:

VB: longC++: integer

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.RGBusyQueueCount)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iRGBusyQueueCount = pTableDataPtr->RGBusyQueueCount;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t RGBusyQueueCount %d \n",iMonitorId,siServiceId,siServiceTableId,iRGBusyQueueCount);

}

ScheduledCallbacksDescription:

This property returns the amount of calls to be redialed for the AOD table specified by the acquired TableData object.

Syntax:

LongValue = TableData.ScheduledCallbacks

Property Type:

VB: longC++: integer

Confidential OSMS API Reference Guide

Page 484: 700136a Epro61 Osms API Ref Guide

5–336 | Data Interfaces Aspect Software

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.ScheduledCallbacks)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iScheduledCallbacks = pTableDataPtr->ScheduledCallbacks;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t ScheduledCallbacks %d \n",iMonitorId,siServiceId,siServiceTableId,iScheduledCallbacks);

}

SelectedDescription:

This property returns the amount of calls selected for the AOD table specified by the acquired TableData object.

Syntax:

LongValue = TableData.Selected

Property Type:

VB: longC++: integer

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

OSMS API Reference Guide Confidential

Page 485: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–337

MSF.Text = Str(TableDataObject.Selected)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iSelected = pTableDataPtr->Selected;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t Selected %d \n",iMonitorId,siServiceId,siServiceTableId,iSelected);

}

ServiceDescription:

This property returns the service description for the table specified by the acquired TableData object.

Syntax:

StringValue = TableData.Service

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = TableDataObject.Service

Set TableDataObject = NothingEnd Sub

Confidential OSMS API Reference Guide

Page 486: 700136a Epro61 Osms API Ref Guide

5–338 | Data Interfaces Aspect Software

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

char szService[81];ConvertBSTRToSTR(pTableDataPtr->Service,szService);int siServiceId = pTableDataPtr->ServiceId;int siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId %d \t Service: %s\n",iMonitorId,siServiceId,siServiceTableId,szService);

}

ServiceIdDescription:

This property returns the service ID for the table specified by the acquired TableData object.

Syntax:

IntegerValue = TableData.ServiceId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.ServiceId)

OSMS API Reference Guide Confidential

Page 487: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–339

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \n",iMonitorId,siServiceId,siServiceTableId);

}

ServiceTableIdDescription:

This property returns the service table ID for the table specified by the acquired TableData object.

Syntax:

IntegerValue = TableData.ServiceTableId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.ServiceTableId)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siServiceId = pTableDataPtr->ServiceId;

Confidential OSMS API Reference Guide

Page 488: 700136a Epro61 Osms API Ref Guide

5–340 | Data Interfaces Aspect Software

short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \n",iMonitorId,siServiceId,siServiceTableId);

}

ServiceTypeDescription:

This property returns the service type description for the table specified by the acquired TableData object.

Syntax:

StringValue = TableData.ServiceType

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = TableDataObject.ServiceType

Set TableDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

OSMS API Reference Guide Confidential

Page 489: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–341

char szServiceType[81];ConvertBSTRToSTR(pTableDataPtr->ServiceType,szServiceType);int siServiceId = pTableDataPtr->ServiceId;int siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId %d \t ServiceType: %s\n",iMonitorId,siServiceId,siServiceTableId,szServiceType);

}

ServiceTypeIdDescription:

This property returns the service type ID for the table specified by the acquired TableData object.

Syntax:

IntegerValue = TableData.ServiceTypeId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.ServiceTypeId)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siServiceTypeId = pTableDataPtr->ServiceTypeId;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t ServiceTypeId: %d\n",iMonitorId,siServiceId,siServiceTableId,siServiceTypeId);

}

Confidential OSMS API Reference Guide

Page 490: 700136a Epro61 Osms API Ref Guide

5–342 | Data Interfaces Aspect Software

StartTimeMilitaryDescription:

This property returns the time, in military, when the table was started for the table specified by the acquired TableData object.

Syntax:

IntegerValue = TableData.StartTimeMilitary

Property Type:

VB: integerC++: short

VB Sample:

Private Sub ServiceMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.StartTimeMilitary)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siStartTimeMilitary = pTableDataPtr->StartTimeMilitary;

printf("MonitorId: %d \t ServiceId: %d \t StartTimeMilitary %d\n",iMonitorId,siServiceId,siStartTimeMilitary);

}

StatusDescription:

This property returns the name of the current status for the table specified by the acquired TableData object.

Syntax:

StringValue = TableData.Status

OSMS API Reference Guide Confidential

Page 491: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–343

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = TableDataObject.Status

Set TableDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

char szStatus[81];ConvertBSTRToSTR(pTableDataPtr->Status,szStatus);short siServiceId = pTableDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t Status: %s\n",iMonitorId,siServiceId,szStatus);

}

StatusIdDescription:

This property returns the name of the current status for the table specified by the acquired TableData object.

Confidential OSMS API Reference Guide

Page 492: 700136a Epro61 Osms API Ref Guide

5–344 | Data Interfaces Aspect Software

Syntax:

StringValue = TableData.StatusId

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub ServiceMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = TableDataObject.StatusId

Set TableDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

char szStatusId[81];ConvertBSTRToSTR(pTableDataPtr->StatusId,szStatusId);short siServiceId = pTableDataPtr->ServiceId;

printf("MonitorId: %d \t ServiceId: %d \t StatusId: %s\n",iMonitorId,siServiceId,szStatusId);

}

OSMS API Reference Guide Confidential

Page 493: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–345

TableIdDescription:

This property returns the table ID for the table specified by the acquired TableData object.

Syntax:

IntegerValue = TableData.TableId

Property Type:

VB: integerC++: short

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.TableId)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

short siTableId = pTableDataPtr->TableId;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t TableId: %d\n",iMonitorId,siServiceId,siServiceTableId,siTableId);

}

TableNameDescription:

This property returns the table name for the table specified by the acquired TableData object.

Confidential OSMS API Reference Guide

Page 494: 700136a Epro61 Osms API Ref Guide

5–346 | Data Interfaces Aspect Software

Syntax:

StringValue = TableData.TableName

Property Type:

VB: stringC++: BSTR

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib. TableDataSet TableDataObject = TableData

MSF.Text = TableDataObject.TableName

Set TableDataObject = NothingEnd Sub

C++ Sample:

void ConvertBSTRToSTR(BSTR bstrString, char* pszString){int iCnt;int iLength = SysStringLen(bstrString);

for (iCnt=0; iCnt < iLength; iCnt++)pszString[iCnt] = (char) bstrString[iCnt];

pszString[iCnt] = 0;}

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

char szTableName[81];ConvertBSTRToSTR(pTableDataPtr->TableName,szTableName);int siServiceId = pTableDataPtr->ServiceId;int siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId %d \t TableName: %s\n",iMonitorId,siServiceId,siServiceTableId,szTableName);

}

OSMS API Reference Guide Confidential

Page 495: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–347

TimeZoneFailureCountDescription:

This property returns the TimeZoneFailureCount for the AOD table specified by the acquired TableData object.

Syntax:

LongValue = TableData.TimeZoneFailureCount

Property Type:

VB: longC++: integer

VB Sample:

Private Sub TableMonitor_TableDataArrival(ByVal TableData As Object, ByVal MonitorId As Long)Dim TableDataObject As CCPROOSMSCLIENTLib.TableDataSet TableDataObject = TableData

MSF.Text = Str(TableDataObject.TimeZoneFailureCount)

Set TableDataObject = NothingEnd Sub

C++ Sample:

void TableDataArrival(IDispatch* pTableData, int iMonitorId){ITableDataPtr pTableDataPtr = pTableData;

int iTimeZoneFailureCount = pTableDataPtr->TimeZoneFailureCount;short siServiceId = pTableDataPtr->ServiceId;short siServiceTableId = pTableDataPtr->ServiceTableId;

printf("MonitorId: %d \t ServiceId: %d \t ServiceTableId: %d \t TimeZoneFailureCount %d \n",iMonitorId,siServiceId,siServiceTableId,iTimeZoneFailureCount);

}

TouchedDescription:

This property returns the no of records in queue.

Confidential OSMS API Reference Guide

Page 496: 700136a Epro61 Osms API Ref Guide

5–348 | Data Interfaces Aspect Software

Syntax:

IntegerValue = TableData.Touched

WorkgroupData

The WorkgroupData class has the following properties:

• AcdCalls

• ActiveSeconds

• AgdCalls

• AodCalls

• ChatCalls

• ConferenceCalls

• ConsultationCalls

• CTICalls

• DidCalls

• EMailCalls

• HeldCalls

• HeldSeconds

• IdleSeconds

• InternalCalls

• InternalSeconds

• LoggedInSeconds

• ManualCalls

• ManualSeconds

• NotReadySeconds

• NumberOfCallbacks

• NumberOfRefusals

OSMS API Reference Guide Confidential

Page 497: 700136a Epro61 Osms API Ref Guide

Aspect Software Data Interfaces | 5–349

• NumberOfSuccesses

• OtherSeconds

• PreviewSeconds

• TransferredCalls

• Workgroup

• WorkgoupId

• WrapSeconds

Confidential OSMS API Reference Guide

Page 498: 700136a Epro61 Osms API Ref Guide

5–350 | Data Interfaces Aspect Software

OSMS API Reference Guide Confidential

Page 499: 700136a Epro61 Osms API Ref Guide

Chapter 6

Collection Interfaces

The Collection Interfaces are passed through special functions found in the Monitor objects. These collections provide you with state information.

Collections objects in the OSMS API include the following:

• Agents

• AgentServices

• AmdSummaryByQueue

• DistListMailQueues

• FeedApplications

• Services

• Sites

• Tables

• Workgroups

Agents Collection

Description:

This code shows you how to traverse through an Agents Collection.

VB Sample:

Private Sub CmdActiveAgent_Click()Dim data As StringDim AgentsCollection As AgentsDim AgentItem As Agent

Set AgentsCollection = AgentMonitor.LoggedInAgents(Int(txtActiveAgent.Text), 0)

lstActiveAgent.ClearFor Each AgentItem In AgentsCollection

data = "Agent: " + AgentItem.UserId + " Index: " +Str(AgentItem.AgentIndex) + " Name: " + AgentItem.Name

Aspect Software Confidential OSMS API Reference Guide

Page 500: 700136a Epro61 Osms API Ref Guide

6–2 | Collection Interfaces Aspect Software

lstActiveAgent.AddItem dataNextEnd Sub

C++ Sample:

IAgentsPtr Agents = NULL;IAgentPtr Agent = NULL;long lCount = 0;_variant_t vAgent ;_variant_t vIndex ;HRESULT hResult = NULL;

try {Agents = AgentMonitor->GetAgents();

if ((lCount = Agents->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ )

{vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Agents->raw_Item (vIndex,

&vAgent)) == S_OK ){

Agent = vAgent.pdispVal;printf("AgentIndex: %d\n",Agent->AgentIndex();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

OSMS API Reference Guide Confidential

Page 501: 700136a Epro61 Osms API Ref Guide

Aspect Software Collection Interfaces | 6–3

AmdSummaryByQueues Collection

Description:

This code shows you how to traverse through a AmdSummaryByQueues Collection.

VB Sample:

Private Sub CmdAmdSummaryByQueues_Click()Dim data As StringDim AmdSummaryByQueuesCollection As AmdSummaryByQueuesDim AmdSummaryByQueueItem As AmdSummaryByQueue

Set AmdSummaryByQueuesCollection =ServiceMonitor.GetSelfServiceSummaryMailQueues(1)

lstService.ClearFor Each AmdSummaryByQueueItem In AmdSummaryByQueuesCollectiondata = "Short: " + AmdSummaryByQueueItem.QueueNameShort +

" QueueId: " + Str(AmdSummaryByQueueItem.QueueId + " QueueIndex: " + Str(AmdSummaryByQueueItem.QueueIndex)

lstService.AddItem dataNext

End Sub

C++ Sample:

IAmdSummaryByQueuesPtr AmdSummaryByQueues = NULL;IAmdSummaryByQueuePtr AmdSummaryByQueue = NULL;long lCount = 0;_variant_t vService;_variant_t vIndex ;HRESULT hResult = NULL;

try {AmdSummaryByQueues = ServiceMonitor->GetSelfServiceSummaryMailQueues(1);

if ((lCount = AmdSummaryByQueues->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = AmdSummaryByQueues->raw_Item

(vIndex,&vService)) == S_OK ){

AmdSummaryByQueue = vService.pdispVal;

Confidential OSMS API Reference Guide

Page 502: 700136a Epro61 Osms API Ref Guide

6–4 | Collection Interfaces Aspect Software

printf("QueueId: %d\n",AmdSummaryByQueue->QueueId();}

}}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

FeedApplications Collection

Description:

This code shows you how to traverse through a FeedApplications Collection.

VB Sample:

Private Sub CmdFeedApplications_Click()Dim data As StringDim FeedApplicationsCollection As FeedApplicationsDim FeedApplicationItem As FeedApplication

Set FeedApplicationsCollection = ServiceMonitor.GetFeedApplications(0, 1, 1)

lstService.ClearFor Each FeedApplicationItem In FeedApplicationsCollectiondata = "Short: " + FeedApplicationItem.ServiceNameShort + " Long:

" + FeedApplicationItem.ServiceNameLong + " Index: " + Str(FeedApplicationItem.ServiceId)

lstService.AddItem dataNextEnd Sub

C++ Sample:

IFeedApplicationsPtr FeedApplications = NULL;IFeedApplicationPtr FeedApplication = NULL;long lCount = 0;_variant_t vService;_variant_t vIndex ;HRESULT hResult = NULL;

try

OSMS API Reference Guide Confidential

Page 503: 700136a Epro61 Osms API Ref Guide

Aspect Software Collection Interfaces | 6–5

{FeedApplications = ServiceMonitor->GetFeedApplications(0, 1, 1);

if ((lCount = FeedApplications->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = FeedApplications->raw_Item

(vIndex,&vService)) == S_OK ){

FeedApplication = vService.pdispVal;printf("ServiceId: %d\n",FeedApplication->ServiceId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

Services CollectionDescription:

This code shows you how to traverse through a Services Collection.

VB Sample:

Private Sub CmdServices_Click()Dim data As StringDim ServicesCollection As ServicesDim ServiceItem As Service

Set ServicesCollection = ServiceMonitor.GetServices("cellit", 1, 0, 0, 0, 0, 0)

lstService.ClearFor Each ServiceItem In ServicesCollectiondata = "Short: " + ServiceItem.ServiceNameShort + " Long: " +

ServiceItem.ServiceNameLong + " Index: " + Str(ServiceItem.ServiceId)

lstService.AddItem dataNextEnd Sub

Confidential OSMS API Reference Guide

Page 504: 700136a Epro61 Osms API Ref Guide

6–6 | Collection Interfaces Aspect Software

C++ Sample:

IServicesPtr Services = NULL;IServicePtr Service = NULL;long lCount = 0;_variant_t vService;_variant_t vIndex ;HRESULT hResult = NULL;

try {Services = ServiceMonitor->GetServices("cellit", 1, 0, 0, 0, 0, 0);

if ((lCount = Services->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Services->raw_Item (vIndex,&vService)) == S_OK ){

Service = vService.pdispVal;printf("ServiceId: %d\n",Service->ServiceId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

Sites Collection

Description:

This code shows you how to traverse through a Sites Collection.

VB Sample:

Private Sub CmdSites_Click()Dim data As StringDim SitesCollection As SitesDim SiteItem As Site

Set SitesCollection = ServiceMonitor.GetSites()

OSMS API Reference Guide Confidential

Page 505: 700136a Epro61 Osms API Ref Guide

Aspect Software Collection Interfaces | 6–7

lstSites.ClearFor Each SiteItem In SitesCollection

data = "Id: " + Str(SiteItem.SitesId) + " Name: " + SiteItem.SiteName

lstSites.AddItem dataNextEnd Sub

C++ Sample:

ISitesPtr Sites = NULL;ISitePtr Site = NULL;long lCount = 0;_variant_t vSite;_variant_t vIndex ;HRESULT hResult = NULL;

try {Sites = ServiceMonitor->GetSites();

if ((lCount = Sites->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Sites->raw_Item (vIndex,&vSite)) == S_OK ){

Site = vSite.pdispVal;printf("SiteId: %d\n",Site->SiteId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

Confidential OSMS API Reference Guide

Page 506: 700136a Epro61 Osms API Ref Guide

6–8 | Collection Interfaces Aspect Software

Tables CollectionDescription:

This code shows you how to traverse through a Tables Collection.

VB Sample:

Private Sub CmdTables_Click()Dim data As StringDim TablesCollection As TablesDim TableItem As TableDim ServiceId As Integer

Set TablesCollection = TableMonitor.GetTables(ServiceId)lstTables.ClearFor Each TableItem In TablesCollection

data = "Id: " + Str(TableItem.TableId) + " Name: " + TableItem.TableName

lstTables.AddItem dataNextEnd Sub

C++ Sample:

ITablesPtr Sites = NULL;ITablePtr Site = NULL;long lCount = 0;_variant_t vTable;_variant_t vIndex ;HRESULT hResult = NULL;short siServiceId = 2;

try {Tables = TableMonitor->GetTables(siServiceId);

if ((lCount = Tables->GetCount ()) > 0 ){

for ( int sIndex = 1 ; sIndex <= lCount ; sIndex++ ){

vIndex.vt = VT_I4 ;vIndex.intVal = sIndex; if ((hResult = Tables->raw_Item (vIndex,&vTable)) == S_OK ){

Table = vTable.pdispVal;printf("TableId: %d\n",Table->TableId();

}}

}}

catch (const _com_error& Err){printf("Error: %s\n", Err.ErrorMessage() ) ;}

OSMS API Reference Guide Confidential

Page 507: 700136a Epro61 Osms API Ref Guide
Page 508: 700136a Epro61 Osms API Ref Guide

© 2006 Aspect Software, Inc. All Rights Reserved.

Aspect SoftwareCorporate Headquarters6 Technology Park DriveWestford, MA 01886USA

99w

78 952 020078 952 0201 faxww.aspect.com

P/N RD700245A, Rev. A