using System;
using Sockeye.Biz;
namespace Sockeye.KPI
{
    internal interface IAyaKPI
    {
         //allowed roles to access this kpi
        AuthorizationRoles AllowedRoles { get; }

        //build the data and meta queries based on the criteria and this kpi's standard query
        void BuildQuery(KPIRequestOptions options, long userId);
        string MetaQuery{get;}//Query to fetch json meta data for report purposes mainly (lookup stuff like names etc where applicable)
        string DataQuery{get;}//Query to fetch json format data for result set
        string ErrorMessage{get;}//if there was a problem then this is set with the error message

    }
}