Appendix A: Examples of Views

This appendix contains examples of views. These views also appear in the sample views file installed with Historical Server.

You may find that some of these views collect exactly the information that you are interested in, while others can serve as templates for building the views that you need.

Some of the sample views differ from one another only in the time interval over which the data is accumulated (either the duration of the most recent sample interval or the entire session). Other views may contain similar data items, but in a different order. The order in which data items appear in a view is significant because the data is sorted according to the key field. The first key field appears in a view’s definition and acts as the primary sort key, the second key field is the secondary sort key, and so on.

#include mcpublic.h

SMC_VOID
ErrorCallback(  
SMC_SIZET    id, 
SMC_SIZET    error_number,  
SMC_SIZET    severity,
SMC_SIZET    map_severity,
SMC_SIZET    source,
SMC_CCHARP   error_msg,
SMC_SIZET    state);

SMC_VOID
RefreshCallback(
SMC_SIZET   id,  
SMC_VOIDP   user_msg,
SMC_CHARP   msg);
SMC_CHARP  
SMC_DATAITEM_NAME   value);

SMC_CHARP
LookupDataItemStat(  
SMC_DATAITEM_STATTYPE   value);

SMC_CHARP
LookupLockResult(  
SMC_LOCK_RESULT   value);

SMC_CHARP
LookupLockResultSummary(  
SMC_LOCK_RESULT_SUMMARY   value);

SMC_CHARP
LookupLockStatus(  
SMC_LOCK_STATUS   value);
SMC_CHARP
LookupLockType(  
SMC_LOCK_TYPE   value);

SMC_CHARP
LookupObjectType(  
SMC_OBJ_TYPE   value);

SMC_CHARP
LookupProcessState(  
SMC_PROCESS_STATE   value);
SMC_INT
main(  
SMC_INT     argc,  
SMC_CHARP   argv[])
{