Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the QueryRequest class.
 /// </summary>
 /// <param name="getEvents">Get Events query. Allows to retrieve raw
 /// events for a given Time Series ID and search span.</param>
 /// <param name="getSeries">Get Series query. Allows to retrieve time
 /// series of calculated variable values from events for a given Time
 /// Series ID and search span.</param>
 /// <param name="aggregateSeries">Aggregate Series query. Allows to
 /// calculate an aggregated time series from events for a given Time
 /// Series ID and search span.</param>
 public QueryRequest(GetEvents getEvents = default(GetEvents), GetSeries getSeries = default(GetSeries), AggregateSeries aggregateSeries = default(AggregateSeries))
 {
     GetEvents       = getEvents;
     GetSeries       = getSeries;
     AggregateSeries = aggregateSeries;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (GetEvents != null)
     {
         GetEvents.Validate();
     }
     if (GetSeries != null)
     {
         GetSeries.Validate();
     }
     if (AggregateSeries != null)
     {
         AggregateSeries.Validate();
     }
 }