Class ScriptProbe
The Script Probe allows Sensus to deliver custom surveys to the user in response to either a schedule or the data coming off other probes. For
example, one could configure a survey to display at particular times or randomly within particular time blocks. One could also configure a survey
to display when a Datum from another probe meets particular criteria.
Inheritance
System.Object
ScriptProbe
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: SensusAndroid.dll
Syntax
public class ScriptProbe : Probe, INotifyPropertyChanged, IProbe
Constructors
ScriptProbe()
Declaration
Properties
Agent
Gets or sets the agent that controls survey delivery. See here for more information.
Declaration
public IScriptProbeAgent Agent { get; set; }
Property Value
AgentAssemblyBytes
Bytes of the assembly in which the Agent is contained.
Declaration
public byte[] AgentAssemblyBytes { get; set; }
Property Value
Type |
Description |
System.Byte[] |
The agent assembly bytes.
|
AgentId
Declaration
public string AgentId { get; set; }
Property Value
Type |
Description |
System.String |
The agent identifier.
|
AgentPolicy
Gets or sets the agent policy.
Declaration
public JObject AgentPolicy { get; set; }
Property Value
Type |
Description |
Newtonsoft.Json.Linq.JObject |
The agent policy JSON.
|
CollectionDescription
Declaration
public override string CollectionDescription { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
DataRateSampleSize
Declaration
protected override long DataRateSampleSize { get; }
Property Value
Type |
Description |
System.Int64 |
|
Overrides
DatumType
Declaration
public override sealed Type DatumType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
DisplayName
Declaration
public override sealed string DisplayName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
MaxDataStoresPerSecond
Declaration
public override Nullable<double> MaxDataStoresPerSecond { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Double> |
|
Overrides
RawParticipation
Declaration
protected override double RawParticipation { get; }
Property Value
Type |
Description |
System.Double |
|
Overrides
ScriptRunners
Declaration
public ObservableCollection<ScriptRunner> ScriptRunners { get; }
Property Value
Type |
Description |
System.Collections.ObjectModel.ObservableCollection<ScriptRunner> |
|
Methods
GetAgent(Byte[], String)
Declaration
public static IScriptProbeAgent GetAgent(byte[] assemblyBytes, string agentId)
Parameters
Type |
Name |
Description |
System.Byte[] |
assemblyBytes |
|
System.String |
agentId |
|
Returns
GetAgents(Byte[])
Declaration
public static List<IScriptProbeAgent> GetAgents(byte[] assemblyBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
assemblyBytes |
|
Returns
GetChartDataPointFromDatum(Datum)
Declaration
protected override ChartDataPoint GetChartDataPointFromDatum(Datum datum)
Parameters
Type |
Name |
Description |
Datum |
datum |
|
Returns
Type |
Description |
Syncfusion.SfChart.XForms.ChartDataPoint |
|
Overrides
GetChartPrimaryAxis()
Declaration
protected override ChartAxis GetChartPrimaryAxis()
Returns
Type |
Description |
Syncfusion.SfChart.XForms.ChartAxis |
|
Overrides
GetChartSecondaryAxis()
Declaration
protected override RangeAxisBase GetChartSecondaryAxis()
Returns
Type |
Description |
Syncfusion.SfChart.XForms.RangeAxisBase |
|
Overrides
GetChartSeries()
Declaration
protected override ChartSeries GetChartSeries()
Returns
Type |
Description |
Syncfusion.SfChart.XForms.ChartSeries |
|
Overrides
InitializeAsync()
Declaration
protected override Task InitializeAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
ProtectedStartAsync()
Declaration
protected override Task ProtectedStartAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
ProtectedStopAsync()
Declaration
protected override Task ProtectedStopAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
ResetAsync()
Declaration
public override Task ResetAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
TestHealthAsync(List<AnalyticsTrackedEvent>)
Declaration
public override Task<HealthTestResult> TestHealthAsync(List<AnalyticsTrackedEvent> events)
Parameters
Returns
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged