Difference between revisions of "QuestionnaireStatistics class"
Nguyenduyan (talk | contribs) |
Nguyenduyan (talk | contribs) |
||
Line 1: | Line 1: | ||
{{CGscriptClass_Template | {{CGscriptClass_Template | ||
− | |Name= | + | |Name=QuestionnaireStatistics |
− | |Description= | + | |Description=The questionnaire statistics collection. To view information like how big a sample is used, how large is the active samples etc. |
|Constructors= | |Constructors= | ||
{{CGscriptConstructors_Template|Parameters= | {{CGscriptConstructors_Template|Parameters= | ||
− | {{CGscriptParameters_Template|Type=array|Name= | + | {{CGscriptParameters_Template|Type=array|Name=qids|Description=An array of questionnaire resource ids. Invalid ids are ignored. Deleted ids are ok. Must have Read permission.}} |
− | |Description= | + | |Description=Constructor to take many questionnaires}} |
|Methods= | |Methods= | ||
− | {{CGscriptMethods_Template|ReturnType=string|Name= | + | {{CGscriptMethods_Template|ReturnType=string|Name=AverageInterviewSucceededTime|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of AverageInterviewSucceededTime}} |
− | {{CGscriptMethods_Template|ReturnType=number|Name= | + | {{CGscriptMethods_Template|ReturnType=number|Name=EstimatedTime|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get estimated time to complete based on current time estimate of the pq}} |
− | {{CGscriptMethods_Template|ReturnType=number|Name= | + | {{CGscriptMethods_Template|ReturnType=number|Name=EstimatedTotalTime|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get sum of estimated time to complete based on current time estimate of the pq}} |
− | {{CGscriptMethods_Template|ReturnType=DateTime|Name= | + | {{CGscriptMethods_Template|ReturnType=DateTime|Name=FirstInterview|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get start date of the first interview}} |
− | {{CGscriptMethods_Template|ReturnType=DateTime|Name= | + | {{CGscriptMethods_Template|ReturnType=DateTime|Name=LatestInterview|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get end date of the latest interview}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NonSampleRules|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NonSampleRules}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NonSampleRulesWithData|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NonSampleRulesWithData}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NonSampleRulesWithoutData|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NonSampleRulesWithoutData}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfActiveNotContactedRpq|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfActiveNotContactedRpq}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfActiveSample|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfActiveSample}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfAvailable|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfAvailable}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfAvailableActive|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfAvailableActive}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfCompleted|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfCompleted}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfCompletedToday|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfCompletedToday}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfCompletedYesterday|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfCompletedYesterday}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfEmails|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get number of emails sent}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfInterviewSucceeded|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfInterviewSucceeded}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfInterviewSucceededToday|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfInterviewSucceededToday}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfInterviewSucceededYesterday|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfInterviewSucceededYesterday}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfNotContactedRpq|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfNotContactedRpq}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfPartly|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfPartly}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfReadEmails|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get number of qas that was registered as read or started}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfSample|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfSample}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=NumberOfTestLink|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of NumberOfTestLink}} |
− | {{CGscriptMethods_Template|ReturnType=int|Name= | + | {{CGscriptMethods_Template|ReturnType=int|Name=TargetReachedCount|Parameters= |
− | {{CGscriptParameters_Template|Type=int|Name= | + | {{CGscriptParameters_Template|Type=int|Name=QuestionnaireResourceId|Description=The Id to get the info from}} |
− | |Description= | + | |Description=Get count of TargetReachedCount}} |
− | {{CGscriptMethods_Template|ReturnType=string|Name= | + | {{CGscriptMethods_Template|ReturnType=string|Name=ToString|Description=The string representation of the object.}} |
|Properties= | |Properties= | ||
− | {{CGscriptProperties_Template|ReturnType=string|Name= | + | {{CGscriptProperties_Template|ReturnType=string|Name=ObjectTypeName|HasGetter=1|Description=The name of the type of object.}} |
− | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name= | + | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}} |
}} | }} | ||
+ | |||
+ | === <span style="color:#DF8621">'''Examples'''</span> === | ||
+ | |||
+ | <source lang="javascript"> | ||
+ | QuestionnaireStatistics stt = new QuestionnaireStatistics({11147517}); | ||
+ | print(stt.NumberOfEmails(11147517));//90302 | ||
+ | print(stt.NumberOfReadEmails(11147517));//8627 | ||
+ | </source> |
Revision as of 08:21, 14 February 2017
QuestionnaireStatistics
The questionnaire statistics collection. To view information like how big a sample is used, how large is the active samples etc.
Constructors
- (array qids "An array of questionnaire resource ids. Invalid ids are ignored. Deleted ids are ok. Must have Read permission.") - Constructor to take many questionnaires
Methods
- string AverageInterviewSucceededTime(int QuestionnaireResourceId "The Id to get the info from") - Get count of AverageInterviewSucceededTime
- number EstimatedTime(int QuestionnaireResourceId "The Id to get the info from") - Get estimated time to complete based on current time estimate of the pq
- number EstimatedTotalTime(int QuestionnaireResourceId "The Id to get the info from") - Get sum of estimated time to complete based on current time estimate of the pq
- DateTime FirstInterview(int QuestionnaireResourceId "The Id to get the info from") - Get start date of the first interview
- DateTime LatestInterview(int QuestionnaireResourceId "The Id to get the info from") - Get end date of the latest interview
- int NonSampleRules(int QuestionnaireResourceId "The Id to get the info from") - Get count of NonSampleRules
- int NonSampleRulesWithData(int QuestionnaireResourceId "The Id to get the info from") - Get count of NonSampleRulesWithData
- int NonSampleRulesWithoutData(int QuestionnaireResourceId "The Id to get the info from") - Get count of NonSampleRulesWithoutData
- int NumberOfActiveNotContactedRpq(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfActiveNotContactedRpq
- int NumberOfActiveSample(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfActiveSample
- int NumberOfAvailable(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfAvailable
- int NumberOfAvailableActive(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfAvailableActive
- int NumberOfCompleted(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfCompleted
- int NumberOfCompletedToday(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfCompletedToday
- int NumberOfCompletedYesterday(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfCompletedYesterday
- int NumberOfEmails(int QuestionnaireResourceId "The Id to get the info from") - Get number of emails sent
- int NumberOfInterviewSucceeded(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfInterviewSucceeded
- int NumberOfInterviewSucceededToday(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfInterviewSucceededToday
- int NumberOfInterviewSucceededYesterday(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfInterviewSucceededYesterday
- int NumberOfNotContactedRpq(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfNotContactedRpq
- int NumberOfPartly(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfPartly
- int NumberOfReadEmails(int QuestionnaireResourceId "The Id to get the info from") - Get number of qas that was registered as read or started
- int NumberOfSample(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfSample
- int NumberOfTestLink(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfTestLink
- int TargetReachedCount(int QuestionnaireResourceId "The Id to get the info from") - Get count of TargetReachedCount
- string ToString() - The string representation of the object.
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- TypeInformation TypeInformation { get; } - Get information about this class.
Examples
QuestionnaireStatistics stt = new QuestionnaireStatistics({11147517});
print(stt.NumberOfEmails(11147517));//90302
print(stt.NumberOfReadEmails(11147517));//8627