models

package
Version: v0.0.0-...-d72ca28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SPCTableName string

Functions

func AuthenticateProc

func AuthenticateProc(payload toolkit.M) (toolkit.M, error)

func ChangePass

func ChangePass(payload toolkit.M) error

func DeleteAccessProc

func DeleteAccessProc(payload toolkit.M) error

func DeleteGroup

func DeleteGroup(payload toolkit.M) error

func DeleteUser

func DeleteUser(payload toolkit.M) error

func EditGroup

func EditGroup(payload toolkit.M) (toolkit.M, error)

func EditUser

func EditUser(payload toolkit.M) (toolkit.M, error)

func FindAccess

func FindAccess(payload toolkit.M) (toolkit.M, error)

func GetAccessGroup

func GetAccessGroup(payload toolkit.M) ([]interface{}, error)

func GetAccessQuery

func GetAccessQuery(payload toolkit.M) (toolkit.M, error)

func GetAccessUser

func GetAccessUser(payload toolkit.M) ([]interface{}, error)

func GetGroup

func GetGroup() ([]toolkit.M, error)

func GetListOfMenu

func GetListOfMenu(sessionid string) (result toolkit.Ms, err error)

func GetLog

func GetLog(payload toolkit.M) (toolkit.M, error)

func GetParentIDQuery

func GetParentIDQuery() ([]string, error)

func GetSession

func GetSession(payload toolkit.M) (toolkit.M, error)

func GetUser

func GetUser(payload toolkit.M) (toolkit.M, error)

func GetUserName

func GetUserName(sessionId interface{}) (tUser acl.User, err error)

func GetaccessDropDownQuery

func GetaccessDropDownQuery() ([]toolkit.M, error)

func LoginProcess

func LoginProcess(payload toolkit.M) ([]string, string, error)

func PrepareDefaultUser

func PrepareDefaultUser() (err error)

func ResetPassword

func ResetPassword(payload toolkit.M) error

func SaveAccessProc

func SaveAccessProc(payload toolkit.M) error

func SaveGroup

func SaveGroup(payload toolkit.M) error

func SavePassword

func SavePassword(payload toolkit.M) error

func SaveUser

func SaveUser(payload toolkit.M) error

func SearchGroup

func SearchGroup(payload toolkit.M) (toolkit.M, error)

func SetExpired

func SetExpired(payload toolkit.M) error

func WriteLog

func WriteLog(sessionId interface{}, access, reference string) error

Types

type Alarm

type Alarm struct {
	orm.ModelBase      `bson:"-",json:"-"`
	ID                 bson.ObjectId ` bson:"_id" , json:"_id" `
	Farm               string
	StartDate          time.Time
	StartDateInfo      DateInfo
	EndDate            time.Time
	Duration           float64 // duration in hours
	Turbine            string
	AlertDescription   string
	BrakeType          string // add by ams, regarding to add new req | 20170130
	ExternalStop       bool
	GridDown           bool
	InternalGrid       bool
	MachineDown        bool
	AEbOK              bool
	Unknown            bool
	WeatherStop        bool
	Line               int
	ProjectName        string
	PowerLost          float64
	Detail             []AlarmDetail
	ReduceAvailability bool
}

func (*Alarm) New

func (m *Alarm) New() *Alarm

func (*Alarm) RecordID

func (m *Alarm) RecordID() interface{}

func (*Alarm) TableName

func (m *Alarm) TableName() string

type AlarmBrake

type AlarmBrake struct {
	orm.ModelBase              `bson:"-",json:"-"`
	ID                         bson.ObjectId ` bson:"_id" , json:"_id" `
	TypeCode                   int
	AlarmIndex                 int
	AlarmName                  string
	AlarmTypeId                string
	TypeId                     int
	Type                       string
	Set                        bool
	Disabled                   bool
	DefaultDisabled            bool
	BrakeProgram               int
	DefaultBrakeProgram        int
	YawProgram                 int
	DefaultYawProgram          int
	AlarmPaging                bool
	DefaultAlarmPaging         bool
	AlarmDelay                 int
	DefaultAlarmDelay          int
	AlarmDelayUnit             string
	ReducesAvailability        bool
	DefaultReducesAvailability bool
	OnTimeCounter              int
	AlarmCounter               int
	RepeatAlarmCode            int
	RepeatAlarmName            string
	RepeatAlarmNumber          int
	DefaultRepeatAlarmCounter  int
	RepeatAlarmTime            int
	DefaultRepeatAlarmTime     int
	LevelDisableAlarm          int
	LevelResetAlarm            int
}

func (*AlarmBrake) New

func (m *AlarmBrake) New() *AlarmBrake

func (*AlarmBrake) RecordID

func (m *AlarmBrake) RecordID() interface{}

func (*AlarmBrake) TableName

func (m *AlarmBrake) TableName() string

type AlarmClean

type AlarmClean struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	Farm             string
	StartDate        time.Time
	StartDateInfo    DateInfo
	EndDate          time.Time
	Duration         float64 // duration in hours
	Turbine          string
	AlertDescription string
	ExternalStop     bool
	GridDown         bool
	InternalGrid     bool
	MachineDown      bool
	AEbOK            bool
	Unknown          bool
	WeatherStop      bool
	Line             int
	ProjectName      string
	PowerLost        float64
}

func (*AlarmClean) New

func (m *AlarmClean) New() *AlarmClean

func (*AlarmClean) RecordID

func (m *AlarmClean) RecordID() interface{}

func (*AlarmClean) TableName

func (m *AlarmClean) TableName() string

type AlarmDetail

type AlarmDetail struct {
	StartDate        time.Time
	EndDate          time.Time
	DetailDateInfo   DateInfo
	AlertDescription string
	BrakeType        string // add by ams, regarding to add new req | 20170130
	Duration         float64
	Power            float64
	PowerLost        float64
	ExternalStop     bool
	GridDown         bool
	InternalGrid     bool
	MachineDown      bool
	AEbOK            bool
	Unknown          bool
	WeatherStop      bool
}

type AlarmHFD

type AlarmHFD struct {
	orm.ModelBase      `bson:"-" json:"-"`
	ID                 bson.ObjectId ` bson:"_id" json:"_id" `
	ProjectName        string
	Turbine            string
	TimeStart          time.Time
	TimeEnd            time.Time
	DateInfoStart      DateInfo
	DateInfoEnd        DateInfo
	Duration           float64
	AlarmCode          int
	AlarmDesc          string
	BrakeProgram       int
	BrakeType          string
	Finish             int
	BDGroup            string //grid, machine
	LastUpdated        time.Time
	TurbineState       int
	IsDeleted          bool
	ReduceAvailability bool
}

func (*AlarmHFD) New

func (m *AlarmHFD) New() *AlarmHFD

func (*AlarmHFD) RecordID

func (m *AlarmHFD) RecordID() interface{}

func (*AlarmHFD) TableName

func (m *AlarmHFD) TableName() string

type AlarmIncorrect

type AlarmIncorrect struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	Farm             string
	StartDate        time.Time
	StartDateInfo    DateInfo
	EndDate          time.Time
	Turbine          string
	AlertDescription string
	ExternalStop     bool
	GridDown         bool
	InternalGrid     bool
	MachineDown      bool
	AEbOK            bool
	Unknown          bool
	WeatherStop      bool
	Line             int
	ProjectName      string
}

func (*AlarmIncorrect) New

func (m *AlarmIncorrect) New() *AlarmIncorrect

func (*AlarmIncorrect) RecordID

func (m *AlarmIncorrect) RecordID() interface{}

func (*AlarmIncorrect) TableName

func (m *AlarmIncorrect) TableName() string

type AlarmOverlapping

type AlarmOverlapping struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	Farm             string
	StartDate        time.Time
	StartDateInfo    DateInfo
	EndDate          time.Time
	Duration         float64
	Turbine          string
	AlertDescription string
	ExternalStop     bool
	GridDown         bool
	InternalGrid     bool
	MachineDown      bool
	AEbOK            bool
	Unknown          bool
	WeatherStop      bool
	Alarms           []Alarm
	ProjectName      string
}

func (*AlarmOverlapping) New

func (*AlarmOverlapping) RecordID

func (m *AlarmOverlapping) RecordID() interface{}

func (*AlarmOverlapping) TableName

func (m *AlarmOverlapping) TableName() string

type AlarmRawHFD

type AlarmRawHFD struct {
	orm.ModelBase `bson:"-" json:"-"`
	ID            string ` bson:"_id" json:"_id" `
	ProjectName   string
	Turbine       string
	TimeStamp     time.Time
	DateInfo      DateInfo
	Tag           string
	Value         float64
	AddInfo       string
	Description   string
}

func (*AlarmRawHFD) New

func (m *AlarmRawHFD) New() *AlarmRawHFD

func (*AlarmRawHFD) RecordID

func (m *AlarmRawHFD) RecordID() interface{}

func (*AlarmRawHFD) TableName

func (m *AlarmRawHFD) TableName() string

type AlarmScadaAnomaly

type AlarmScadaAnomaly struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	Farm             string
	StartDate        time.Time
	StartDateInfo    DateInfo
	EndDate          time.Time
	Duration         float64
	Turbine          string
	AlertDescription string
	ExternalStop     bool
	GridDown         bool
	InternalGrid     bool
	MachineDown      bool
	AEbOK            bool
	Unknown          bool
	WeatherStop      bool
	Line             int
	IsAlarmOk        bool
	ProjectName      string
	PowerLost        float64
}

func (*AlarmScadaAnomaly) New

func (*AlarmScadaAnomaly) RecordID

func (m *AlarmScadaAnomaly) RecordID() interface{}

func (*AlarmScadaAnomaly) TableName

func (m *AlarmScadaAnomaly) TableName() string

type AlarmSummaryByMonth

type AlarmSummaryByMonth struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	DateInfo      DateInfo
	ProjectName   string
	Type          string
	LostEnergy    float64
}

func (*AlarmSummaryByMonth) TableName

func (m *AlarmSummaryByMonth) TableName() string

type AnalysisStudio

type AnalysisStudio struct {
	Name    string
	Keys    []string
	Filters []Filter
}

type DGRDowntimeModel

type DGRDowntimeModel struct {
	orm.ModelBase        `bson:"-",json:"-"`
	Id                   bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo             DateInfo
	CustomerName         string
	State                string
	Site                 string
	Section              string
	Turbine              string
	MaxCapacity          float64
	BreakdownRemark      string
	FormulaParameter     string
	BreakdownHours       float64
	StartTime            time.Time
	EndTime              time.Time
	WindSpeed            float64
	GenerationPowerCurve float64
	LostEnergy           float64
	RevenueLoss          float64
	GBILoss              float64
	BreakdownNote        string
}

func NewDGRDowntimeModel

func NewDGRDowntimeModel() *DGRDowntimeModel

func (*DGRDowntimeModel) RecordID

func (e *DGRDowntimeModel) RecordID() interface{}

func (*DGRDowntimeModel) TableName

func (m *DGRDowntimeModel) TableName() string

type DGRModel

type DGRModel struct {
	orm.ModelBase       `bson:"-",json:"-"`
	Id                  bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo            DateInfo
	CustomerName        string
	State               string
	Site                string
	Section             string
	Turbine             string
	MaxCapacity         float64
	GenKwhDay           float64
	GenKwhMtd           float64
	GenKwhYtd           float64
	PLFDay              float64
	PLFMtd              float64
	PLFYtd              float64
	MachineAvailability float64
	ForceMajeure        float64
	Schedule            float64
	Unschedule          float64
	NonOperational      float64
	GenerationHours     float64
	OperationalHours    float64
	GridAvailability    float64
	GFGF                float64
	GFFM                float64
	GFS                 float64
	GFU                 float64
	DowntimeHours       float64
	LostEnergy          float64
	RevenueLoss         float64
	GBILoss             float64
	DowntimeDetail      []DowntimeDetail
}

func NewDGRModel

func NewDGRModel() *DGRModel

func (*DGRModel) RecordID

func (e *DGRModel) RecordID() interface{}

func (*DGRModel) TableName

func (m *DGRModel) TableName() string

type DGRScadaModel

type DGRScadaModel struct {
	orm.ModelBase      `bson:"-",json:"-"`
	Id                 bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo           DateInfo
	ProjectName        string
	Turbine            string
	TurbineName        string
	PowerKW            float64
	Production         float64
	OkTime             float64
	TrueAvail          float64
	ScadaAvail         float64
	PLF                float64
	DowntimeHours      float64
	LostEnergy         float64
	MachineDownHours   float64
	GridDownHours      float64
	Otherdowntimehours float64
	LoWindTime         float64
}

func NewDGRScadaModel

func NewDGRScadaModel() *DGRScadaModel

func (*DGRScadaModel) RecordID

func (e *DGRScadaModel) RecordID() interface{}

func (*DGRScadaModel) TableName

func (m *DGRScadaModel) TableName() string

type DataAvailability

type DataAvailability struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	Type          string
	Name          string
	PeriodTo      time.Time
	PeriodFrom    time.Time
	Details       []DataAvailabilityDetail
}

should be applied for last 1 year datas

func (*DataAvailability) TableName

func (m *DataAvailability) TableName() string

type DataAvailabilityDetail

type DataAvailabilityDetail struct {
	ID          int
	ProjectName string
	Turbine     string
	TurbineName string
	Start       time.Time
	StartInfo   DateInfo
	End         time.Time
	EndInfo     DateInfo
	Duration    float64
	IsAvail     bool
}

type DetailWindSpeed

type DetailWindSpeed struct {
	SumWindSpeed   float64
	CountWindSpeed float64
}

type DowntimeDetail

type DowntimeDetail struct {
	BreakdownRemark      string
	FormulaParameter     string
	BreakdownHours       float64
	StartTime            time.Time
	EndTime              time.Time
	WindSpeed            float64
	GenerationPowerCurve float64
	LostEnergy           float64
	RevenueLoss          float64
	GBILoss              float64
	BreakdownNote        string
}

type DowntimeEvent

type DowntimeEvent struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	ProjectName      string
	Turbine          string
	TimeStart        time.Time
	DateInfoStart    DateInfo
	TimeEnd          time.Time
	DateInfoEnd      DateInfo
	AlarmDescription string
	Duration         float64
	Detail           []DowntimeEventDetail
	DownGrid         bool
	DownEnvironment  bool
	DownMachine      bool
}

func (*DowntimeEvent) New

func (m *DowntimeEvent) New() *DowntimeEvent

func (*DowntimeEvent) RecordID

func (m *DowntimeEvent) RecordID() interface{}

func (*DowntimeEvent) TableName

func (m *DowntimeEvent) TableName() string

type DowntimeEventDetail

type DowntimeEventDetail struct {
	TimeStamp        time.Time
	DateInfo         DateInfo
	AlarmId          int
	AlarmDescription string
	AlarmToggle      bool
}

type DowntimeEventRaw

type DowntimeEventRaw struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	ProjectName      string
	Turbine          string
	TimeStamp        time.Time
	DateInfo         DateInfo
	EventType        string
	BrakeProgram     int
	AlarmDescription string
	AlarmId          int
	TurbineStatus    string
	AlarmToggle      bool
	BrakeType        string
}

func (*DowntimeEventRaw) New

func (*DowntimeEventRaw) RecordID

func (m *DowntimeEventRaw) RecordID() interface{}

func (*DowntimeEventRaw) TableName

func (m *DowntimeEventRaw) TableName() string

type EmailCategory

type EmailCategory struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	Category      string
	Condition     string // "isAlarmCode,isInterval"
}

func (*EmailCategory) RecordID

func (m *EmailCategory) RecordID() interface{}

func (*EmailCategory) TableName

func (m *EmailCategory) TableName() string

type EmailManagement

type EmailManagement struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	Subject       string
	Category      string   // refer to ref_emailCategory
	Receivers     []string // list of userid
	AlarmCodes    []string // list of alarm code
	IntervalTime  int      // in minutes
	Template      string
	CreatedDate   time.Time
	LastUpdate    time.Time
	CreatedBy     string // userid
	UpdatedBy     string // userid
	Enable        bool
}

func (*EmailManagement) RecordID

func (m *EmailManagement) RecordID() interface{}

func (*EmailManagement) TableName

func (m *EmailManagement) TableName() string

type EventAlarm

type EventAlarm struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	ProjectName   string
	Turbine       string
	TimeStart     time.Time
	TimeStartInt  int64
	// TimeStartUTC     time.Time
	DateInfoStart DateInfo
	// DateInfoStartUTC DateInfo
	TimeEnd time.Time
	// TimeEndUTC       time.Time
	TimeEndInt  int64
	DateInfoEnd DateInfo
	// DateInfoEndUTC   DateInfo
	AlarmDescription string
	Duration         float64
	Detail           []EventAlarmDetail
}

func (*EventAlarm) New

func (m *EventAlarm) New() *EventAlarm

func (*EventAlarm) RecordID

func (m *EventAlarm) RecordID() interface{}

func (*EventAlarm) TableName

func (m *EventAlarm) TableName() string

type EventAlarmDetail

type EventAlarmDetail struct {
	TimeStamp    time.Time
	TimeStampInt int64
	// TimeStampUTC     time.Time
	DateInfo DateInfo
	// DateInfoUTC      DateInfo
	AlarmId          int
	AlarmDescription string
	AlarmToggle      bool
}

type EventDown

type EventDown struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	ProjectName   string
	Turbine       string
	TimeStart     time.Time
	TimeStartInt  int64
	// TimeStartUTC     time.Time
	DateInfoStart DateInfo
	// DateInfoStartUTC DateInfo
	TimeEnd time.Time
	// TimeEndUTC       time.Time
	TimeEndInt  int64
	DateInfoEnd DateInfo
	// DateInfoEndUTC   DateInfo
	AlarmDescription   string
	BrakeType          string // add by ams, regarding to add new req | 20170130
	Duration           float64
	Detail             []EventDownDetail
	DownGrid           bool
	DownEnvironment    bool
	DownMachine        bool
	ReduceAvailability bool
}

func (*EventDown) New

func (m *EventDown) New() *EventDown

func (*EventDown) RecordID

func (m *EventDown) RecordID() interface{}

func (*EventDown) TableName

func (m *EventDown) TableName() string

type EventDownDetail

type EventDownDetail struct {
	TimeStamp    time.Time
	TimeStampInt int64
	// TimeStampUTC     time.Time
	DateInfo DateInfo
	// DateInfoUTC      DateInfo
	AlarmId          int
	AlarmDescription string
	BrakeType        string // add by ams, regarding to add new req | 20170130
	AlarmToggle      bool
}

type EventDownHFD

type EventDownHFD struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               string ` bson:"_id" , json:"_id" `
	ProjectName      string
	Turbine          string
	TimeStart        time.Time
	DateInfoStart    DateInfo
	TimeEnd          time.Time
	DateInfoEnd      DateInfo
	GroupTimeStart   time.Time
	GroupTimeEnd     time.Time
	AlarmDescription string
	Duration         float64
	DownGrid         bool
	DownEnvironment  bool
	DownMachine      bool
	AlarmID          int
}

func (*EventDownHFD) New

func (m *EventDownHFD) New() *EventDownHFD

func (*EventDownHFD) RecordID

func (m *EventDownHFD) RecordID() interface{}

func (*EventDownHFD) TableName

func (m *EventDownHFD) TableName() string

type EventRaw

type EventRaw struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	ProjectName   string
	Turbine       string
	TimeStamp     time.Time
	TimeStampInt  int64
	// TimeStampUTC     time.Time
	DateInfo DateInfo
	// DateInfoUTC      DateInfo
	EventType        string
	BrakeProgram     int
	AlarmDescription string
	AlarmId          int
	TurbineStatus    string
	AlarmToggle      bool
	BrakeType        string
}

func (*EventRaw) New

func (m *EventRaw) New() *EventRaw

func (*EventRaw) RecordID

func (m *EventRaw) RecordID() interface{}

func (*EventRaw) TableName

func (m *EventRaw) TableName() string

type EventRawHFD

type EventRawHFD struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	ProjectName   string
	Turbine       string //
	TimeStamp     time.Time
	DateInfo      DateInfo

	EventType        string // e.g.: Fast.AlarmCode
	BrakeProgram     int    // alarmbrake > brakeprogram , put 999 if the alarmcode is not found in alarmbrake
	AlarmDescription string // alarmbrake > alarmame
	AlarmId          int    // alarmcode , put 999 if the alarmcode is empty / 999
	// TurbineStatus string
	// AlarmToggle   bool
	BrakeType string // AlarmBrake > type
}

func (*EventRawHFD) New

func (m *EventRawHFD) New() *EventRawHFD

func (*EventRawHFD) TableName

func (m *EventRawHFD) TableName() string

type ExpPValueModel

type ExpPValueModel struct {
	orm.ModelBase      `bson:"-",json:"-"`
	ID                 string ` bson:"_id" , json:"_id" `
	ProjectName        string
	MonthNo            int
	EnergyDistribution float64
	P50NetGenMWH       float64
	P50Plf             float64
	P75NetGenMWH       float64
	P75Plf             float64
	P90NetGenMWH       float64
	P90Plf             float64
}

func (*ExpPValueModel) New

func (m *ExpPValueModel) New() *ExpPValueModel

func (*ExpPValueModel) RecordID

func (m *ExpPValueModel) RecordID() interface{}

func (*ExpPValueModel) TableName

func (m *ExpPValueModel) TableName() string

type ExpectedWindSpeedItem

type ExpectedWindSpeedItem struct {
	Hour      string
	WindSpeed float64
}

type ExpectedWindSpeedModel

type ExpectedWindSpeedModel struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	MonthNo       int
	ProjectId     string
	EngineId      string
	AvgWindSpeed  float64
	DataItems     []ExpectedWindSpeedItem
}

func (*ExpectedWindSpeedModel) New

func (*ExpectedWindSpeedModel) RecordID

func (m *ExpectedWindSpeedModel) RecordID() interface{}

func (*ExpectedWindSpeedModel) TableName

func (m *ExpectedWindSpeedModel) TableName() string

type Filter

type Filter struct {
	Project   string
	Turbine   []string
	Period    string
	DateStart time.Time
	DateEnd   time.Time
}

type ForecastConfig

type ForecastConfig struct {
	orm.ModelBase `bson:"-" json:"-"`
	Id            string `bson:"_id" json:"_id"` // fill Id as projectname
	IsAutoSend    int
	AllowedUsers  []string
	LastSetAuto   time.Time
	LastSetBy     string
}

ForecastConfig for data modeling

func (*ForecastConfig) New

func (c *ForecastConfig) New() *ForecastConfig

New instance for ForecastConfig

func (*ForecastConfig) TableName

func (c *ForecastConfig) TableName() string

TableName of ForecastConfig

type ForecastData

type ForecastData struct {
	orm.ModelBase   `bson:"-" json:"-"`
	Id              string `bson:"_id" json:"_id"`
	DateReceived    time.Time
	DateUpdated     time.Time
	Sender          string
	MailSubject     string
	ProjectName     string
	TimeStamp       time.Time
	DateInfo        DateInfo
	TimeRange       string
	TimeBlock       int
	AvgCapacity     float64
	SchCapacity     float64
	SchSdlc         float64
	WindSpeed       float64
	PowerRtd        float64
	TsRtd           time.Time
	MinCap          float64
	MaxCap          float64
	AvgCapacityMail float64
	SchCapacityMail float64
	IsEdited        int
}

ForecastData for data modeling

func (*ForecastData) New

func (c *ForecastData) New() *ForecastData

New instance for ForecastData

func (*ForecastData) TableName

func (c *ForecastData) TableName() string

TableName of ForecastData

type ForecastRecipients

type ForecastRecipients struct {
	orm.ModelBase `bson:"-" json:"-"`
	Id            bson.ObjectId `bson:"_id" json:"_id"`
	ProjectName   string
	Email         string
	Name          string
	RecipientType string
}

ForecastRecipients for data modeling

func (*ForecastRecipients) New

New instance for ForecastRecipients

func (*ForecastRecipients) RecordID

func (c *ForecastRecipients) RecordID() interface{}

RecordID to get id

func (*ForecastRecipients) TableName

func (c *ForecastRecipients) TableName() string

TableName of ForecastRecipients

type GWFAnalysisByProject

type GWFAnalysisByProject struct {
	orm.ModelBase  `bson:"-",json:"-"`
	ID             bson.ObjectId ` bson:"_id" json:"_id" `
	ProjectName    string
	Key            string
	OrderNo        int
	Roll12Days     GWFAnalysisValue
	Roll12Weeks    GWFAnalysisValue
	Roll12Months   GWFAnalysisValue
	Roll12Quarters GWFAnalysisValue
}

func (*GWFAnalysisByProject) New

func (*GWFAnalysisByProject) RecordID

func (m *GWFAnalysisByProject) RecordID() interface{}

func (*GWFAnalysisByProject) TableName

func (m *GWFAnalysisByProject) TableName() string

type GWFAnalysisByTurbine1

type GWFAnalysisByTurbine1 struct {
	orm.ModelBase  `bson:"-",json:"-"`
	ID             bson.ObjectId ` bson:"_id" json:"_id" `
	ProjectName    string
	Turbine        string
	Key            string
	OrderNo        int
	Roll12Days     GWFAnalysisValue
	Roll12Weeks    GWFAnalysisValue
	Roll12Months   GWFAnalysisValue
	Roll12Quarters GWFAnalysisValue
}

func (*GWFAnalysisByTurbine1) New

func (*GWFAnalysisByTurbine1) RecordID

func (m *GWFAnalysisByTurbine1) RecordID() interface{}

func (*GWFAnalysisByTurbine1) TableName

func (m *GWFAnalysisByTurbine1) TableName() string

type GWFAnalysisByTurbine2

type GWFAnalysisByTurbine2 struct {
	orm.ModelBase  `bson:"-",json:"-"`
	ID             bson.ObjectId ` bson:"_id" json:"_id" `
	ProjectName    string
	Key            string
	OrderNo        int
	Roll12Days     []GWFAnalysisItem2
	Roll12Weeks    []GWFAnalysisItem2
	Roll12Months   []GWFAnalysisItem2
	Roll12Quarters []GWFAnalysisItem2
}

func (*GWFAnalysisByTurbine2) New

func (*GWFAnalysisByTurbine2) RecordID

func (m *GWFAnalysisByTurbine2) RecordID() interface{}

func (*GWFAnalysisByTurbine2) TableName

func (m *GWFAnalysisByTurbine2) TableName() string

type GWFAnalysisItem

type GWFAnalysisItem struct {
	DataId  string
	Title   string
	OrderNo int
	Value   float64
}

type GWFAnalysisItem2

type GWFAnalysisItem2 struct {
	Turbine string
	DataId  string
	Title   string
	OrderNo int
	Value   float64
}

type GWFAnalysisValue

type GWFAnalysisValue struct {
	DateText string
	ValueAvg []GWFAnalysisItem
	ValueMin []GWFAnalysisItem // used only for turbine 2 analysis
	ValueMax []GWFAnalysisItem // used only for turbine 2 analysis
}

type InternetConnectionData

type InternetConnectionData struct {
	orm.ModelBase   `bson:"-",json:"-"`
	Id              string ` bson:"_id" json:"_id" `
	TimeStamp       time.Time
	ServerTimeStamp time.Time
	Thresshold      float64
}

func (*InternetConnectionData) New

func (*InternetConnectionData) RecordID

func (m *InternetConnectionData) RecordID() interface{}

func (*InternetConnectionData) TableName

func (m *InternetConnectionData) TableName() string

type InternetConnectionDown

type InternetConnectionDown struct {
	orm.ModelBase `bson:"-",json:"-"`
	Id            bson.ObjectId ` bson:"_id" json:"_id" `
	ProjectName   string
	TimeStart     time.Time
	DateInfoStart DateInfo
	TimeEnd       time.Time
	DateInfoEnd   DateInfo
	Duration      float64
	DurationHours float64
}

func (*InternetConnectionDown) New

func (*InternetConnectionDown) RecordID

func (m *InternetConnectionDown) RecordID() interface{}

func (*InternetConnectionDown) TableName

func (m *InternetConnectionDown) TableName() string

type JMR

type JMR struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo      DateInfo
	Description   string
	Sections      []JMRSection
	TotalDetails  []JMRTotalDetails
}

func (*JMR) New

func (m *JMR) New() *JMR

func (*JMR) RecordID

func (m *JMR) RecordID() interface{}

func (*JMR) SetTotalDetails

func (m *JMR) SetTotalDetails()

func (*JMR) TableName

func (m *JMR) TableName() string

type JMRSection

type JMRSection struct {
	Turbine     string
	Description string
	Company     string
	ContrGen    float64

	BoEExport    float64
	BoEImport    float64
	BoENet       float64
	BoETotalLoss float64

	BoLExport float64
	BoLImport float64
	BoLNet    float64

	BoE2Export float64
	BoE2Import float64
	BoE2Net    float64
}

type JMRTotalDetails

type JMRTotalDetails struct {
	Section        string
	ContrGenTotal  float64
	BoEExportTotal float64
	BoEImportTotal float64
	BoENetTotal    float64
	TotalLoss      float64
}

type KPIAnalysis

type KPIAnalysis struct {
	Name            string
	KeyA            string
	KeyB            string
	KeyC            string
	ColumnBreakdown string
	RowBreakdown    string
}

type Last30Days

type Last30Days struct {
	DayNo          int
	DateId         time.Time
	CurrProduction float64
	CurrBudget     float64
	CurrBudget50   float64
	CurrBudget90   float64
	CumProduction  float64
	CumBudget      float64
	CumBudget50    float64
	CumBudget90    float64
}

type LastData24Hours

type LastData24Hours struct {
	Hour         int
	TimeHour     time.Time
	PowerKw      float64
	EnergyKwh    float64
	Potential    float64
	PotentialKwh float64
	TrueAvail    float64
	GridAvail    float64
	AvgWindSpeed float64
}

type LastExecProcess

type LastExecProcess struct {
	orm.ModelBase `bson:"-" json:"-"`
	ID            string `json:"_id" bson:"_id"`
	Process       string //conv10min
	Type          string //null, alarm, realtime
	ProjectName   string
	LastDate      time.Time
}

func (*LastExecProcess) New

func (m *LastExecProcess) New() *LastExecProcess

func (*LastExecProcess) RecordID

func (m *LastExecProcess) RecordID() interface{}

func (*LastExecProcess) TableName

func (m *LastExecProcess) TableName() string

type LatestDataPeriod

type LatestDataPeriod struct {
	orm.ModelBase `bson:"-",json:"-"`
	Id            string ` bson:"_id" , json:"_id" `
	ProjectName   string
	Type          string
	Data          []time.Time
}

func (*LatestDataPeriod) New

func (*LatestDataPeriod) RecordID

func (m *LatestDataPeriod) RecordID() interface{}

func (*LatestDataPeriod) TableName

func (m *LatestDataPeriod) TableName() string

type Log

type Log struct {
	orm.ModelBase `bson:"-" json:"-"`
	ID            string `bson:"_id" json:"_id"`
	Name          string
	Action        string
	Reference     string
	Time          time.Time
	Description   string
}

func (*Log) RecordID

func (l *Log) RecordID() interface{}

func (*Log) Save

func (l *Log) Save() error

func (*Log) TableName

func (l *Log) TableName() string

type Login

type Login struct {
	orm.ModelBase
	ID       string `json:"_id",bson:"_id"`
	Password string
	Salt     string
}

func (*Login) RecordID

func (l *Login) RecordID() interface{}

func (*Login) TableName

func (l *Login) TableName() string

type MetTower

type MetTower struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            bson.ObjectId ` bson:"_id" , json:"_id" `
	ProjectName   string
	Line          int
	TimeStamp     time.Time
	DateInfo      DateInfo

	VHubWS90mAvg    float64
	VHubWS90mMax    float64
	VHubWS90mMin    float64
	VHubWS90mStdDev float64
	VHubWS90mCount  float64

	VRefWS88mAvg    float64
	VRefWS88mMax    float64
	VRefWS88mMin    float64
	VRefWS88mStdDev float64
	VRefWS88mCount  float64

	VTipWS42mAvg    float64
	VTipWS42mMax    float64
	VTipWS42mMin    float64
	VTipWS42mStdDev float64
	VTipWS42mCount  float64

	DHubWD88mAvg    float64
	DHubWD88mMax    float64
	DHubWD88mMin    float64
	DHubWD88mStdDev float64
	DHubWD88mCount  float64

	DRefWD86mAvg    float64
	DRefWD86mMax    float64
	DRefWD86mMin    float64
	DRefWD86mStdDev float64
	DRefWD86mCount  float64

	THubHHubHumid855mAvg    float64
	THubHHubHumid855mMax    float64
	THubHHubHumid855mMin    float64
	THubHHubHumid855mStdDev float64
	THubHHubHumid855mCount  float64

	TRefHRefHumid855mAvg    float64
	TRefHRefHumid855mMax    float64
	TRefHRefHumid855mMin    float64
	TRefHRefHumid855mStdDev float64
	TRefHRefHumid855mCount  float64

	THubHHubTemp855mAvg    float64
	THubHHubTemp855mMax    float64
	THubHHubTemp855mMin    float64
	THubHHubTemp855mStdDev float64
	THubHHubTemp855mCount  float64

	TRefHRefTemp855mAvg    float64
	TRefHRefTemp855mMax    float64
	TRefHRefTemp855mMin    float64
	TRefHRefTemp855mStdDev float64
	TRefHRefTemp855mCount  float64

	BaroAirPress855mAvg    float64
	BaroAirPress855mMax    float64
	BaroAirPress855mMin    float64
	BaroAirPress855mStdDev float64
	BaroAirPress855mCount  float64

	WindDirNo      int     // added by ams, Sep 19, 2016
	WindDirDesc    string  // added by ams, Sep 19, 2016
	WSCategoryNo   int     // added by ams, Sep 19, 2016
	WSCategoryDesc string  // added by ams, Sep 19, 2016
	WindSpeedBin   float64 // added by ams, Jan 11, 2016

	YawAngleVoltageAvg          float64
	YawAngleVoltageMax          float64
	YawAngleVoltageMin          float64
	YawAngleVoltageStdDev       float64
	YawAngleVoltageCount        float64
	OtherSensorVoltageAI1Avg    float64
	OtherSensorVoltageAI1Max    float64
	OtherSensorVoltageAI1Min    float64
	OtherSensorVoltageAI1StdDev float64
	OtherSensorVoltageAI1Count  float64
	OtherSensorVoltageAI2Avg    float64
	OtherSensorVoltageAI2Max    float64
	OtherSensorVoltageAI2Min    float64
	OtherSensorVoltageAI2StdDev float64
	OtherSensorVoltageAI2Count  float64
	OtherSensorVoltageAI3Avg    float64
	OtherSensorVoltageAI3Max    float64
	OtherSensorVoltageAI3Min    float64
	OtherSensorVoltageAI3StdDev float64
	OtherSensorVoltageAI3Count  float64
	OtherSensorVoltageAI4Avg    float64
	OtherSensorVoltageAI4Max    float64
	OtherSensorVoltageAI4Min    float64
	OtherSensorVoltageAI4StdDev float64
	OtherSensorVoltageAI4Count  float64
	GenRPMCurrentAvg            float64
	GenRPMCurrentMax            float64
	GenRPMCurrentMin            float64
	GenRPMCurrentStdDev         float64
	GenRPMCurrentCount          float64
	WS_SCSCurrentAvg            float64
	WS_SCSCurrentMax            float64
	WS_SCSCurrentMin            float64
	WS_SCSCurrentStdDev         float64
	WS_SCSCurrentCount          float64
	RainStatusCount             float64
	RainStatusSum               float64
	OtherSensor2StatusIO1Avg    float64
	OtherSensor2StatusIO1Max    float64
	OtherSensor2StatusIO1Min    float64
	OtherSensor2StatusIO1StdDev float64
	OtherSensor2StatusIO1Count  float64
	OtherSensor2StatusIO2Avg    float64
	OtherSensor2StatusIO2Max    float64
	OtherSensor2StatusIO2Min    float64
	OtherSensor2StatusIO2StdDev float64
	OtherSensor2StatusIO2Count  float64
	OtherSensor2StatusIO3Avg    float64
	OtherSensor2StatusIO3Max    float64
	OtherSensor2StatusIO3Min    float64
	OtherSensor2StatusIO3StdDev float64
	OtherSensor2StatusIO3Count  float64
	OtherSensor2StatusIO4Avg    float64
	OtherSensor2StatusIO4Max    float64
	OtherSensor2StatusIO4Min    float64
	OtherSensor2StatusIO4StdDev float64
	OtherSensor2StatusIO4Count  float64
	OtherSensor2StatusIO5Avg    float64
	OtherSensor2StatusIO5Max    float64
	OtherSensor2StatusIO5Min    float64
	OtherSensor2StatusIO5StdDev float64
	OtherSensor2StatusIO5Count  float64
	A1Avg                       float64
	A1Max                       float64
	A1Min                       float64
	A1StdDev                    float64
	A1Count                     float64
	A2Avg                       float64
	A2Max                       float64
	A2Min                       float64
	A2StdDev                    float64
	A2Count                     float64
	A3Avg                       float64
	A3Max                       float64
	A3Min                       float64
	A3StdDev                    float64
	A3Count                     float64
	A4Avg                       float64
	A4Max                       float64
	A4Min                       float64
	A4StdDev                    float64
	A4Count                     float64
	A5Avg                       float64
	A5Max                       float64
	A5Min                       float64
	A5StdDev                    float64
	A5Count                     float64
	A6Avg                       float64
	A6Max                       float64
	A6Min                       float64
	A6StdDev                    float64
	A6Count                     float64
	A7Avg                       float64
	A7Max                       float64
	A7Min                       float64
	A7StdDev                    float64
	A7Count                     float64
	A8Avg                       float64
	A8Max                       float64
	A8Min                       float64
	A8StdDev                    float64
	A8Count                     float64
	A9Avg                       float64
	A9Max                       float64
	A9Min                       float64
	A9StdDev                    float64
	A9Count                     float64
	A10Avg                      float64
	A10Max                      float64
	A10Min                      float64
	A10StdDev                   float64
	A10Count                    float64
	AC1Avg                      float64
	AC1Max                      float64
	AC1Min                      float64
	AC1StdDev                   float64
	AC1Count                    float64
	AC2Avg                      float64
	AC2Max                      float64
	AC2Min                      float64
	AC2StdDev                   float64
	AC2Count                    float64
	C1Avg                       float64
	C1Max                       float64
	C1Min                       float64
	C1StdDev                    float64
	C1Count                     float64
	C2Avg                       float64
	C2Max                       float64
	C2Min                       float64
	C2StdDev                    float64
	C2Count                     float64
	C3Avg                       float64
	C3Max                       float64
	C3Min                       float64
	C3StdDev                    float64
	C3Count                     float64
	D1Avg                       float64
	D1Max                       float64
	D1Min                       float64
	D1StdDev                    float64
	M1_1Avg                     float64
	M1_1Max                     float64
	M1_1Min                     float64
	M1_1StdDev                  float64
	M1_1Count                   float64
	M1_2Avg                     float64
	M1_2Max                     float64
	M1_2Min                     float64
	M1_2StdDev                  float64
	M1_2Count                   float64
	M1_3Avg                     float64
	M1_3Max                     float64
	M1_3Min                     float64
	M1_3StdDev                  float64
	M1_3Count                   float64
	M1_4Avg                     float64
	M1_4Max                     float64
	M1_4Min                     float64
	M1_4StdDev                  float64
	M1_4Count                   float64
	M1_5Avg                     float64
	M1_5Max                     float64
	M1_5Min                     float64
	M1_5StdDev                  float64
	M1_5Count                   float64
	M2_1Avg                     float64
	M2_1Max                     float64
	M2_1Min                     float64
	M2_1StdDev                  float64
	M2_1Count                   float64
	M2_2Avg                     float64
	M2_2Max                     float64
	M2_2Min                     float64
	M2_2StdDev                  float64
	M2_2Count                   float64
	M2_3Avg                     float64
	M2_3Max                     float64
	M2_3Min                     float64
	M2_3StdDev                  float64
	M2_3Count                   float64
	M2_4Avg                     float64
	M2_4Max                     float64
	M2_4Min                     float64
	M2_4StdDev                  float64
	M2_4Count                   float64
	M2_5Avg                     float64
	M2_5Max                     float64
	M2_5Min                     float64
	M2_5StdDev                  float64
	M2_5Count                   float64
	M2_6Avg                     float64
	M2_6Max                     float64
	M2_6Min                     float64
	M2_6StdDev                  float64
	M2_6Count                   float64
	M2_7Avg                     float64
	M2_7Max                     float64
	M2_7Min                     float64
	M2_7StdDev                  float64
	M2_7Count                   float64
	M2_8Avg                     float64
	M2_8Max                     float64
	M2_8Min                     float64
	M2_8StdDev                  float64
	M2_8Count                   float64
	VAvg                        float64
	VMax                        float64
	VMin                        float64
	IAvg                        float64
	IMax                        float64
	IMin                        float64
	T                           float64
	Addr                        float64
}

func (*MetTower) New

func (m *MetTower) New() *MetTower

func (*MetTower) RecordID

func (m *MetTower) RecordID() interface{}

func (*MetTower) TableName

func (m *MetTower) TableName() string

type Monitoring

type Monitoring struct {
	orm.ModelBase      `bson:"-",json:"-"`
	ID                 string ` bson:"_id" , json:"_id" `
	TimeStamp          time.Time
	DateInfo           DateInfo
	LastUpdate         time.Time
	LastUpdateDateInfo DateInfo
	Project            string
	Turbine            string

	Production       float64 // MWh - Energy
	WindSpeed        float64
	PerformanceIndex float64 // skip
	MachineAvail     float64 // skip
	GridAvail        float64 // skip

	RotorSpeedRPM float64
	/*===================================*/
	IsAlarm   bool
	IsWarning bool

	Type       string // Alarm, Brake, Warning
	Status     string // ok, brake, N/A
	StatusCode int    // brake : AlarmID
	StatusDesc string // brake : AlarmDescription

	PitchAngle    float64
	WindDirection float64
}

func (*Monitoring) New

func (m *Monitoring) New() *Monitoring

func (*Monitoring) RecordID

func (m *Monitoring) RecordID() interface{}

func (*Monitoring) TableName

func (m *Monitoring) TableName() string

type MonitoringEvent

type MonitoringEvent struct {
	orm.ModelBase     `bson:"-",json:"-"`
	ID                string ` bson:"_id" , json:"_id" `
	Project           string
	Turbine           string
	TimeStamp         time.Time
	TimeStampStr      string
	DateInfo          DateInfo
	GroupTimeStamp    time.Time
	GroupTimeStampStr string
	AlarmId           int
	AlarmDescription  string
	Type              string // Alarm, Brake, Warning
	Status            string /// down, up
	Duration          float64
}

func (*MonitoringEvent) New

func (m *MonitoringEvent) New() *MonitoringEvent

func (*MonitoringEvent) RecordID

func (m *MonitoringEvent) RecordID() interface{}

func (*MonitoringEvent) TableName

func (m *MonitoringEvent) TableName() string

type MonitoringNotification

type MonitoringNotification struct {
	orm.ModelBase `bson:"-",json:"-"`
	Id            string
	ProjectName   string
	Turbine       string
	GTags         string
	Tags          string
	TimeStart     time.Time
	TimeEnd       time.Time
	Duration      float64
	Status        bool
	IsError       bool
	CompareVal    float64
	Value         float64
	LastValue     float64
	NoteStart     string
	NoteEnd       string
}

func (*MonitoringNotification) New

func (*MonitoringNotification) RecordID

func (m *MonitoringNotification) RecordID() interface{}

func (*MonitoringNotification) TableName

func (m *MonitoringNotification) TableName() string

type PowerCurveModel

type PowerCurveModel struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            bson.ObjectId ` bson:"_id" , json:"_id" `
	Model         string
	WindSpeed     float64
	Power1        float64
	Standard      float64
	Engine        string
}

func (*PowerCurveModel) New

func (m *PowerCurveModel) New() *PowerCurveModel

func (*PowerCurveModel) RecordID

func (m *PowerCurveModel) RecordID() interface{}

func (*PowerCurveModel) TableName

func (m *PowerCurveModel) TableName() string

type ProjectMaster

type ProjectMaster struct {
	orm.ModelBase          `bson:"-" json:"-"`
	ID                     bson.ObjectId ` bson:"_id" json:"_id" `
	ProjectId              string
	ProjectName            string
	TotalPower             float64
	Latitude               float64
	Longitude              float64
	TotalTurbine           int
	RevenueMultiplier      float64
	State                  string
	City                   string
	SS_AirDensity          float64
	STD_AirDensity         float64
	Engine                 []string
	Forecast_Min_Cap       float64
	Forecast_Max_Cap       float64
	Forecast_Revision_Info []toolkit.M
}

func (*ProjectMaster) New

func (m *ProjectMaster) New() *ProjectMaster

func (*ProjectMaster) RecordID

func (m *ProjectMaster) RecordID() interface{}

func (*ProjectMaster) TableName

func (m *ProjectMaster) TableName() string

type ProjectOut

type ProjectOut struct {
	ProjectId         string
	Name              string
	Value             string
	Coords            []float64
	RevenueMultiplier float64
	State             string
	City              string
	NoOfTurbine       int
	TotalMaxCapacity  float64
	SS_AirDensity     float64
	STD_AirDensity    float64
	Engine            []string
	ForecastMinCap    float64
	ForecastMaxCap    float64
	ForecastRevInfos  []toolkit.M
}

type Scada10Min

type Scada10Min struct {
	orm.ModelBase `bson:"-",json:"-"`
	Id            string
	TimeStamp     time.Time
	DateInfo      DateInfo
	ProjectName   string
	Turbine       string
	IsNull        bool

	ErrorState float64
	NodeIP     float64

	ActivePower_kW        float64
	ActivePower_kW_sum    float64
	ActivePower_kW_min    float64
	ActivePower_kW_max    float64
	ActivePower_kW_stddev float64
	ActivePower_kW_count  float64

	ActivePowerCurtailmentSource        float64
	ActivePowerCurtailmentSource_sum    float64
	ActivePowerCurtailmentSource_min    float64
	ActivePowerCurtailmentSource_max    float64
	ActivePowerCurtailmentSource_stddev float64
	ActivePowerCurtailmentSource_count  float64

	ActivePowerOutPWC_kW        float64
	ActivePowerOutPWC_kW_sum    float64
	ActivePowerOutPWC_kW_min    float64
	ActivePowerOutPWC_kW_max    float64
	ActivePowerOutPWC_kW_stddev float64
	ActivePowerOutPWC_kW_count  float64

	ActivePowerOutPWCSell_kW        float64
	ActivePowerOutPWCSell_kW_sum    float64
	ActivePowerOutPWCSell_kW_min    float64
	ActivePowerOutPWCSell_kW_max    float64
	ActivePowerOutPWCSell_kW_stddev float64
	ActivePowerOutPWCSell_kW_count  float64

	ActivePowerRated_kW        float64
	ActivePowerRated_kW_sum    float64
	ActivePowerRated_kW_min    float64
	ActivePowerRated_kW_max    float64
	ActivePowerRated_kW_stddev float64
	ActivePowerRated_kW_count  float64

	ActivePowerSetpoint_kW        float64
	ActivePowerSetpoint_kW_sum    float64
	ActivePowerSetpoint_kW_min    float64
	ActivePowerSetpoint_kW_max    float64
	ActivePowerSetpoint_kW_stddev float64
	ActivePowerSetpoint_kW_count  float64

	ActivePowerSetpointPPC_kW        float64
	ActivePowerSetpointPPC_kW_sum    float64
	ActivePowerSetpointPPC_kW_min    float64
	ActivePowerSetpointPPC_kW_max    float64
	ActivePowerSetpointPPC_kW_stddev float64
	ActivePowerSetpointPPC_kW_count  float64

	AlarmCode        float64
	AlarmCode_sum    float64
	AlarmCode_min    float64
	AlarmCode_max    float64
	AlarmCode_stddev float64
	AlarmCode_count  float64

	AlarmCode_DetectTime        float64
	AlarmCode_DetectTime_sum    float64
	AlarmCode_DetectTime_min    float64
	AlarmCode_DetectTime_max    float64
	AlarmCode_DetectTime_stddev float64
	AlarmCode_DetectTime_count  float64

	CapableCapacitivePwrFactor        float64
	CapableCapacitivePwrFactor_sum    float64
	CapableCapacitivePwrFactor_min    float64
	CapableCapacitivePwrFactor_max    float64
	CapableCapacitivePwrFactor_stddev float64
	CapableCapacitivePwrFactor_count  float64

	CapableCapacitiveReactPwr_kVAr        float64
	CapableCapacitiveReactPwr_kVAr_sum    float64
	CapableCapacitiveReactPwr_kVAr_min    float64
	CapableCapacitiveReactPwr_kVAr_max    float64
	CapableCapacitiveReactPwr_kVAr_stddev float64
	CapableCapacitiveReactPwr_kVAr_count  float64

	CapableInductivePwrFactor        float64
	CapableInductivePwrFactor_sum    float64
	CapableInductivePwrFactor_min    float64
	CapableInductivePwrFactor_max    float64
	CapableInductivePwrFactor_stddev float64
	CapableInductivePwrFactor_count  float64

	CapableInductiveReactPwr_kVAr        float64
	CapableInductiveReactPwr_kVAr_sum    float64
	CapableInductiveReactPwr_kVAr_min    float64
	CapableInductiveReactPwr_kVAr_max    float64
	CapableInductiveReactPwr_kVAr_stddev float64
	CapableInductiveReactPwr_kVAr_count  float64

	CFCardSize        float64
	CFCardSize_sum    float64
	CFCardSize_min    float64
	CFCardSize_max    float64
	CFCardSize_stddev float64
	CFCardSize_count  float64

	CFCardSpaceLeft        float64
	CFCardSpaceLeft_sum    float64
	CFCardSpaceLeft_min    float64
	CFCardSpaceLeft_max    float64
	CFCardSpaceLeft_stddev float64
	CFCardSpaceLeft_count  float64

	CPU_Number        float64
	CPU_Number_sum    float64
	CPU_Number_min    float64
	CPU_Number_max    float64
	CPU_Number_stddev float64
	CPU_Number_count  float64

	CurrentL1        float64
	CurrentL1_sum    float64
	CurrentL1_min    float64
	CurrentL1_max    float64
	CurrentL1_stddev float64
	CurrentL1_count  float64

	CurrentL2        float64
	CurrentL2_sum    float64
	CurrentL2_min    float64
	CurrentL2_max    float64
	CurrentL2_stddev float64
	CurrentL2_count  float64

	CurrentL3        float64
	CurrentL3_sum    float64
	CurrentL3_min    float64
	CurrentL3_max    float64
	CurrentL3_stddev float64
	CurrentL3_count  float64

	DateTime        float64
	DateTime_sum    float64
	DateTime_min    float64
	DateTime_max    float64
	DateTime_stddev float64
	DateTime_count  float64

	DateTime_Sec        float64
	DateTime_Sec_sum    float64
	DateTime_Sec_min    float64
	DateTime_Sec_max    float64
	DateTime_Sec_stddev float64
	DateTime_Sec_count  float64

	DrTrVibValue        float64
	DrTrVibValue_sum    float64
	DrTrVibValue_min    float64
	DrTrVibValue_max    float64
	DrTrVibValue_stddev float64
	DrTrVibValue_count  float64

	Frequency_Hz        float64
	Frequency_Hz_sum    float64
	Frequency_Hz_min    float64
	Frequency_Hz_max    float64
	Frequency_Hz_stddev float64
	Frequency_Hz_count  float64

	GenSpeed_RPM        float64
	GenSpeed_RPM_sum    float64
	GenSpeed_RPM_min    float64
	GenSpeed_RPM_max    float64
	GenSpeed_RPM_stddev float64
	GenSpeed_RPM_count  float64

	NacelleDrill        float64
	NacelleDrill_sum    float64
	NacelleDrill_min    float64
	NacelleDrill_max    float64
	NacelleDrill_stddev float64
	NacelleDrill_count  float64

	NacellePos        float64
	NacellePos_sum    float64
	NacellePos_min    float64
	NacellePos_max    float64
	NacellePos_stddev float64
	NacellePos_count  float64

	PitchAccuV1        float64
	PitchAccuV1_sum    float64
	PitchAccuV1_min    float64
	PitchAccuV1_max    float64
	PitchAccuV1_stddev float64
	PitchAccuV1_count  float64

	PitchAccuV2        float64
	PitchAccuV2_sum    float64
	PitchAccuV2_min    float64
	PitchAccuV2_max    float64
	PitchAccuV2_stddev float64
	PitchAccuV2_count  float64

	PitchAccuV3        float64
	PitchAccuV3_sum    float64
	PitchAccuV3_min    float64
	PitchAccuV3_max    float64
	PitchAccuV3_stddev float64
	PitchAccuV3_count  float64

	PitchAngle        float64
	PitchAngle_sum    float64
	PitchAngle_min    float64
	PitchAngle_max    float64
	PitchAngle_stddev float64
	PitchAngle_count  float64

	PitchAngle1        float64
	PitchAngle1_sum    float64
	PitchAngle1_min    float64
	PitchAngle1_max    float64
	PitchAngle1_stddev float64
	PitchAngle1_count  float64

	PitchAngle2        float64
	PitchAngle2_sum    float64
	PitchAngle2_min    float64
	PitchAngle2_max    float64
	PitchAngle2_stddev float64
	PitchAngle2_count  float64

	PitchAngle3        float64
	PitchAngle3_sum    float64
	PitchAngle3_min    float64
	PitchAngle3_max    float64
	PitchAngle3_stddev float64
	PitchAngle3_count  float64

	PitchConvCurrent1        float64
	PitchConvCurrent1_sum    float64
	PitchConvCurrent1_min    float64
	PitchConvCurrent1_max    float64
	PitchConvCurrent1_stddev float64
	PitchConvCurrent1_count  float64

	PitchConvCurrent2        float64
	PitchConvCurrent2_sum    float64
	PitchConvCurrent2_min    float64
	PitchConvCurrent2_max    float64
	PitchConvCurrent2_stddev float64
	PitchConvCurrent2_count  float64

	PitchConvCurrent3        float64
	PitchConvCurrent3_sum    float64
	PitchConvCurrent3_min    float64
	PitchConvCurrent3_max    float64
	PitchConvCurrent3_stddev float64
	PitchConvCurrent3_count  float64

	PitchSpeed1        float64
	PitchSpeed1_sum    float64
	PitchSpeed1_min    float64
	PitchSpeed1_max    float64
	PitchSpeed1_stddev float64
	PitchSpeed1_count  float64

	PowerFactor        float64
	PowerFactor_sum    float64
	PowerFactor_min    float64
	PowerFactor_max    float64
	PowerFactor_stddev float64
	PowerFactor_count  float64

	RatedPower        float64
	RatedPower_sum    float64
	RatedPower_min    float64
	RatedPower_max    float64
	RatedPower_stddev float64
	RatedPower_count  float64

	ReactivePower_kVAr        float64
	ReactivePower_kVAr_sum    float64
	ReactivePower_kVAr_min    float64
	ReactivePower_kVAr_max    float64
	ReactivePower_kVAr_stddev float64
	ReactivePower_kVAr_count  float64

	ReactivePowerSetpointPPC_kVAr        float64
	ReactivePowerSetpointPPC_kVAr_sum    float64
	ReactivePowerSetpointPPC_kVAr_min    float64
	ReactivePowerSetpointPPC_kVAr_max    float64
	ReactivePowerSetpointPPC_kVAr_stddev float64
	ReactivePowerSetpointPPC_kVAr_count  float64

	ReturnHeartbeat        float64
	ReturnHeartbeat_sum    float64
	ReturnHeartbeat_min    float64
	ReturnHeartbeat_max    float64
	ReturnHeartbeat_stddev float64
	ReturnHeartbeat_count  float64

	RotorSpeed_RPM        float64
	RotorSpeed_RPM_sum    float64
	RotorSpeed_RPM_min    float64
	RotorSpeed_RPM_max    float64
	RotorSpeed_RPM_stddev float64
	RotorSpeed_RPM_count  float64

	SoftwareRelease        float64
	SoftwareRelease_sum    float64
	SoftwareRelease_min    float64
	SoftwareRelease_max    float64
	SoftwareRelease_stddev float64
	SoftwareRelease_count  float64

	TempBottomCapSection        float64
	TempBottomCapSection_sum    float64
	TempBottomCapSection_min    float64
	TempBottomCapSection_max    float64
	TempBottomCapSection_stddev float64
	TempBottomCapSection_count  float64

	TempBottomControlSection        float64
	TempBottomControlSection_sum    float64
	TempBottomControlSection_min    float64
	TempBottomControlSection_max    float64
	TempBottomControlSection_stddev float64
	TempBottomControlSection_count  float64

	TempBottomPowerSection        float64
	TempBottomPowerSection_sum    float64
	TempBottomPowerSection_min    float64
	TempBottomPowerSection_max    float64
	TempBottomPowerSection_stddev float64
	TempBottomPowerSection_count  float64

	TempCabinetTopBox        float64
	TempCabinetTopBox_sum    float64
	TempCabinetTopBox_min    float64
	TempCabinetTopBox_max    float64
	TempCabinetTopBox_stddev float64
	TempCabinetTopBox_count  float64

	TempConv1        float64
	TempConv1_sum    float64
	TempConv1_min    float64
	TempConv1_max    float64
	TempConv1_stddev float64
	TempConv1_count  float64

	TempConv2        float64
	TempConv2_sum    float64
	TempConv2_min    float64
	TempConv2_max    float64
	TempConv2_stddev float64
	TempConv2_count  float64

	TempConv3        float64
	TempConv3_sum    float64
	TempConv3_min    float64
	TempConv3_max    float64
	TempConv3_stddev float64
	TempConv3_count  float64

	TempG1L1        float64
	TempG1L1_sum    float64
	TempG1L1_min    float64
	TempG1L1_max    float64
	TempG1L1_stddev float64
	TempG1L1_count  float64

	TempG1L2        float64
	TempG1L2_sum    float64
	TempG1L2_min    float64
	TempG1L2_max    float64
	TempG1L2_stddev float64
	TempG1L2_count  float64

	TempG1L3        float64
	TempG1L3_sum    float64
	TempG1L3_min    float64
	TempG1L3_max    float64
	TempG1L3_stddev float64
	TempG1L3_count  float64

	TempGearBoxHSSDE        float64
	TempGearBoxHSSDE_sum    float64
	TempGearBoxHSSDE_min    float64
	TempGearBoxHSSDE_max    float64
	TempGearBoxHSSDE_stddev float64
	TempGearBoxHSSDE_count  float64

	TempGearBoxHSSNDE        float64
	TempGearBoxHSSNDE_sum    float64
	TempGearBoxHSSNDE_min    float64
	TempGearBoxHSSNDE_max    float64
	TempGearBoxHSSNDE_stddev float64
	TempGearBoxHSSNDE_count  float64

	TempGearBoxIMSDE        float64
	TempGearBoxIMSDE_sum    float64
	TempGearBoxIMSDE_min    float64
	TempGearBoxIMSDE_max    float64
	TempGearBoxIMSDE_stddev float64
	TempGearBoxIMSDE_count  float64

	TempGearBoxIMSNDE        float64
	TempGearBoxIMSNDE_sum    float64
	TempGearBoxIMSNDE_min    float64
	TempGearBoxIMSNDE_max    float64
	TempGearBoxIMSNDE_stddev float64
	TempGearBoxIMSNDE_count  float64

	TempGearBoxOilSump        float64
	TempGearBoxOilSump_sum    float64
	TempGearBoxOilSump_min    float64
	TempGearBoxOilSump_max    float64
	TempGearBoxOilSump_stddev float64
	TempGearBoxOilSump_count  float64

	TempGeneratorBearingDE        float64
	TempGeneratorBearingDE_sum    float64
	TempGeneratorBearingDE_min    float64
	TempGeneratorBearingDE_max    float64
	TempGeneratorBearingDE_stddev float64
	TempGeneratorBearingDE_count  float64

	TempGeneratorBearingNDE        float64
	TempGeneratorBearingNDE_sum    float64
	TempGeneratorBearingNDE_min    float64
	TempGeneratorBearingNDE_max    float64
	TempGeneratorBearingNDE_stddev float64
	TempGeneratorBearingNDE_count  float64

	TempHubBearing        float64
	TempHubBearing_sum    float64
	TempHubBearing_min    float64
	TempHubBearing_max    float64
	TempHubBearing_stddev float64
	TempHubBearing_count  float64

	TempNacelle        float64
	TempNacelle_sum    float64
	TempNacelle_min    float64
	TempNacelle_max    float64
	TempNacelle_stddev float64
	TempNacelle_count  float64

	TempOutdoor        float64
	TempOutdoor_sum    float64
	TempOutdoor_min    float64
	TempOutdoor_max    float64
	TempOutdoor_stddev float64
	TempOutdoor_count  float64

	Total_Access_hrs        float64
	Total_Access_hrs_sum    float64
	Total_Access_hrs_min    float64
	Total_Access_hrs_max    float64
	Total_Access_hrs_stddev float64
	Total_Access_hrs_count  float64

	Total_Grid_OK_hrs        float64
	Total_Grid_OK_hrs_sum    float64
	Total_Grid_OK_hrs_min    float64
	Total_Grid_OK_hrs_max    float64
	Total_Grid_OK_hrs_stddev float64
	Total_Grid_OK_hrs_count  float64

	Total_Operating_hrs        float64
	Total_Operating_hrs_sum    float64
	Total_Operating_hrs_min    float64
	Total_Operating_hrs_max    float64
	Total_Operating_hrs_stddev float64
	Total_Operating_hrs_count  float64

	Total_Prod_Day_kWh        float64
	Total_Prod_Day_kWh_sum    float64
	Total_Prod_Day_kWh_min    float64
	Total_Prod_Day_kWh_max    float64
	Total_Prod_Day_kWh_stddev float64
	Total_Prod_Day_kWh_count  float64

	Total_Prod_Month_kWh        float64
	Total_Prod_Month_kWh_sum    float64
	Total_Prod_Month_kWh_min    float64
	Total_Prod_Month_kWh_max    float64
	Total_Prod_Month_kWh_stddev float64
	Total_Prod_Month_kWh_count  float64

	Total_Production_kWh        float64
	Total_Production_kWh_sum    float64
	Total_Production_kWh_min    float64
	Total_Production_kWh_max    float64
	Total_Production_kWh_stddev float64
	Total_Production_kWh_count  float64

	Total_WTG_OK_hrs        float64
	Total_WTG_OK_hrs_sum    float64
	Total_WTG_OK_hrs_min    float64
	Total_WTG_OK_hrs_max    float64
	Total_WTG_OK_hrs_stddev float64
	Total_WTG_OK_hrs_count  float64

	TotalActPowerIn_kWh        float64
	TotalActPowerIn_kWh_sum    float64
	TotalActPowerIn_kWh_min    float64
	TotalActPowerIn_kWh_max    float64
	TotalActPowerIn_kWh_stddev float64
	TotalActPowerIn_kWh_count  float64

	TotalActPowerInG1_kWh        float64
	TotalActPowerInG1_kWh_sum    float64
	TotalActPowerInG1_kWh_min    float64
	TotalActPowerInG1_kWh_max    float64
	TotalActPowerInG1_kWh_stddev float64
	TotalActPowerInG1_kWh_count  float64

	TotalActPowerInG2_kWh        float64
	TotalActPowerInG2_kWh_sum    float64
	TotalActPowerInG2_kWh_min    float64
	TotalActPowerInG2_kWh_max    float64
	TotalActPowerInG2_kWh_stddev float64
	TotalActPowerInG2_kWh_count  float64

	TotalActPowerOut_kWh        float64
	TotalActPowerOut_kWh_sum    float64
	TotalActPowerOut_kWh_min    float64
	TotalActPowerOut_kWh_max    float64
	TotalActPowerOut_kWh_stddev float64
	TotalActPowerOut_kWh_count  float64

	TotalActPowerOutG1_kWh        float64
	TotalActPowerOutG1_kWh_sum    float64
	TotalActPowerOutG1_kWh_min    float64
	TotalActPowerOutG1_kWh_max    float64
	TotalActPowerOutG1_kWh_stddev float64
	TotalActPowerOutG1_kWh_count  float64

	TotalActPowerOutG2_kWh        float64
	TotalActPowerOutG2_kWh_sum    float64
	TotalActPowerOutG2_kWh_min    float64
	TotalActPowerOutG2_kWh_max    float64
	TotalActPowerOutG2_kWh_stddev float64
	TotalActPowerOutG2_kWh_count  float64

	TotalG1ActiveHours        float64
	TotalG1ActiveHours_sum    float64
	TotalG1ActiveHours_min    float64
	TotalG1ActiveHours_max    float64
	TotalG1ActiveHours_stddev float64
	TotalG1ActiveHours_count  float64

	TotalG2ActiveHours        float64
	TotalG2ActiveHours_sum    float64
	TotalG2ActiveHours_min    float64
	TotalG2ActiveHours_max    float64
	TotalG2ActiveHours_stddev float64
	TotalG2ActiveHours_count  float64

	TotalGridOkHours        float64
	TotalGridOkHours_sum    float64
	TotalGridOkHours_min    float64
	TotalGridOkHours_max    float64
	TotalGridOkHours_stddev float64
	TotalGridOkHours_count  float64

	TotalReactPowerIn_kVArh        float64
	TotalReactPowerIn_kVArh_sum    float64
	TotalReactPowerIn_kVArh_min    float64
	TotalReactPowerIn_kVArh_max    float64
	TotalReactPowerIn_kVArh_stddev float64
	TotalReactPowerIn_kVArh_count  float64

	TotalReactPowerInG1_kVArh        float64
	TotalReactPowerInG1_kVArh_sum    float64
	TotalReactPowerInG1_kVArh_min    float64
	TotalReactPowerInG1_kVArh_max    float64
	TotalReactPowerInG1_kVArh_stddev float64
	TotalReactPowerInG1_kVArh_count  float64

	TotalReactPowerInG2_kVArh        float64
	TotalReactPowerInG2_kVArh_sum    float64
	TotalReactPowerInG2_kVArh_min    float64
	TotalReactPowerInG2_kVArh_max    float64
	TotalReactPowerInG2_kVArh_stddev float64
	TotalReactPowerInG2_kVArh_count  float64

	TotalReactPowerOut_kVArh        float64
	TotalReactPowerOut_kVArh_sum    float64
	TotalReactPowerOut_kVArh_min    float64
	TotalReactPowerOut_kVArh_max    float64
	TotalReactPowerOut_kVArh_stddev float64
	TotalReactPowerOut_kVArh_count  float64

	TotalReactPowerOutG1_kVArh        float64
	TotalReactPowerOutG1_kVArh_sum    float64
	TotalReactPowerOutG1_kVArh_min    float64
	TotalReactPowerOutG1_kVArh_max    float64
	TotalReactPowerOutG1_kVArh_stddev float64
	TotalReactPowerOutG1_kVArh_count  float64

	TotalReactPowerOutG2_kVArh        float64
	TotalReactPowerOutG2_kVArh_sum    float64
	TotalReactPowerOutG2_kVArh_min    float64
	TotalReactPowerOutG2_kVArh_max    float64
	TotalReactPowerOutG2_kVArh_stddev float64
	TotalReactPowerOutG2_kVArh_count  float64

	TotalTurbineActiveHours        float64
	TotalTurbineActiveHours_sum    float64
	TotalTurbineActiveHours_min    float64
	TotalTurbineActiveHours_max    float64
	TotalTurbineActiveHours_stddev float64
	TotalTurbineActiveHours_count  float64

	TotalTurbineOKHours        float64
	TotalTurbineOKHours_sum    float64
	TotalTurbineOKHours_min    float64
	TotalTurbineOKHours_max    float64
	TotalTurbineOKHours_stddev float64
	TotalTurbineOKHours_count  float64

	TotalTurbineTimeAllHours        float64
	TotalTurbineTimeAllHours_sum    float64
	TotalTurbineTimeAllHours_min    float64
	TotalTurbineTimeAllHours_max    float64
	TotalTurbineTimeAllHours_stddev float64
	TotalTurbineTimeAllHours_count  float64

	TurbineState        float64
	TurbineState_sum    float64
	TurbineState_min    float64
	TurbineState_max    float64
	TurbineState_stddev float64
	TurbineState_count  float64

	UTCoffset        float64
	UTCoffset_sum    float64
	UTCoffset_min    float64
	UTCoffset_max    float64
	UTCoffset_stddev float64
	UTCoffset_count  float64

	UTCoffset_int        float64
	UTCoffset_int_sum    float64
	UTCoffset_int_min    float64
	UTCoffset_int_max    float64
	UTCoffset_int_stddev float64
	UTCoffset_int_count  float64

	VoltageL1        float64
	VoltageL1_sum    float64
	VoltageL1_min    float64
	VoltageL1_max    float64
	VoltageL1_stddev float64
	VoltageL1_count  float64

	VoltageL2        float64
	VoltageL2_sum    float64
	VoltageL2_min    float64
	VoltageL2_max    float64
	VoltageL2_stddev float64
	VoltageL2_count  float64

	VoltageL3        float64
	VoltageL3_sum    float64
	VoltageL3_min    float64
	VoltageL3_max    float64
	VoltageL3_stddev float64
	VoltageL3_count  float64

	WindDirection        float64
	WindDirection_sum    float64
	WindDirection_min    float64
	WindDirection_max    float64
	WindDirection_stddev float64
	WindDirection_count  float64

	WindSpeed_ms        float64
	WindSpeed_ms_sum    float64
	WindSpeed_ms_min    float64
	WindSpeed_ms_max    float64
	WindSpeed_ms_stddev float64
	WindSpeed_ms_count  float64
	WindSpeed_ms_bin    float64

	YawAngle        float64
	YawAngle_sum    float64
	YawAngle_min    float64
	YawAngle_max    float64
	YawAngle_stddev float64
	YawAngle_count  float64

	YawService        float64
	YawService_sum    float64
	YawService_min    float64
	YawService_max    float64
	YawService_stddev float64
	YawService_count  float64
}

func (*Scada10Min) New

func (m *Scada10Min) New() *Scada10Min

func (*Scada10Min) RecordID

func (m *Scada10Min) RecordID() interface{}

func (*Scada10Min) TableName

func (m *Scada10Min) TableName() string

type ScadaAlarmAnomaly

type ScadaAlarmAnomaly struct {
	orm.ModelBase             `bson:"-",json:"-"`
	ID                        bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo                  DateInfo
	TimeStamp                 time.Time
	Turbine                   string
	GridFrequency             float64
	ReactivePower             float64
	AlarmExtStopTime          float64
	AlarmGridDownTime         float64
	AlarmInterLineDown        float64
	AlarmMachDownTime         float64
	AlarmOkTime               float64
	AlarmUnknownTime          float64
	AlarmWeatherStop          float64
	ExternalStopTime          float64
	GridDownTime              float64
	GridOkSecs                float64
	InternalLineDown          float64
	MachineDownTime           float64
	OkSecs                    float64
	OkTime                    float64
	UnknownTime               float64
	WeatherStopTime           float64
	GeneratorRPM              float64
	NacelleYawPositionUntwist float64
	NacelleTemperature        float64
	AdjWindSpeed              float64
	AmbientTemperature        float64
	AvgBladeAngle             float64
	AvgWindSpeed              float64
	UnitsGenerated            float64
	EstimatedPower            float64
	NacelDirection            float64
	Power                     float64
	PowerLost                 float64
	RotorRPM                  float64
	WindDirection             float64
	Line                      int
	IsValidTimeDuration       bool
	TotalTime                 float64
	Minutes                   int
	ProjectName               string
	Available                 int
}

func (*ScadaAlarmAnomaly) New

func (*ScadaAlarmAnomaly) RecordID

func (m *ScadaAlarmAnomaly) RecordID() interface{}

func (*ScadaAlarmAnomaly) TableName

func (m *ScadaAlarmAnomaly) TableName() string

type ScadaClean

type ScadaClean struct {
	orm.ModelBase             `bson:"-",json:"-"`
	ID                        bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo                  DateInfo
	TimeStamp                 time.Time
	Turbine                   string
	GridFrequency             float64
	ReactivePower             float64
	AlarmExtStopTime          float64
	AlarmGridDownTime         float64
	AlarmInterLineDown        float64
	AlarmMachDownTime         float64
	AlarmOkTime               float64
	AlarmUnknownTime          float64
	AlarmWeatherStop          float64
	ExternalStopTime          float64
	GridDownTime              float64
	GridOkSecs                float64
	InternalLineDown          float64
	MachineDownTime           float64
	OkSecs                    float64
	OkTime                    float64
	UnknownTime               float64
	WeatherStopTime           float64
	GeneratorRPM              float64
	NacelleYawPositionUntwist float64
	NacelleTemperature        float64
	AdjWindSpeed              float64
	AmbientTemperature        float64
	AvgBladeAngle             float64
	AvgWindSpeed              float64
	UnitsGenerated            float64
	EstimatedPower            float64
	NacelDirection            float64
	Power                     float64
	PowerLost                 float64
	RotorRPM                  float64
	WindDirection             float64
	Line                      int
	IsValidTimeDuration       bool
	TotalTime                 float64
	Minutes                   int
	ProjectName               string
	Available                 int
}

func (*ScadaClean) New

func (m *ScadaClean) New() *ScadaClean

func (*ScadaClean) RecordID

func (m *ScadaClean) RecordID() interface{}

func (*ScadaClean) TableName

func (m *ScadaClean) TableName() string

type ScadaConvTenMin

type ScadaConvTenMin struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	TimeStamp     time.Time
	TimeStampInt  int64
	DateInfo      DateInfo
	ProjectName   string
	Turbine       string
	IsNull        bool

	Fast_ActivePower_kW        float64
	Fast_ActivePower_kW_StdDev float64
	Fast_ActivePower_kW_Min    float64
	Fast_ActivePower_kW_Max    float64
	Fast_ActivePower_kW_Count  int

	Fast_WindSpeed_bin       float64
	Fast_WindSpeed_ms        float64
	Fast_WindSpeed_ms_StdDev float64
	Fast_WindSpeed_ms_Min    float64
	Fast_WindSpeed_ms_Max    float64
	Fast_WindSpeed_ms_Count  int

	Slow_NacellePos        float64
	Slow_NacellePos_StdDev float64
	Slow_NacellePos_Min    float64
	Slow_NacellePos_Max    float64
	Slow_NacellePos_Count  int

	Slow_WindDirection        float64
	Slow_WindDirection_StdDev float64
	Slow_WindDirection_Min    float64
	Slow_WindDirection_Max    float64
	Slow_WindDirection_Count  int

	Fast_CurrentL3        float64
	Fast_CurrentL3_StdDev float64
	Fast_CurrentL3_Min    float64
	Fast_CurrentL3_Max    float64
	Fast_CurrentL3_Count  int

	Fast_CurrentL1        float64
	Fast_CurrentL1_StdDev float64
	Fast_CurrentL1_Min    float64
	Fast_CurrentL1_Max    float64
	Fast_CurrentL1_Count  int

	Fast_ActivePowerSetpoint_kW        float64
	Fast_ActivePowerSetpoint_kW_StdDev float64
	Fast_ActivePowerSetpoint_kW_Min    float64
	Fast_ActivePowerSetpoint_kW_Max    float64
	Fast_ActivePowerSetpoint_kW_Count  int

	Fast_CurrentL2        float64
	Fast_CurrentL2_StdDev float64
	Fast_CurrentL2_Min    float64
	Fast_CurrentL2_Max    float64
	Fast_CurrentL2_Count  int

	Fast_DrTrVibValue        float64
	Fast_DrTrVibValue_StdDev float64
	Fast_DrTrVibValue_Min    float64
	Fast_DrTrVibValue_Max    float64
	Fast_DrTrVibValue_Count  int

	Fast_GenSpeed_RPM        float64
	Fast_GenSpeed_RPM_StdDev float64
	Fast_GenSpeed_RPM_Min    float64
	Fast_GenSpeed_RPM_Max    float64
	Fast_GenSpeed_RPM_Count  int

	Fast_PitchAccuV1        float64
	Fast_PitchAccuV1_StdDev float64
	Fast_PitchAccuV1_Min    float64
	Fast_PitchAccuV1_Max    float64
	Fast_PitchAccuV1_Count  int

	Fast_PitchAngle        float64
	Fast_PitchAngle_StdDev float64
	Fast_PitchAngle_Min    float64
	Fast_PitchAngle_Max    float64
	Fast_PitchAngle_Count  int

	Fast_PitchAngle3        float64
	Fast_PitchAngle3_StdDev float64
	Fast_PitchAngle3_Min    float64
	Fast_PitchAngle3_Max    float64
	Fast_PitchAngle3_Count  int

	Fast_PitchAngle2        float64
	Fast_PitchAngle2_StdDev float64
	Fast_PitchAngle2_Min    float64
	Fast_PitchAngle2_Max    float64
	Fast_PitchAngle2_Count  int

	Fast_PitchConvCurrent1        float64
	Fast_PitchConvCurrent1_StdDev float64
	Fast_PitchConvCurrent1_Min    float64
	Fast_PitchConvCurrent1_Max    float64
	Fast_PitchConvCurrent1_Count  int

	Fast_PitchConvCurrent3        float64
	Fast_PitchConvCurrent3_StdDev float64
	Fast_PitchConvCurrent3_Min    float64
	Fast_PitchConvCurrent3_Max    float64
	Fast_PitchConvCurrent3_Count  int

	Fast_PitchConvCurrent2        float64
	Fast_PitchConvCurrent2_StdDev float64
	Fast_PitchConvCurrent2_Min    float64
	Fast_PitchConvCurrent2_Max    float64
	Fast_PitchConvCurrent2_Count  int

	Fast_PowerFactor        float64
	Fast_PowerFactor_StdDev float64
	Fast_PowerFactor_Min    float64
	Fast_PowerFactor_Max    float64
	Fast_PowerFactor_Count  int

	Fast_ReactivePowerSetpointPPC_kVA        float64
	Fast_ReactivePowerSetpointPPC_kVA_StdDev float64
	Fast_ReactivePowerSetpointPPC_kVA_Min    float64
	Fast_ReactivePowerSetpointPPC_kVA_Max    float64
	Fast_ReactivePowerSetpointPPC_kVA_Count  int

	Fast_ReactivePower_kVAr        float64
	Fast_ReactivePower_kVAr_StdDev float64
	Fast_ReactivePower_kVAr_Min    float64
	Fast_ReactivePower_kVAr_Max    float64
	Fast_ReactivePower_kVAr_Count  int

	Fast_RotorSpeed_RPM        float64
	Fast_RotorSpeed_RPM_StdDev float64
	Fast_RotorSpeed_RPM_Min    float64
	Fast_RotorSpeed_RPM_Max    float64
	Fast_RotorSpeed_RPM_Count  int

	Fast_VoltageL1        float64
	Fast_VoltageL1_StdDev float64
	Fast_VoltageL1_Min    float64
	Fast_VoltageL1_Max    float64
	Fast_VoltageL1_Count  int

	Fast_VoltageL2        float64
	Fast_VoltageL2_StdDev float64
	Fast_VoltageL2_Min    float64
	Fast_VoltageL2_Max    float64
	Fast_VoltageL2_Count  int

	Slow_CapableCapacitiveReactPwr_kVAr        float64
	Slow_CapableCapacitiveReactPwr_kVAr_StdDev float64
	Slow_CapableCapacitiveReactPwr_kVAr_Min    float64
	Slow_CapableCapacitiveReactPwr_kVAr_Max    float64
	Slow_CapableCapacitiveReactPwr_kVAr_Count  int

	Slow_CapableInductiveReactPwr_kVAr        float64
	Slow_CapableInductiveReactPwr_kVAr_StdDev float64
	Slow_CapableInductiveReactPwr_kVAr_Min    float64
	Slow_CapableInductiveReactPwr_kVAr_Max    float64
	Slow_CapableInductiveReactPwr_kVAr_Count  int

	Slow_DateTime_Sec        float64
	Slow_DateTime_Sec_StdDev float64
	Slow_DateTime_Sec_Min    float64
	Slow_DateTime_Sec_Max    float64
	Slow_DateTime_Sec_Count  int

	Fast_PitchAngle1        float64
	Fast_PitchAngle1_StdDev float64
	Fast_PitchAngle1_Min    float64
	Fast_PitchAngle1_Max    float64
	Fast_PitchAngle1_Count  int

	Fast_VoltageL3        float64
	Fast_VoltageL3_StdDev float64
	Fast_VoltageL3_Min    float64
	Fast_VoltageL3_Max    float64
	Fast_VoltageL3_Count  int

	Slow_CapableCapacitivePwrFactor        float64
	Slow_CapableCapacitivePwrFactor_StdDev float64
	Slow_CapableCapacitivePwrFactor_Min    float64
	Slow_CapableCapacitivePwrFactor_Max    float64
	Slow_CapableCapacitivePwrFactor_Count  int

	Fast_Total_Production_kWh        float64
	Fast_Total_Production_kWh_StdDev float64
	Fast_Total_Production_kWh_Min    float64
	Fast_Total_Production_kWh_Max    float64
	Fast_Total_Production_kWh_Count  int

	Fast_Total_Prod_Day_kWh        float64
	Fast_Total_Prod_Day_kWh_StdDev float64
	Fast_Total_Prod_Day_kWh_Min    float64
	Fast_Total_Prod_Day_kWh_Max    float64
	Fast_Total_Prod_Day_kWh_Count  int

	Fast_Total_Prod_Month_kWh        float64
	Fast_Total_Prod_Month_kWh_StdDev float64
	Fast_Total_Prod_Month_kWh_Min    float64
	Fast_Total_Prod_Month_kWh_Max    float64
	Fast_Total_Prod_Month_kWh_Count  int

	Fast_ActivePowerOutPWCSell_kW        float64
	Fast_ActivePowerOutPWCSell_kW_StdDev float64
	Fast_ActivePowerOutPWCSell_kW_Min    float64
	Fast_ActivePowerOutPWCSell_kW_Max    float64
	Fast_ActivePowerOutPWCSell_kW_Count  int

	Fast_Frequency_Hz        float64
	Fast_Frequency_Hz_StdDev float64
	Fast_Frequency_Hz_Min    float64
	Fast_Frequency_Hz_Max    float64
	Fast_Frequency_Hz_Count  int

	Slow_TempG1L2        float64
	Slow_TempG1L2_StdDev float64
	Slow_TempG1L2_Min    float64
	Slow_TempG1L2_Max    float64
	Slow_TempG1L2_Count  int

	Slow_TempG1L3        float64
	Slow_TempG1L3_StdDev float64
	Slow_TempG1L3_Min    float64
	Slow_TempG1L3_Max    float64
	Slow_TempG1L3_Count  int

	Slow_TempGearBoxHSSDE        float64
	Slow_TempGearBoxHSSDE_StdDev float64
	Slow_TempGearBoxHSSDE_Min    float64
	Slow_TempGearBoxHSSDE_Max    float64
	Slow_TempGearBoxHSSDE_Count  int

	Slow_TempGearBoxIMSNDE        float64
	Slow_TempGearBoxIMSNDE_StdDev float64
	Slow_TempGearBoxIMSNDE_Min    float64
	Slow_TempGearBoxIMSNDE_Max    float64
	Slow_TempGearBoxIMSNDE_Count  int

	Slow_TempOutdoor        float64
	Slow_TempOutdoor_StdDev float64
	Slow_TempOutdoor_Min    float64
	Slow_TempOutdoor_Max    float64
	Slow_TempOutdoor_Count  int

	Fast_PitchAccuV3        float64
	Fast_PitchAccuV3_StdDev float64
	Fast_PitchAccuV3_Min    float64
	Fast_PitchAccuV3_Max    float64
	Fast_PitchAccuV3_Count  int

	Slow_TotalTurbineActiveHours        float64
	Slow_TotalTurbineActiveHours_StdDev float64
	Slow_TotalTurbineActiveHours_Min    float64
	Slow_TotalTurbineActiveHours_Max    float64
	Slow_TotalTurbineActiveHours_Count  int

	Slow_TotalTurbineOKHours        float64
	Slow_TotalTurbineOKHours_StdDev float64
	Slow_TotalTurbineOKHours_Min    float64
	Slow_TotalTurbineOKHours_Max    float64
	Slow_TotalTurbineOKHours_Count  int

	Slow_TotalTurbineTimeAllHours        float64
	Slow_TotalTurbineTimeAllHours_StdDev float64
	Slow_TotalTurbineTimeAllHours_Min    float64
	Slow_TotalTurbineTimeAllHours_Max    float64
	Slow_TotalTurbineTimeAllHours_Count  int

	Slow_TempG1L1        float64
	Slow_TempG1L1_StdDev float64
	Slow_TempG1L1_Min    float64
	Slow_TempG1L1_Max    float64
	Slow_TempG1L1_Count  int

	Slow_TempGearBoxOilSump        float64
	Slow_TempGearBoxOilSump_StdDev float64
	Slow_TempGearBoxOilSump_Min    float64
	Slow_TempGearBoxOilSump_Max    float64
	Slow_TempGearBoxOilSump_Count  int

	Fast_PitchAccuV2        float64
	Fast_PitchAccuV2_StdDev float64
	Fast_PitchAccuV2_Min    float64
	Fast_PitchAccuV2_Max    float64
	Fast_PitchAccuV2_Count  int

	Slow_TotalGridOkHours        float64
	Slow_TotalGridOkHours_StdDev float64
	Slow_TotalGridOkHours_Min    float64
	Slow_TotalGridOkHours_Max    float64
	Slow_TotalGridOkHours_Count  int

	Slow_TotalActPowerOut_kWh        float64
	Slow_TotalActPowerOut_kWh_StdDev float64
	Slow_TotalActPowerOut_kWh_Min    float64
	Slow_TotalActPowerOut_kWh_Max    float64
	Slow_TotalActPowerOut_kWh_Count  int

	Fast_YawService        float64
	Fast_YawService_StdDev float64
	Fast_YawService_Min    float64
	Fast_YawService_Max    float64
	Fast_YawService_Count  int

	Fast_YawAngle        float64
	Fast_YawAngle_StdDev float64
	Fast_YawAngle_Min    float64
	Fast_YawAngle_Max    float64
	Fast_YawAngle_Count  int

	Slow_CapableInductivePwrFactor        float64
	Slow_CapableInductivePwrFactor_StdDev float64
	Slow_CapableInductivePwrFactor_Min    float64
	Slow_CapableInductivePwrFactor_Max    float64
	Slow_CapableInductivePwrFactor_Count  int

	Slow_TempGearBoxHSSNDE        float64
	Slow_TempGearBoxHSSNDE_StdDev float64
	Slow_TempGearBoxHSSNDE_Min    float64
	Slow_TempGearBoxHSSNDE_Max    float64
	Slow_TempGearBoxHSSNDE_Count  int

	Slow_TempHubBearing        float64
	Slow_TempHubBearing_StdDev float64
	Slow_TempHubBearing_Min    float64
	Slow_TempHubBearing_Max    float64
	Slow_TempHubBearing_Count  int

	Slow_TotalG1ActiveHours        float64
	Slow_TotalG1ActiveHours_StdDev float64
	Slow_TotalG1ActiveHours_Min    float64
	Slow_TotalG1ActiveHours_Max    float64
	Slow_TotalG1ActiveHours_Count  int

	Slow_TotalActPowerOutG1_kWh        float64
	Slow_TotalActPowerOutG1_kWh_StdDev float64
	Slow_TotalActPowerOutG1_kWh_Min    float64
	Slow_TotalActPowerOutG1_kWh_Max    float64
	Slow_TotalActPowerOutG1_kWh_Count  int

	Slow_TotalReactPowerInG1_kVArh        float64
	Slow_TotalReactPowerInG1_kVArh_StdDev float64
	Slow_TotalReactPowerInG1_kVArh_Min    float64
	Slow_TotalReactPowerInG1_kVArh_Max    float64
	Slow_TotalReactPowerInG1_kVArh_Count  int

	Slow_NacelleDrill        float64
	Slow_NacelleDrill_StdDev float64
	Slow_NacelleDrill_Min    float64
	Slow_NacelleDrill_Max    float64
	Slow_NacelleDrill_Count  int

	Slow_TempGearBoxIMSDE        float64
	Slow_TempGearBoxIMSDE_StdDev float64
	Slow_TempGearBoxIMSDE_Min    float64
	Slow_TempGearBoxIMSDE_Max    float64
	Slow_TempGearBoxIMSDE_Count  int

	Fast_Total_Operating_hrs        float64
	Fast_Total_Operating_hrs_StdDev float64
	Fast_Total_Operating_hrs_Min    float64
	Fast_Total_Operating_hrs_Max    float64
	Fast_Total_Operating_hrs_Count  int

	Slow_TempNacelle        float64
	Slow_TempNacelle_StdDev float64
	Slow_TempNacelle_Min    float64
	Slow_TempNacelle_Max    float64
	Slow_TempNacelle_Count  int

	Fast_Total_Grid_OK_hrs        float64
	Fast_Total_Grid_OK_hrs_StdDev float64
	Fast_Total_Grid_OK_hrs_Min    float64
	Fast_Total_Grid_OK_hrs_Max    float64
	Fast_Total_Grid_OK_hrs_Count  int

	Fast_Total_WTG_OK_hrs        float64
	Fast_Total_WTG_OK_hrs_StdDev float64
	Fast_Total_WTG_OK_hrs_Min    float64
	Fast_Total_WTG_OK_hrs_Max    float64
	Fast_Total_WTG_OK_hrs_Count  int

	Slow_TempCabinetTopBox        float64
	Slow_TempCabinetTopBox_StdDev float64
	Slow_TempCabinetTopBox_Min    float64
	Slow_TempCabinetTopBox_Max    float64
	Slow_TempCabinetTopBox_Count  int

	Slow_TempGeneratorBearingNDE        float64
	Slow_TempGeneratorBearingNDE_StdDev float64
	Slow_TempGeneratorBearingNDE_Min    float64
	Slow_TempGeneratorBearingNDE_Max    float64
	Slow_TempGeneratorBearingNDE_Count  int

	Fast_Total_Access_hrs        float64
	Fast_Total_Access_hrs_StdDev float64
	Fast_Total_Access_hrs_Min    float64
	Fast_Total_Access_hrs_Max    float64
	Fast_Total_Access_hrs_Count  int

	Slow_TempBottomPowerSection        float64
	Slow_TempBottomPowerSection_StdDev float64
	Slow_TempBottomPowerSection_Min    float64
	Slow_TempBottomPowerSection_Max    float64
	Slow_TempBottomPowerSection_Count  int

	Slow_TempGeneratorBearingDE        float64
	Slow_TempGeneratorBearingDE_StdDev float64
	Slow_TempGeneratorBearingDE_Min    float64
	Slow_TempGeneratorBearingDE_Max    float64
	Slow_TempGeneratorBearingDE_Count  int

	Slow_TotalReactPowerIn_kVArh        float64
	Slow_TotalReactPowerIn_kVArh_StdDev float64
	Slow_TotalReactPowerIn_kVArh_Min    float64
	Slow_TotalReactPowerIn_kVArh_Max    float64
	Slow_TotalReactPowerIn_kVArh_Count  int

	Slow_TempBottomControlSection        float64
	Slow_TempBottomControlSection_StdDev float64
	Slow_TempBottomControlSection_Min    float64
	Slow_TempBottomControlSection_Max    float64
	Slow_TempBottomControlSection_Count  int

	Slow_TempConv1        float64
	Slow_TempConv1_StdDev float64
	Slow_TempConv1_Min    float64
	Slow_TempConv1_Max    float64
	Slow_TempConv1_Count  int

	Fast_ActivePowerRated_kW        float64
	Fast_ActivePowerRated_kW_StdDev float64
	Fast_ActivePowerRated_kW_Min    float64
	Fast_ActivePowerRated_kW_Max    float64
	Fast_ActivePowerRated_kW_Count  int

	Fast_NodeIP        float64
	Fast_NodeIP_StdDev float64
	Fast_NodeIP_Min    float64
	Fast_NodeIP_Max    float64
	Fast_NodeIP_Count  int

	Fast_PitchSpeed1        float64
	Fast_PitchSpeed1_StdDev float64
	Fast_PitchSpeed1_Min    float64
	Fast_PitchSpeed1_Max    float64
	Fast_PitchSpeed1_Count  int

	Slow_CFCardSize        float64
	Slow_CFCardSize_StdDev float64
	Slow_CFCardSize_Min    float64
	Slow_CFCardSize_Max    float64
	Slow_CFCardSize_Count  int

	Slow_CPU_Number        float64
	Slow_CPU_Number_StdDev float64
	Slow_CPU_Number_Min    float64
	Slow_CPU_Number_Max    float64
	Slow_CPU_Number_Count  int

	Slow_CFCardSpaceLeft        float64
	Slow_CFCardSpaceLeft_StdDev float64
	Slow_CFCardSpaceLeft_Min    float64
	Slow_CFCardSpaceLeft_Max    float64
	Slow_CFCardSpaceLeft_Count  int

	Slow_TempBottomCapSection        float64
	Slow_TempBottomCapSection_StdDev float64
	Slow_TempBottomCapSection_Min    float64
	Slow_TempBottomCapSection_Max    float64
	Slow_TempBottomCapSection_Count  int

	Slow_RatedPower        float64
	Slow_RatedPower_StdDev float64
	Slow_RatedPower_Min    float64
	Slow_RatedPower_Max    float64
	Slow_RatedPower_Count  int

	Slow_TempConv3        float64
	Slow_TempConv3_StdDev float64
	Slow_TempConv3_Min    float64
	Slow_TempConv3_Max    float64
	Slow_TempConv3_Count  int

	Slow_TempConv2        float64
	Slow_TempConv2_StdDev float64
	Slow_TempConv2_Min    float64
	Slow_TempConv2_Max    float64
	Slow_TempConv2_Count  int

	Slow_TotalActPowerIn_kWh        float64
	Slow_TotalActPowerIn_kWh_StdDev float64
	Slow_TotalActPowerIn_kWh_Min    float64
	Slow_TotalActPowerIn_kWh_Max    float64
	Slow_TotalActPowerIn_kWh_Count  int

	Slow_TotalActPowerInG1_kWh        float64
	Slow_TotalActPowerInG1_kWh_StdDev float64
	Slow_TotalActPowerInG1_kWh_Min    float64
	Slow_TotalActPowerInG1_kWh_Max    float64
	Slow_TotalActPowerInG1_kWh_Count  int

	Slow_TotalActPowerInG2_kWh        float64
	Slow_TotalActPowerInG2_kWh_StdDev float64
	Slow_TotalActPowerInG2_kWh_Min    float64
	Slow_TotalActPowerInG2_kWh_Max    float64
	Slow_TotalActPowerInG2_kWh_Count  int

	Slow_TotalActPowerOutG2_kWh        float64
	Slow_TotalActPowerOutG2_kWh_StdDev float64
	Slow_TotalActPowerOutG2_kWh_Min    float64
	Slow_TotalActPowerOutG2_kWh_Max    float64
	Slow_TotalActPowerOutG2_kWh_Count  int

	Slow_TotalG2ActiveHours        float64
	Slow_TotalG2ActiveHours_StdDev float64
	Slow_TotalG2ActiveHours_Min    float64
	Slow_TotalG2ActiveHours_Max    float64
	Slow_TotalG2ActiveHours_Count  int

	Slow_TotalReactPowerInG2_kVArh        float64
	Slow_TotalReactPowerInG2_kVArh_StdDev float64
	Slow_TotalReactPowerInG2_kVArh_Min    float64
	Slow_TotalReactPowerInG2_kVArh_Max    float64
	Slow_TotalReactPowerInG2_kVArh_Count  int

	Slow_TotalReactPowerOut_kVArh        float64
	Slow_TotalReactPowerOut_kVArh_StdDev float64
	Slow_TotalReactPowerOut_kVArh_Min    float64
	Slow_TotalReactPowerOut_kVArh_Max    float64
	Slow_TotalReactPowerOut_kVArh_Count  int

	Slow_UTCoffset_int        float64
	Slow_UTCoffset_int_StdDev float64
	Slow_UTCoffset_int_Min    float64
	Slow_UTCoffset_int_Max    float64
	Slow_UTCoffset_int_Count  int

	File  string
	No    int
	Count int
}

func (*ScadaConvTenMin) New

func (m *ScadaConvTenMin) New() *ScadaConvTenMin

func (*ScadaConvTenMin) RecordID

func (m *ScadaConvTenMin) RecordID() interface{}

func (*ScadaConvTenMin) TableName

func (m *ScadaConvTenMin) TableName() string

type ScadaData

type ScadaData struct {
	orm.ModelBase             `bson:"-" json:"-"`
	ID                        bson.ObjectId ` bson:"_id" json:"_id" `
	DateInfo                  DateInfo
	TimeStamp                 time.Time
	Turbine                   string
	GridFrequency             float64
	ReactivePower             float64
	AlarmExtStopTime          float64
	AlarmGridDownTime         float64
	AlarmInterLineDown        float64
	AlarmMachDownTime         float64
	AlarmOkTime               float64
	AlarmUnknownTime          float64
	AlarmWeatherStop          float64
	ExternalStopTime          float64
	GridDownTime              float64
	GridDownTimeAll           float64
	GridOkSecs                float64
	InternalLineDown          float64
	MachineDownTime           float64
	MachineDownTimeAll        float64
	OkSecs                    float64
	OkTime                    float64
	UnknownTime               float64
	UnknownTimeAll            float64
	WeatherStopTime           float64
	GeneratorRPM              float64
	NacelleYawPositionUntwist float64
	NacelleTemperature        float64
	AdjWindSpeed              float64
	AmbientTemperature        float64
	AvgBladeAngle             float64
	AvgWindSpeed              float64
	UnitsGenerated            float64
	EstimatedPower            float64
	EstimatedEnergy           float64 // new added on Sep 14, 2016 by ams
	NacelDirection            float64
	Power                     float64
	PowerLost                 float64
	Energy                    float64 // new added on Sep 14, 2016 by ams
	EnergyLost                float64 // new added on Sep 14, 2016 by ams
	RotorRPM                  float64
	WindDirection             float64
	Line                      int
	IsValidTimeDuration       bool
	TotalTime                 float64
	Minutes                   int
	ProjectName               string
	Available                 int
	DenValue                  float64 // new added on Sep 14, 2016 by ams
	DenPh                     float64 // new added on Sep 14, 2016 by ams
	DenWindSpeed              float64 // new added on Sep 14, 2016 by ams
	DenAdjWindSpeed           float64 // new added on Sep 14, 2016 by ams
	DenPower                  float64 // new added on Sep 14, 2016 by ams
	DenEnergy                 float64 // new added on Sep 14, 2016 by ams
	PCValue                   float64 // new added on Sep 15, 2016 by ams
	PCValueAdj                float64 // new added on Sep 15, 2016 by ams
	PCDeviation               float64 // new added on Sep 15, 2016 by ams
	WSAdjForPC                float64 // new added on Sep 16, 2016 by ams
	WSAvgForPC                float64 // new added on Sep 16, 2016 by ams
	TotalAvail                float64 // new added on Sep 27, 2016 by ams
	MachineAvail              float64 // new added on Sep 27, 2016 by ams
	GridAvail                 float64 // new added on Sep 27, 2016 by ams
	TotalAvailAll             float64 // new added on May 12, 2017 by fr
	MachineAvailAll           float64 // new added on May 12, 2017 by fr
	GridAvailAll              float64 // new added on May 12, 2017 by fr
	DenPcDeviation            float64 // new added on Sep 27, 2016 by ams
	DenDeviationPct           float64 // new added on Sep 27, 2016 by ams
	DenPcValue                float64 // new added on Sep 27, 2016 by ams
	DeviationPct              float64 // new added on Sep 27, 2016 by ams
	MTTR                      float64
	MTTF                      float64
	PerformanceIndex          float64
	NacelleDeviation          float64 //new added on Jul 24, 2017 by asp
	TurbineState              float64 //new added on Oct 12, 2017 by asp
	StateDescription          string  //new added on Oct 12, 2017 by asp
	StateStatus               string  //new added on Oct 12, 2017 by asp
	IsValidState              bool    //new added on Oct 17, 2017 by asp
}

func (*ScadaData) New

func (m *ScadaData) New() *ScadaData

func (*ScadaData) RecordID

func (m *ScadaData) RecordID() interface{}

func (*ScadaData) TableName

func (m *ScadaData) TableName() string

type ScadaDataHFD

type ScadaDataHFD struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" json:"_id" `
	TimeStamp     time.Time
	TimeStampInt  int64
	DateInfo      DateInfo
	ProjectName   string
	Turbine       string
	IsNull        bool
	TurbineState  float64

	Fast_ActivePower_kW        float64
	Fast_ActivePower_kW_StdDev float64
	Fast_ActivePower_kW_Min    float64
	Fast_ActivePower_kW_Max    float64
	Fast_ActivePower_kW_Count  int

	Fast_WindSpeed_ms        float64
	Fast_WindSpeed_ms_StdDev float64
	Fast_WindSpeed_ms_Min    float64
	Fast_WindSpeed_ms_Max    float64
	Fast_WindSpeed_ms_Count  int
	Fast_WindSpeed_Bin       float64

	Slow_NacellePos        float64
	Slow_NacellePos_StdDev float64
	Slow_NacellePos_Min    float64
	Slow_NacellePos_Max    float64
	Slow_NacellePos_Count  int

	Slow_WindDirection        float64
	Slow_WindDirection_StdDev float64
	Slow_WindDirection_Min    float64
	Slow_WindDirection_Max    float64
	Slow_WindDirection_Count  int

	Fast_CurrentL3        float64
	Fast_CurrentL3_StdDev float64
	Fast_CurrentL3_Min    float64
	Fast_CurrentL3_Max    float64
	Fast_CurrentL3_Count  int

	Fast_CurrentL1        float64
	Fast_CurrentL1_StdDev float64
	Fast_CurrentL1_Min    float64
	Fast_CurrentL1_Max    float64
	Fast_CurrentL1_Count  int

	Fast_ActivePowerSetpoint_kW        float64
	Fast_ActivePowerSetpoint_kW_StdDev float64
	Fast_ActivePowerSetpoint_kW_Min    float64
	Fast_ActivePowerSetpoint_kW_Max    float64
	Fast_ActivePowerSetpoint_kW_Count  int

	Fast_CurrentL2        float64
	Fast_CurrentL2_StdDev float64
	Fast_CurrentL2_Min    float64
	Fast_CurrentL2_Max    float64
	Fast_CurrentL2_Count  int

	Fast_DrTrVibValue        float64
	Fast_DrTrVibValue_StdDev float64
	Fast_DrTrVibValue_Min    float64
	Fast_DrTrVibValue_Max    float64
	Fast_DrTrVibValue_Count  int

	Fast_GenSpeed_RPM        float64
	Fast_GenSpeed_RPM_StdDev float64
	Fast_GenSpeed_RPM_Min    float64
	Fast_GenSpeed_RPM_Max    float64
	Fast_GenSpeed_RPM_Count  int

	Fast_PitchAccuV1        float64
	Fast_PitchAccuV1_StdDev float64
	Fast_PitchAccuV1_Min    float64
	Fast_PitchAccuV1_Max    float64
	Fast_PitchAccuV1_Count  int

	Fast_PitchAngle        float64
	Fast_PitchAngle_StdDev float64
	Fast_PitchAngle_Min    float64
	Fast_PitchAngle_Max    float64
	Fast_PitchAngle_Count  int

	Fast_PitchAngle3        float64
	Fast_PitchAngle3_StdDev float64
	Fast_PitchAngle3_Min    float64
	Fast_PitchAngle3_Max    float64
	Fast_PitchAngle3_Count  int

	Fast_PitchAngle2        float64
	Fast_PitchAngle2_StdDev float64
	Fast_PitchAngle2_Min    float64
	Fast_PitchAngle2_Max    float64
	Fast_PitchAngle2_Count  int

	Fast_PitchConvCurrent1        float64
	Fast_PitchConvCurrent1_StdDev float64
	Fast_PitchConvCurrent1_Min    float64
	Fast_PitchConvCurrent1_Max    float64
	Fast_PitchConvCurrent1_Count  int

	Fast_PitchConvCurrent3        float64
	Fast_PitchConvCurrent3_StdDev float64
	Fast_PitchConvCurrent3_Min    float64
	Fast_PitchConvCurrent3_Max    float64
	Fast_PitchConvCurrent3_Count  int

	Fast_PitchConvCurrent2        float64
	Fast_PitchConvCurrent2_StdDev float64
	Fast_PitchConvCurrent2_Min    float64
	Fast_PitchConvCurrent2_Max    float64
	Fast_PitchConvCurrent2_Count  int

	Fast_PowerFactor        float64
	Fast_PowerFactor_StdDev float64
	Fast_PowerFactor_Min    float64
	Fast_PowerFactor_Max    float64
	Fast_PowerFactor_Count  int

	Fast_ReactivePowerSetpointPPC_kVA        float64
	Fast_ReactivePowerSetpointPPC_kVA_StdDev float64
	Fast_ReactivePowerSetpointPPC_kVA_Min    float64
	Fast_ReactivePowerSetpointPPC_kVA_Max    float64
	Fast_ReactivePowerSetpointPPC_kVA_Count  int

	Fast_ReactivePower_kVAr        float64
	Fast_ReactivePower_kVAr_StdDev float64
	Fast_ReactivePower_kVAr_Min    float64
	Fast_ReactivePower_kVAr_Max    float64
	Fast_ReactivePower_kVAr_Count  int

	Fast_RotorSpeed_RPM        float64
	Fast_RotorSpeed_RPM_StdDev float64
	Fast_RotorSpeed_RPM_Min    float64
	Fast_RotorSpeed_RPM_Max    float64
	Fast_RotorSpeed_RPM_Count  int

	Fast_VoltageL1        float64
	Fast_VoltageL1_StdDev float64
	Fast_VoltageL1_Min    float64
	Fast_VoltageL1_Max    float64
	Fast_VoltageL1_Count  int

	Fast_VoltageL2        float64
	Fast_VoltageL2_StdDev float64
	Fast_VoltageL2_Min    float64
	Fast_VoltageL2_Max    float64
	Fast_VoltageL2_Count  int

	Slow_CapableCapacitiveReactPwr_kVAr        float64
	Slow_CapableCapacitiveReactPwr_kVAr_StdDev float64
	Slow_CapableCapacitiveReactPwr_kVAr_Min    float64
	Slow_CapableCapacitiveReactPwr_kVAr_Max    float64
	Slow_CapableCapacitiveReactPwr_kVAr_Count  int

	Slow_CapableInductiveReactPwr_kVAr        float64
	Slow_CapableInductiveReactPwr_kVAr_StdDev float64
	Slow_CapableInductiveReactPwr_kVAr_Min    float64
	Slow_CapableInductiveReactPwr_kVAr_Max    float64
	Slow_CapableInductiveReactPwr_kVAr_Count  int

	Slow_DateTime_Sec        float64
	Slow_DateTime_Sec_StdDev float64
	Slow_DateTime_Sec_Min    float64
	Slow_DateTime_Sec_Max    float64
	Slow_DateTime_Sec_Count  int

	Fast_PitchAngle1        float64
	Fast_PitchAngle1_StdDev float64
	Fast_PitchAngle1_Min    float64
	Fast_PitchAngle1_Max    float64
	Fast_PitchAngle1_Count  int

	Fast_VoltageL3        float64
	Fast_VoltageL3_StdDev float64
	Fast_VoltageL3_Min    float64
	Fast_VoltageL3_Max    float64
	Fast_VoltageL3_Count  int

	Slow_CapableCapacitivePwrFactor        float64
	Slow_CapableCapacitivePwrFactor_StdDev float64
	Slow_CapableCapacitivePwrFactor_Min    float64
	Slow_CapableCapacitivePwrFactor_Max    float64
	Slow_CapableCapacitivePwrFactor_Count  int

	Fast_Total_Production_kWh        float64
	Fast_Total_Production_kWh_StdDev float64
	Fast_Total_Production_kWh_Min    float64
	Fast_Total_Production_kWh_Max    float64
	Fast_Total_Production_kWh_Count  int

	Fast_Total_Prod_Day_kWh        float64
	Fast_Total_Prod_Day_kWh_StdDev float64
	Fast_Total_Prod_Day_kWh_Min    float64
	Fast_Total_Prod_Day_kWh_Max    float64
	Fast_Total_Prod_Day_kWh_Count  int

	Fast_Total_Prod_Month_kWh        float64
	Fast_Total_Prod_Month_kWh_StdDev float64
	Fast_Total_Prod_Month_kWh_Min    float64
	Fast_Total_Prod_Month_kWh_Max    float64
	Fast_Total_Prod_Month_kWh_Count  int

	Fast_ActivePowerOutPWCSell_kW        float64
	Fast_ActivePowerOutPWCSell_kW_StdDev float64
	Fast_ActivePowerOutPWCSell_kW_Min    float64
	Fast_ActivePowerOutPWCSell_kW_Max    float64
	Fast_ActivePowerOutPWCSell_kW_Count  int

	Fast_Frequency_Hz        float64
	Fast_Frequency_Hz_StdDev float64
	Fast_Frequency_Hz_Min    float64
	Fast_Frequency_Hz_Max    float64
	Fast_Frequency_Hz_Count  int

	Slow_TempG1L2        float64
	Slow_TempG1L2_StdDev float64
	Slow_TempG1L2_Min    float64
	Slow_TempG1L2_Max    float64
	Slow_TempG1L2_Count  int

	Slow_TempG1L3        float64
	Slow_TempG1L3_StdDev float64
	Slow_TempG1L3_Min    float64
	Slow_TempG1L3_Max    float64
	Slow_TempG1L3_Count  int

	Slow_TempGearBoxHSSDE        float64
	Slow_TempGearBoxHSSDE_StdDev float64
	Slow_TempGearBoxHSSDE_Min    float64
	Slow_TempGearBoxHSSDE_Max    float64
	Slow_TempGearBoxHSSDE_Count  int

	Slow_TempGearBoxIMSNDE        float64
	Slow_TempGearBoxIMSNDE_StdDev float64
	Slow_TempGearBoxIMSNDE_Min    float64
	Slow_TempGearBoxIMSNDE_Max    float64
	Slow_TempGearBoxIMSNDE_Count  int

	Slow_TempOutdoor        float64
	Slow_TempOutdoor_StdDev float64
	Slow_TempOutdoor_Min    float64
	Slow_TempOutdoor_Max    float64
	Slow_TempOutdoor_Count  int

	Fast_PitchAccuV3        float64
	Fast_PitchAccuV3_StdDev float64
	Fast_PitchAccuV3_Min    float64
	Fast_PitchAccuV3_Max    float64
	Fast_PitchAccuV3_Count  int

	Slow_TotalTurbineActiveHours        float64
	Slow_TotalTurbineActiveHours_StdDev float64
	Slow_TotalTurbineActiveHours_Min    float64
	Slow_TotalTurbineActiveHours_Max    float64
	Slow_TotalTurbineActiveHours_Count  int

	Slow_TotalTurbineOKHours        float64
	Slow_TotalTurbineOKHours_StdDev float64
	Slow_TotalTurbineOKHours_Min    float64
	Slow_TotalTurbineOKHours_Max    float64
	Slow_TotalTurbineOKHours_Count  int

	Slow_TotalTurbineTimeAllHours        float64
	Slow_TotalTurbineTimeAllHours_StdDev float64
	Slow_TotalTurbineTimeAllHours_Min    float64
	Slow_TotalTurbineTimeAllHours_Max    float64
	Slow_TotalTurbineTimeAllHours_Count  int

	Slow_TempG1L1        float64
	Slow_TempG1L1_StdDev float64
	Slow_TempG1L1_Min    float64
	Slow_TempG1L1_Max    float64
	Slow_TempG1L1_Count  int

	Slow_TempGearBoxOilSump        float64
	Slow_TempGearBoxOilSump_StdDev float64
	Slow_TempGearBoxOilSump_Min    float64
	Slow_TempGearBoxOilSump_Max    float64
	Slow_TempGearBoxOilSump_Count  int

	Fast_PitchAccuV2        float64
	Fast_PitchAccuV2_StdDev float64
	Fast_PitchAccuV2_Min    float64
	Fast_PitchAccuV2_Max    float64
	Fast_PitchAccuV2_Count  int

	Slow_TotalGridOkHours        float64
	Slow_TotalGridOkHours_StdDev float64
	Slow_TotalGridOkHours_Min    float64
	Slow_TotalGridOkHours_Max    float64
	Slow_TotalGridOkHours_Count  int

	Slow_TotalActPowerOut_kWh        float64
	Slow_TotalActPowerOut_kWh_StdDev float64
	Slow_TotalActPowerOut_kWh_Min    float64
	Slow_TotalActPowerOut_kWh_Max    float64
	Slow_TotalActPowerOut_kWh_Count  int

	Fast_YawService        float64
	Fast_YawService_StdDev float64
	Fast_YawService_Min    float64
	Fast_YawService_Max    float64
	Fast_YawService_Count  int

	Fast_YawAngle        float64
	Fast_YawAngle_StdDev float64
	Fast_YawAngle_Min    float64
	Fast_YawAngle_Max    float64
	Fast_YawAngle_Count  int

	Slow_CapableInductivePwrFactor        float64
	Slow_CapableInductivePwrFactor_StdDev float64
	Slow_CapableInductivePwrFactor_Min    float64
	Slow_CapableInductivePwrFactor_Max    float64
	Slow_CapableInductivePwrFactor_Count  int

	Slow_TempGearBoxHSSNDE        float64
	Slow_TempGearBoxHSSNDE_StdDev float64
	Slow_TempGearBoxHSSNDE_Min    float64
	Slow_TempGearBoxHSSNDE_Max    float64
	Slow_TempGearBoxHSSNDE_Count  int

	Slow_TempHubBearing        float64
	Slow_TempHubBearing_StdDev float64
	Slow_TempHubBearing_Min    float64
	Slow_TempHubBearing_Max    float64
	Slow_TempHubBearing_Count  int

	Slow_TotalG1ActiveHours        float64
	Slow_TotalG1ActiveHours_StdDev float64
	Slow_TotalG1ActiveHours_Min    float64
	Slow_TotalG1ActiveHours_Max    float64
	Slow_TotalG1ActiveHours_Count  int

	Slow_TotalActPowerOutG1_kWh        float64
	Slow_TotalActPowerOutG1_kWh_StdDev float64
	Slow_TotalActPowerOutG1_kWh_Min    float64
	Slow_TotalActPowerOutG1_kWh_Max    float64
	Slow_TotalActPowerOutG1_kWh_Count  int

	Slow_TotalReactPowerInG1_kVArh        float64
	Slow_TotalReactPowerInG1_kVArh_StdDev float64
	Slow_TotalReactPowerInG1_kVArh_Min    float64
	Slow_TotalReactPowerInG1_kVArh_Max    float64
	Slow_TotalReactPowerInG1_kVArh_Count  int

	Slow_NacelleDrill        float64
	Slow_NacelleDrill_StdDev float64
	Slow_NacelleDrill_Min    float64
	Slow_NacelleDrill_Max    float64
	Slow_NacelleDrill_Count  int

	Slow_TempGearBoxIMSDE        float64
	Slow_TempGearBoxIMSDE_StdDev float64
	Slow_TempGearBoxIMSDE_Min    float64
	Slow_TempGearBoxIMSDE_Max    float64
	Slow_TempGearBoxIMSDE_Count  int

	Fast_Total_Operating_hrs        float64
	Fast_Total_Operating_hrs_StdDev float64
	Fast_Total_Operating_hrs_Min    float64
	Fast_Total_Operating_hrs_Max    float64
	Fast_Total_Operating_hrs_Count  int

	Slow_TempNacelle        float64
	Slow_TempNacelle_StdDev float64
	Slow_TempNacelle_Min    float64
	Slow_TempNacelle_Max    float64
	Slow_TempNacelle_Count  int

	Fast_Total_Grid_OK_hrs        float64
	Fast_Total_Grid_OK_hrs_StdDev float64
	Fast_Total_Grid_OK_hrs_Min    float64
	Fast_Total_Grid_OK_hrs_Max    float64
	Fast_Total_Grid_OK_hrs_Count  int

	Fast_Total_WTG_OK_hrs        float64
	Fast_Total_WTG_OK_hrs_StdDev float64
	Fast_Total_WTG_OK_hrs_Min    float64
	Fast_Total_WTG_OK_hrs_Max    float64
	Fast_Total_WTG_OK_hrs_Count  int

	Slow_TempCabinetTopBox        float64
	Slow_TempCabinetTopBox_StdDev float64
	Slow_TempCabinetTopBox_Min    float64
	Slow_TempCabinetTopBox_Max    float64
	Slow_TempCabinetTopBox_Count  int

	Slow_TempGeneratorBearingNDE        float64
	Slow_TempGeneratorBearingNDE_StdDev float64
	Slow_TempGeneratorBearingNDE_Min    float64
	Slow_TempGeneratorBearingNDE_Max    float64
	Slow_TempGeneratorBearingNDE_Count  int

	Fast_Total_Access_hrs        float64
	Fast_Total_Access_hrs_StdDev float64
	Fast_Total_Access_hrs_Min    float64
	Fast_Total_Access_hrs_Max    float64
	Fast_Total_Access_hrs_Count  int

	Slow_TempBottomPowerSection        float64
	Slow_TempBottomPowerSection_StdDev float64
	Slow_TempBottomPowerSection_Min    float64
	Slow_TempBottomPowerSection_Max    float64
	Slow_TempBottomPowerSection_Count  int

	Slow_TempGeneratorBearingDE        float64
	Slow_TempGeneratorBearingDE_StdDev float64
	Slow_TempGeneratorBearingDE_Min    float64
	Slow_TempGeneratorBearingDE_Max    float64
	Slow_TempGeneratorBearingDE_Count  int

	Slow_TotalReactPowerIn_kVArh        float64
	Slow_TotalReactPowerIn_kVArh_StdDev float64
	Slow_TotalReactPowerIn_kVArh_Min    float64
	Slow_TotalReactPowerIn_kVArh_Max    float64
	Slow_TotalReactPowerIn_kVArh_Count  int

	Slow_TempBottomControlSection        float64
	Slow_TempBottomControlSection_StdDev float64
	Slow_TempBottomControlSection_Min    float64
	Slow_TempBottomControlSection_Max    float64
	Slow_TempBottomControlSection_Count  int

	Slow_TempConv1        float64
	Slow_TempConv1_StdDev float64
	Slow_TempConv1_Min    float64
	Slow_TempConv1_Max    float64
	Slow_TempConv1_Count  int

	Fast_ActivePowerRated_kW        float64
	Fast_ActivePowerRated_kW_StdDev float64
	Fast_ActivePowerRated_kW_Min    float64
	Fast_ActivePowerRated_kW_Max    float64
	Fast_ActivePowerRated_kW_Count  int

	Fast_NodeIP        float64
	Fast_NodeIP_StdDev float64
	Fast_NodeIP_Min    float64
	Fast_NodeIP_Max    float64
	Fast_NodeIP_Count  int

	Fast_PitchSpeed1        float64
	Fast_PitchSpeed1_StdDev float64
	Fast_PitchSpeed1_Min    float64
	Fast_PitchSpeed1_Max    float64
	Fast_PitchSpeed1_Count  int

	Slow_CFCardSize        float64
	Slow_CFCardSize_StdDev float64
	Slow_CFCardSize_Min    float64
	Slow_CFCardSize_Max    float64
	Slow_CFCardSize_Count  int

	Slow_CPU_Number        float64
	Slow_CPU_Number_StdDev float64
	Slow_CPU_Number_Min    float64
	Slow_CPU_Number_Max    float64
	Slow_CPU_Number_Count  int

	Slow_CFCardSpaceLeft        float64
	Slow_CFCardSpaceLeft_StdDev float64
	Slow_CFCardSpaceLeft_Min    float64
	Slow_CFCardSpaceLeft_Max    float64
	Slow_CFCardSpaceLeft_Count  int

	Slow_TempBottomCapSection        float64
	Slow_TempBottomCapSection_StdDev float64
	Slow_TempBottomCapSection_Min    float64
	Slow_TempBottomCapSection_Max    float64
	Slow_TempBottomCapSection_Count  int

	Slow_RatedPower        float64
	Slow_RatedPower_StdDev float64
	Slow_RatedPower_Min    float64
	Slow_RatedPower_Max    float64
	Slow_RatedPower_Count  int

	Slow_TempConv3        float64
	Slow_TempConv3_StdDev float64
	Slow_TempConv3_Min    float64
	Slow_TempConv3_Max    float64
	Slow_TempConv3_Count  int

	Slow_TempConv2        float64
	Slow_TempConv2_StdDev float64
	Slow_TempConv2_Min    float64
	Slow_TempConv2_Max    float64
	Slow_TempConv2_Count  int

	Slow_TotalActPowerIn_kWh        float64
	Slow_TotalActPowerIn_kWh_StdDev float64
	Slow_TotalActPowerIn_kWh_Min    float64
	Slow_TotalActPowerIn_kWh_Max    float64
	Slow_TotalActPowerIn_kWh_Count  int

	Slow_TotalActPowerInG1_kWh        float64
	Slow_TotalActPowerInG1_kWh_StdDev float64
	Slow_TotalActPowerInG1_kWh_Min    float64
	Slow_TotalActPowerInG1_kWh_Max    float64
	Slow_TotalActPowerInG1_kWh_Count  int

	Slow_TotalActPowerInG2_kWh        float64
	Slow_TotalActPowerInG2_kWh_StdDev float64
	Slow_TotalActPowerInG2_kWh_Min    float64
	Slow_TotalActPowerInG2_kWh_Max    float64
	Slow_TotalActPowerInG2_kWh_Count  int

	Slow_TotalActPowerOutG2_kWh        float64
	Slow_TotalActPowerOutG2_kWh_StdDev float64
	Slow_TotalActPowerOutG2_kWh_Min    float64
	Slow_TotalActPowerOutG2_kWh_Max    float64
	Slow_TotalActPowerOutG2_kWh_Count  int

	Slow_TotalG2ActiveHours        float64
	Slow_TotalG2ActiveHours_StdDev float64
	Slow_TotalG2ActiveHours_Min    float64
	Slow_TotalG2ActiveHours_Max    float64
	Slow_TotalG2ActiveHours_Count  int

	Slow_TotalReactPowerInG2_kVArh        float64
	Slow_TotalReactPowerInG2_kVArh_StdDev float64
	Slow_TotalReactPowerInG2_kVArh_Min    float64
	Slow_TotalReactPowerInG2_kVArh_Max    float64
	Slow_TotalReactPowerInG2_kVArh_Count  int

	Slow_TotalReactPowerOut_kVArh        float64
	Slow_TotalReactPowerOut_kVArh_StdDev float64
	Slow_TotalReactPowerOut_kVArh_Min    float64
	Slow_TotalReactPowerOut_kVArh_Max    float64
	Slow_TotalReactPowerOut_kVArh_Count  int

	Slow_UTCoffset_int        float64
	Slow_UTCoffset_int_StdDev float64
	Slow_UTCoffset_int_Min    float64
	Slow_UTCoffset_int_Max    float64
	Slow_UTCoffset_int_Count  int

	File  string
	No    int
	Count int
}

func (*ScadaDataHFD) New

func (m *ScadaDataHFD) New() *ScadaDataHFD

func (*ScadaDataHFD) RecordID

func (m *ScadaDataHFD) RecordID() interface{}

func (*ScadaDataHFD) TableName

func (m *ScadaDataHFD) TableName() string

type ScadaDataNew

type ScadaDataNew struct {
	orm.ModelBase             `bson:"-",json:"-"`
	ID                        bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo                  DateInfo
	TimeStamp                 time.Time
	Turbine                   string
	GridFrequency             float64
	ReactivePower             float64
	AlarmExtStopTime          float64
	AlarmGridDownTime         float64
	AlarmInterLineDown        float64
	AlarmMachDownTime         float64
	AlarmOkTime               float64
	AlarmUnknownTime          float64
	AlarmWeatherStop          float64
	ExternalStopTime          float64
	GridDownTime              float64
	GridOkSecs                float64
	InternalLineDown          float64
	MachineDownTime           float64
	OkSecs                    float64
	OkTime                    float64
	UnknownTime               float64
	WeatherStopTime           float64
	GeneratorRPM              float64
	NacelleYawPositionUntwist float64
	NacelleTemperature        float64
	AdjWindSpeed              float64
	AmbientTemperature        float64
	AvgBladeAngle             float64
	AvgWindSpeed              float64
	UnitsGenerated            float64
	EstimatedPower            float64
	EstimatedEnergy           float64 // new added on Sep 14, 2016 by ams
	NacelDirection            float64
	Power                     float64
	PowerLost                 float64
	Energy                    float64 // new added on Sep 14, 2016 by ams
	EnergyLost                float64 // new added on Sep 14, 2016 by ams
	RotorRPM                  float64
	WindDirection             float64
	Line                      int
	IsValidTimeDuration       bool
	TotalTime                 float64
	Minutes                   int
	ProjectName               string
	Available                 int
	DenValue                  float64 // new added on Sep 14, 2016 by ams
	DenPh                     float64 // new added on Sep 14, 2016 by ams
	DenWindSpeed              float64 // new added on Sep 14, 2016 by ams
	DenAdjWindSpeed           float64 // new added on Sep 14, 2016 by ams
	DenPower                  float64 // new added on Sep 14, 2016 by ams
	DenEnergy                 float64 // new added on Sep 14, 2016 by ams
	PCValue                   float64 // new added on Sep 15, 2016 by ams
	PCDeviation               float64 // new added on Sep 15, 2016 by ams
	WSAdjForPC                float64 // new added on Sep 16, 2016 by ams
	WSAvgForPC                float64 // new added on Sep 16, 2016 by ams
}

func (*ScadaDataNew) New

func (m *ScadaDataNew) New() *ScadaDataNew

func (*ScadaDataNew) RecordID

func (m *ScadaDataNew) RecordID() interface{}

func (*ScadaDataNew) TableName

func (m *ScadaDataNew) TableName() string

type ScadaDataOEM

type ScadaDataOEM struct {
	orm.ModelBase                            `bson:"-" json:"-"`
	ID                                       bson.ObjectId `bson:"_id" json:"_id"`
	TimeStamp                                time.Time
	TimeStampUTC                             time.Time
	DateInfo                                 DateInfo
	DateInfoUTC                              DateInfo
	ProjectName                              string
	Turbine                                  string
	Line                                     int
	AI_intern_R_PidAngleOut                  float64
	AI_intern_ActivPower                     float64
	AI_intern_I1                             float64
	AI_intern_I2                             float64
	AI_intern_I3                             float64
	AI_intern_NacelleDrill                   float64
	AI_intern_NacellePos                     float64
	AI_intern_PitchAkku_V1                   float64
	AI_intern_PitchAkku_V2                   float64
	AI_intern_PitchAkku_V3                   float64
	AI_intern_PitchAngle1                    float64
	AI_intern_PitchAngle2                    float64
	AI_intern_PitchAngle3                    float64
	AI_intern_PitchConv_Current1             float64
	AI_intern_PitchConv_Current2             float64
	AI_intern_PitchConv_Current3             float64
	AI_intern_PitchAngleSP_Diff1             float64
	AI_intern_PitchAngleSP_Diff2             float64
	AI_intern_PitchAngleSP_Diff3             float64
	AI_intern_ReactivPower                   float64
	AI_intern_RpmDiff                        float64
	AI_intern_U1                             float64
	AI_intern_U2                             float64
	AI_intern_U3                             float64
	AI_intern_WindDirection                  float64
	AI_intern_WindSpeed                      float64
	AI_Intern_WindSpeedDif                   float64
	AI_speed_RotFR                           float64
	AI_WindSpeed1                            float64
	AI_WindSpeed2                            float64
	AI_WindVane1                             float64
	AI_WindVane2                             float64
	AI_internCurrentAsym                     float64
	Temp_GearBox_IMS_NDE                     float64
	AI_intern_WindVaneDiff                   float64
	C_intern_SpeedGenerator                  float64
	C_intern_SpeedRotor                      float64
	AI_intern_Speed_RPMDiff_FR1_RotCNT       float64
	AI_intern_Frequency_Grid                 float64
	Temp_GearBox_HSS_NDE                     float64
	AI_DrTrVibValue                          float64
	AI_intern_InLastErrorConv1               float64
	AI_intern_InLastErrorConv2               float64
	AI_intern_InLastErrorConv3               float64
	AI_intern_TempConv1                      float64
	AI_intern_TempConv2                      float64
	AI_intern_TempConv3                      float64
	AI_intern_PitchSpeed1                    float64
	Temp_YawBrake_1                          float64
	Temp_YawBrake_2                          float64
	Temp_G1L1                                float64
	Temp_G1L2                                float64
	Temp_G1L3                                float64
	Temp_YawBrake_3                          float64
	AI_HydrSystemPressure                    float64
	Temp_BottomControlSection_Low            float64
	Temp_GearBox_HSS_DE                      float64
	Temp_GearOilSump                         float64
	Temp_GeneratorBearing_DE                 float64
	Temp_GeneratorBearing_NDE                float64
	Temp_MainBearing                         float64
	Temp_GearBox_IMS_DE                      float64
	Temp_Nacelle                             float64
	Temp_Outdoor                             float64
	AI_TowerVibValueAxial                    float64
	AI_intern_DiffGenSpeedSPToAct            float64
	Temp_YawBrake_4                          float64
	AI_intern_SpeedGenerator_Proximity       float64
	AI_intern_SpeedDiff_Encoder_Proximity    float64
	AI_GearOilPressure                       float64
	Temp_CabinetTopBox_Low                   float64
	Temp_CabinetTopBox                       float64
	Temp_BottomControlSection                float64
	Temp_BottomPowerSection                  float64
	Temp_BottomPowerSection_Low              float64
	AI_intern_Pitch1_Status_High             float64
	AI_intern_Pitch2_Status_High             float64
	AI_intern_Pitch3_Status_High             float64
	AI_intern_InPosition1_ch2                float64
	AI_intern_InPosition2_ch2                float64
	AI_intern_InPosition3_ch2                float64
	AI_intern_Temp_Brake_Blade1              float64
	AI_intern_Temp_Brake_Blade2              float64
	AI_intern_Temp_Brake_Blade3              float64
	AI_intern_Temp_PitchMotor_Blade1         float64
	AI_intern_Temp_PitchMotor_Blade2         float64
	AI_intern_Temp_PitchMotor_Blade3         float64
	AI_intern_Temp_Hub_Additional1           float64
	AI_intern_Temp_Hub_Additional2           float64
	AI_intern_Temp_Hub_Additional3           float64
	AI_intern_Pitch1_Status_Low              float64
	AI_intern_Pitch2_Status_Low              float64
	AI_intern_Pitch3_Status_Low              float64
	AI_intern_Battery_VoltageBlade1_center   float64
	AI_intern_Battery_VoltageBlade2_center   float64
	AI_intern_Battery_VoltageBlade3_center   float64
	AI_intern_Battery_ChargingCur_Blade1     float64
	AI_intern_Battery_ChargingCur_Blade2     float64
	AI_intern_Battery_ChargingCur_Blade3     float64
	AI_intern_Battery_DischargingCur_Blade1  float64
	AI_intern_Battery_DischargingCur_Blade2  float64
	AI_intern_Battery_DischargingCur_Blade3  float64
	AI_intern_PitchMotor_BrakeVoltage_Blade1 float64
	AI_intern_PitchMotor_BrakeVoltage_Blade2 float64
	AI_intern_PitchMotor_BrakeVoltage_Blade3 float64
	AI_intern_PitchMotor_BrakeCurrent_Blade1 float64
	AI_intern_PitchMotor_BrakeCurrent_Blade2 float64
	AI_intern_PitchMotor_BrakeCurrent_Blade3 float64
	AI_intern_Temp_HubBox_Blade1             float64
	AI_intern_Temp_HubBox_Blade2             float64
	AI_intern_Temp_HubBox_Blade3             float64
	AI_intern_Temp_Pitch1_HeatSink           float64
	AI_intern_Temp_Pitch2_HeatSink           float64
	AI_intern_Temp_Pitch3_HeatSink           float64
	AI_intern_ErrorStackBlade1               float64
	AI_intern_ErrorStackBlade2               float64
	AI_intern_ErrorStackBlade3               float64
	AI_intern_Temp_BatteryBox_Blade1         float64
	AI_intern_Temp_BatteryBox_Blade2         float64
	AI_intern_Temp_BatteryBox_Blade3         float64
	AI_intern_DC_LinkVoltage1                float64
	AI_intern_DC_LinkVoltage2                float64
	AI_intern_DC_LinkVoltage3                float64
	Temp_Yaw_Motor1                          float64
	Temp_Yaw_Motor2                          float64
	Temp_Yaw_Motor3                          float64
	Temp_Yaw_Motor4                          float64
	AO_DFIG_Power_Setpiont                   float64
	AO_DFIG_Q_Setpoint                       float64
	AI_DFIG_Torque_actual                    float64
	AI_DFIG_SpeedGenerator_Encoder           float64
	AI_intern_DFIG_DC_Link_Voltage_actual    float64
	AI_intern_DFIG_MSC_current               float64
	AI_intern_DFIG_Main_voltage              float64
	AI_intern_DFIG_Main_current              float64
	AI_intern_DFIG_active_power_actual       float64
	AI_intern_DFIG_reactive_power_actual     float64
	AI_intern_DFIG_active_power_actual_LSC   float64
	AI_intern_DFIG_LSC_current               float64
	AI_intern_DFIG_Data_log_number           float64
	AI_intern_Damper_OscMagnitude            float64
	AI_intern_Damper_PassbandFullLoad        float64
	AI_YawBrake_TempRise1                    float64
	AI_YawBrake_TempRise2                    float64
	AI_YawBrake_TempRise3                    float64
	AI_YawBrake_TempRise4                    float64
	AI_intern_NacelleDrill_at_NorthPosSensor float64

	Energy             float64 // new added on Sep 14, 2016 by ams
	EnergyLost         float64 // new added on Sep 14, 2016 by ams
	TurbineElevation   float64 // new added on Sep 14, 2016 by ams
	DenValue           float64 // new added on Sep 14, 2016 by ams
	DenPh              float64 // new added on Sep 14, 2016 by ams
	DenWindSpeed       float64 // new added on Sep 14, 2016 by ams
	DenAdjWindSpeed    float64 // new added on Sep 14, 2016 by ams
	DenPower           float64 // new added on Sep 14, 2016 by ams
	DenEnergy          float64 // new added on Sep 14, 2016 by ams
	PCValue            float64 // new added on Sep 15, 2016 by ams
	PCValueAdj         float64 // new added on Sep 15, 2016 by ams
	PCDeviation        float64 // new added on Sep 15, 2016 by ams
	WSAdjForPC         float64 // new added on Sep 16, 2016 by ams
	WSAvgForPC         float64 // new added on Sep 16, 2016 by ams
	TotalAvail         float64 // new added on Sep 27, 2016 by ams
	MachineAvail       float64 // new added on Sep 27, 2016 by ams
	GridAvail          float64 // new added on Sep 27, 2016 by ams
	TotalAvailAll      float64 // new added on May 12, 2017 by fr
	MachineAvailAll    float64 // new added on May 12, 2017 by fr
	GridAvailAll       float64 // new added on May 12, 2017 by fr
	DenPcDeviation     float64 // new added on Sep 27, 2016 by ams
	DenDeviationPct    float64 // new added on Sep 27, 2016 by ams
	DenPcValue         float64 // new added on Sep 27, 2016 by ams
	DeviationPct       float64 // new added on Sep 27, 2016 by ams
	MTTR               float64
	MTTF               float64
	PerformanceIndex   float64
	PowerLost          float64
	GridDowntime       float64
	MachineDowntime    float64
	UnknownDowntime    float64
	GridDowntimeAll    float64
	MachineDowntimeAll float64
	UnknownDowntimeAll float64
}

func (*ScadaDataOEM) GetColumnInfos

func (m *ScadaDataOEM) GetColumnInfos(colName string) tk.M

func (*ScadaDataOEM) GetXlsColumns

func (m *ScadaDataOEM) GetXlsColumns() []string

func (*ScadaDataOEM) New

func (m *ScadaDataOEM) New() *ScadaDataOEM

func (*ScadaDataOEM) RecordID

func (m *ScadaDataOEM) RecordID() interface{}

func (*ScadaDataOEM) TableName

func (m *ScadaDataOEM) TableName() string

type ScadaHFD

type ScadaHFD struct {
	orm.ModelBase   `bson:"-",json:"-"`
	Id              bson.ObjectId ` bson:"_id" , json:"_id" `
	TimeStamp       time.Time
	DateInfo        DateInfo
	ProjectName     string
	Turbine         string
	ActivePower     float64
	Production      float64
	OprHours        float64
	WtgOkHours      float64
	WindSpeed       float64
	WindDirection   float64
	NacellePosition float64
	Temperature     float64
	PitchAngle      float64
	RotorRPM        float64
}

func (*ScadaHFD) New

func (m *ScadaHFD) New() *ScadaHFD

func (*ScadaHFD) RecordID

func (m *ScadaHFD) RecordID() interface{}

func (*ScadaHFD) TableName

func (m *ScadaHFD) TableName() string

type ScadaLastUpdate

type ScadaLastUpdate struct {
	orm.ModelBase          `bson:"-",json:"-"`
	ID                     string ` bson:"_id" , json:"_id" `
	LastUpdate             time.Time
	DateInfo               DateInfo
	ProjectName            string
	NoOfProjects           int
	NoOfTurbines           int
	TotalMaxCapacity       float64
	CurrentDown            int
	TwoDaysDown            int
	Productions            []LastData24Hours
	CummulativeProductions []Last30Days
}

func (*ScadaLastUpdate) New

func (m *ScadaLastUpdate) New() *ScadaLastUpdate

func (*ScadaLastUpdate) RecordID

func (m *ScadaLastUpdate) RecordID() interface{}

func (*ScadaLastUpdate) TableName

func (m *ScadaLastUpdate) TableName() string

type ScadaMonitoring

type ScadaMonitoring struct {
	orm.ModelBase        `bson:"-",json:"-"`
	Id                   string ` bson:"_id" json:"_id" `
	TimeStamp            time.Time
	DateInfo             DateInfo
	ProjectName          string
	ActivePower          float64
	Production           float64
	OprHours             float64
	WtgOkHours           float64
	WindSpeed            float64
	WindSpeedCount       int
	WindDirection        float64
	WindDirectionCount   int
	NacellePosition      float64
	NacellePositionCount int
	Temperature          float64
	TemperatureCount     int
	PitchAngle           float64
	PitchAngleCount      int
	RotorRPM             float64
	RotorRPMCount        int
	Detail               []ScadaMonitoringItem
}

func (*ScadaMonitoring) New

func (m *ScadaMonitoring) New() *ScadaMonitoring

func (*ScadaMonitoring) RecordID

func (m *ScadaMonitoring) RecordID() interface{}

func (*ScadaMonitoring) TableName

func (m *ScadaMonitoring) TableName() string

type ScadaMonitoringItem

type ScadaMonitoringItem struct {
	Turbine         string
	ActivePower     float64
	WindSpeed       float64
	WindDirection   float64
	NacellePosition float64
	Temperature     float64
	PitchAngle      float64
	RotorRPM        float64
	TimeUpdate      time.Time
	DataComing      int
}

type ScadaPowerCurveItem

type ScadaPowerCurveItem struct {
	WSClass    float64
	Production float64
	TotalData  int
}

type ScadaPowerCurveModel

type ScadaPowerCurveModel struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo      DateInfo
	ProjectName   string
	TurbineId     string
	DataItems     []ScadaPowerCurveItem
}

func (*ScadaPowerCurveModel) New

func (*ScadaPowerCurveModel) RecordID

func (m *ScadaPowerCurveModel) RecordID() interface{}

func (*ScadaPowerCurveModel) SetTableName

func (m *ScadaPowerCurveModel) SetTableName(tblname string)

func (*ScadaPowerCurveModel) TableName

func (m *ScadaPowerCurveModel) TableName() string

type ScadaRealTime

type ScadaRealTime struct {
	orm.ModelBase   `bson:"-",json:"-"`
	Id              bson.ObjectId ` bson:"_id" json:"_id" `
	TimeStamp       time.Time
	DateInfo        DateInfo
	ProjectName     string
	Turbine         string
	ActivePower     float64
	Production      float64
	OprHours        float64
	WtgOkHours      float64
	WindSpeed       float64
	WindDirection   float64
	NacellePosition float64
	Temperature     float64
	PitchAngle      float64
	RotorRPM        float64
	LastUpdate      time.Time

	RotorSpeed_RPM float64
	GenSpeed_RPM   float64

	PitchAngle1 float64
	PitchAngle2 float64
	PitchAngle3 float64

	PitchAccuV1 float64
	PitchAccuV2 float64
	PitchAccuV3 float64

	PitchConvCurrent1 float64
	PitchConvCurrent2 float64
	PitchConvCurrent3 float64

	TempConv1 float64
	TempConv2 float64
	TempConv3 float64

	VoltageL1 float64
	VoltageL2 float64
	VoltageL3 float64

	CurrentL1 float64
	CurrentL2 float64
	CurrentL3 float64

	ReactivePower_kVAr float64
	Frequency_Hz       float64

	Total_Prod_Day_kWh float64
	PowerFactor        float64

	TempG1L1                float64
	TempG1L2                float64
	TempG1L3                float64
	TempGeneratorBearingDE  float64
	TempGeneratorBearingNDE float64

	TempGearBoxHSSDE   float64
	TempGearBoxHSSNDE  float64
	TempGearBoxIMSDE   float64
	TempGearBoxIMSNDE  float64
	TempGearBoxOilSump float64

	TempNacelle    float64
	TempOutdoor    float64
	TempHubBearing float64

	DrTrVibValue float64
}

func (*ScadaRealTime) New

func (m *ScadaRealTime) New() *ScadaRealTime

func (*ScadaRealTime) RecordID

func (m *ScadaRealTime) RecordID() interface{}

func (*ScadaRealTime) TableName

func (m *ScadaRealTime) TableName() string

type ScadaRealTimeNew

type ScadaRealTimeNew struct {
	orm.ModelBase `bson:"-",json:"-"`
	Id            string
	TimeStamp     time.Time
	ProjectName   string
	Tags          string
	Turbine       string
	Value         float64
}

func (*ScadaRealTimeNew) New

func (*ScadaRealTimeNew) RecordID

func (m *ScadaRealTimeNew) RecordID() interface{}

func (*ScadaRealTimeNew) TableName

func (m *ScadaRealTimeNew) TableName() string

type ScadaSummaryByMonth

type ScadaSummaryByMonth struct {
	orm.ModelBase      `bson:"-",json:"-"`
	ID                 bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo           DateInfo
	ProjectName        string
	Production         float64
	ProductionLastYear float64
	Revenue            float64
	RevenueInLacs      float64
	TrueAvail          float64
	ScadaAvail         float64
	MachineAvail       float64
	GridAvail          float64
	PLF                float64
	Budget             float64
	AvgWindSpeed       float64
	ExpWindSpeed       float64
	DowntimeHours      float64
	LostEnergy         float64
	RevenueLoss        float64
}

func (*ScadaSummaryByMonth) New

func (*ScadaSummaryByMonth) RecordID

func (m *ScadaSummaryByMonth) RecordID() interface{}

func (*ScadaSummaryByMonth) TableName

func (m *ScadaSummaryByMonth) TableName() string

type ScadaSummaryByProject

type ScadaSummaryByProject struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	DataItems     []ScadaSummaryByProjectItem
}

func (*ScadaSummaryByProject) New

func (*ScadaSummaryByProject) RecordID

func (m *ScadaSummaryByProject) RecordID() interface{}

func (*ScadaSummaryByProject) TableName

func (m *ScadaSummaryByProject) TableName() string

type ScadaSummaryByProjectItem

type ScadaSummaryByProjectItem struct {
	Name          string
	NoOfWtg       int
	Production    float64
	PLF           float64
	LostEnergy    float64
	DowntimeHours float64
	MachineAvail  float64
	TrueAvail     float64
	DataAvail     float64
}

type ScadaSummaryDaily

type ScadaSummaryDaily struct {
	orm.ModelBase      `bson:"-",json:"-"`
	ID                 string ` bson:"_id" , json:"_id" `
	DateInfo           DateInfo
	ProjectName        string
	Turbine            string
	PowerKw            float64
	Production         float64 // it also called energy, measurement in kwh
	PCDeviation        float64
	Revenue            float64
	RevenueInLacs      float64
	OkTime             float64
	TrueAvail          float64
	ScadaAvail         float64
	MachineAvail       float64
	GridAvail          float64
	TotalAvail         float64
	PLF                float64
	Budget             float64
	AvgWindSpeed       float64
	ExpWindSpeed       float64
	DowntimeHours      float64
	LostEnergy         float64
	RevenueLoss        float64
	MachineDownHours   float64
	GridDownHours      float64
	OtherDowntimeHours float64
	MachineDownLoss    float64
	GridDownLoss       float64
	OtherDownLoss      float64
	ElectricalLosses   float64
	ProductionRatio    float64
	NoOfFailures       int
	TotalMinutes       int
	DetWindSpeed       DetailWindSpeed
	TotalRows          float64
	LoWindTime         float64
}

func (*ScadaSummaryDaily) New

func (*ScadaSummaryDaily) RecordID

func (m *ScadaSummaryDaily) RecordID() interface{}

func (*ScadaSummaryDaily) TableName

func (m *ScadaSummaryDaily) TableName() string

type ScadaThreeSecs

type ScadaThreeSecs struct {
	orm.ModelBase                       `bson:"-",json:"-"`
	ID                                  string ` bson:"_id" , json:"_id" `
	TimeStamp1                          time.Time
	DateId1                             time.Time
	TimeStamp2                          time.Time
	DateId2                             time.Time
	DateId1Info                         DateInfo
	DateId2Info                         DateInfo
	ProjectName                         string
	Turbine                             string
	THour                               int
	TMinute                             int
	TSecond                             int
	TMinuteValue                        float64
	TMinuteCategory                     int
	TimeStampConverted                  time.Time
	TimeStampConvertedInt               int64
	TimeStampSecondGroup                time.Time
	Fast_CurrentL3                      float64
	Fast_ActivePower_kW                 float64
	Fast_CurrentL1                      float64
	Fast_ActivePowerSetpoint_kW         float64
	Fast_CurrentL2                      float64
	Fast_DrTrVibValue                   float64
	Fast_GenSpeed_RPM                   float64
	Fast_PitchAccuV1                    float64
	Fast_PitchAngle                     float64
	Fast_PitchAngle3                    float64
	Fast_PitchAngle2                    float64
	Fast_PitchConvCurrent1              float64
	Fast_PitchConvCurrent3              float64
	Fast_PitchConvCurrent2              float64
	Fast_PowerFactor                    float64
	Fast_ReactivePowerSetpointPPC_kVAr  float64
	Fast_ReactivePower_kVAr             float64
	Fast_RotorSpeed_RPM                 float64
	Fast_VoltageL1                      float64
	Fast_VoltageL2                      float64
	Fast_WindSpeed_ms                   float64
	Slow_CapableCapacitiveReactPwr_kVAr float64
	Slow_CapableInductiveReactPwr_kVAr  float64
	Slow_DateTime_Sec                   float64
	Slow_NacellePos                     float64
	Fast_PitchAngle1                    float64
	Fast_VoltageL3                      float64
	Slow_CapableCapacitivePwrFactor     float64
	Fast_Total_Production_kWh           float64
	Fast_Total_Prod_Day_kWh             float64
	Fast_Total_Prod_Month_kWh           float64
	Fast_ActivePowerOutPWCSell_kW       float64
	Fast_Frequency_Hz                   float64
	Slow_TempG1L2                       float64
	Slow_TempG1L3                       float64
	Slow_TempGearBoxHSSDE               float64
	Slow_TempGearBoxIMSNDE              float64
	Slow_TempOutdoor                    float64
	Fast_PitchAccuV3                    float64
	Slow_TotalTurbineActiveHours        float64
	Slow_TotalTurbineOKHours            float64
	Slow_TotalTurbineTimeAllHours       float64
	Slow_TempG1L1                       float64
	Slow_TempGearBoxOilSump             float64
	Fast_PitchAccuV2                    float64
	Slow_TotalGridOkHours               float64
	Slow_TotalActPowerOut_kWh           float64
	Fast_YawService                     float64
	Fast_YawAngle                       float64
	Slow_WindDirection                  float64
	Slow_CapableInductivePwrFactor      float64
	Slow_TempGearBoxHSSNDE              float64
	Slow_TempHubBearing                 float64
	Slow_TotalG1ActiveHours             float64
	Slow_TotalActPowerOutG1_kWh         float64
	Slow_TotalReactPowerInG1_kVArh      float64
	Slow_NacelleDrill                   float64
	Slow_TempGearBoxIMSDE               float64
	Fast_Total_Operating_hrs            float64
	Slow_TempNacelle                    float64
	Fast_Total_Grid_OK_hrs              float64
	Fast_Total_WTG_OK_hrs               float64
	Slow_TempCabinetTopBox              float64
	Slow_TempGeneratorBearingNDE        float64
	Fast_Total_Access_hrs               float64
	Slow_TempBottomPowerSection         float64
	Slow_TempGeneratorBearingDE         float64
	Slow_TotalReactPowerIn_kVArh        float64
	Slow_TempBottomControlSection       float64
	Slow_TempConv1                      float64
	Fast_ActivePowerRated_kW            float64
	Fast_NodeIP                         float64
	Fast_PitchSpeed1                    float64
	Slow_CFCardSize                     float64
	Slow_CPU_Number                     float64
	Slow_CFCardSpaceLeft                float64
	Slow_TempBottomCapSection           float64
	Slow_RatedPower                     float64
	Slow_TempConv3                      float64
	Slow_TempConv2                      float64
	Slow_TotalActPowerIn_kWh            float64
	Slow_TotalActPowerInG1_kWh          float64
	Slow_TotalActPowerInG2_kWh          float64
	Slow_TotalActPowerOutG2_kWh         float64
	Slow_TotalG2ActiveHours             float64
	Slow_TotalReactPowerInG2_kVArh      float64
	Slow_TotalReactPowerOut_kVArh       float64
	Slow_UTCoffset_int                  float64
	Line                                int
	File                                string
}

func (*ScadaThreeSecs) New

func (m *ScadaThreeSecs) New() *ScadaThreeSecs

func (*ScadaThreeSecs) RecordID

func (m *ScadaThreeSecs) RecordID() interface{}

func (*ScadaThreeSecs) TableName

func (m *ScadaThreeSecs) TableName() string

type ScadaThreeSecsExt

type ScadaThreeSecsExt struct {
	orm.ModelBase `bson:"-",json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	/*TimeStamp1                          time.Time
	DateId1                             time.Time
	TimeStamp2                          time.Time
	DateId2                             time.Time
	DateId1Info                         DateInfo
	DateId2Info                         DateInfo*/
	ProjectName                         string
	Turbine                             string
	THour                               int
	TMinute                             int
	TSecond                             int
	TMinuteValue                        float64
	TMinuteCategory                     int
	TimeStampConverted                  time.Time
	TimeStampConvertedInt               int64
	TimeStampSecondGroup                time.Time
	Fast_CurrentL3                      float64
	Fast_ActivePower_kW                 float64
	Fast_CurrentL1                      float64
	Fast_ActivePowerSetpoint_kW         float64
	Fast_CurrentL2                      float64
	Fast_DrTrVibValue                   float64
	Fast_GenSpeed_RPM                   float64
	Fast_PitchAccuV1                    float64
	Fast_PitchAngle                     float64
	Fast_PitchAngle3                    float64
	Fast_PitchAngle2                    float64
	Fast_PitchConvCurrent1              float64
	Fast_PitchConvCurrent3              float64
	Fast_PitchConvCurrent2              float64
	Fast_PowerFactor                    float64
	Fast_ReactivePowerSetpointPPC_kVAr  float64
	Fast_ReactivePower_kVAr             float64
	Fast_RotorSpeed_RPM                 float64
	Fast_VoltageL1                      float64
	Fast_VoltageL2                      float64
	Fast_WindSpeed_ms                   float64
	Slow_CapableCapacitiveReactPwr_kVAr float64
	Slow_CapableInductiveReactPwr_kVAr  float64
	Slow_DateTime_Sec                   float64
	Slow_NacellePos                     float64
	Fast_PitchAngle1                    float64
	Fast_VoltageL3                      float64
	Slow_CapableCapacitivePwrFactor     float64
	Fast_Total_Production_kWh           float64
	Fast_Total_Prod_Day_kWh             float64
	Fast_Total_Prod_Month_kWh           float64
	Fast_ActivePowerOutPWCSell_kW       float64
	Fast_Frequency_Hz                   float64
	Slow_TempG1L2                       float64
	Slow_TempG1L3                       float64
	Slow_TempGearBoxHSSDE               float64
	Slow_TempGearBoxIMSNDE              float64
	Slow_TempOutdoor                    float64
	Fast_PitchAccuV3                    float64
	Slow_TotalTurbineActiveHours        float64
	Slow_TotalTurbineOKHours            float64
	Slow_TotalTurbineTimeAllHours       float64
	Slow_TempG1L1                       float64
	Slow_TempGearBoxOilSump             float64
	Fast_PitchAccuV2                    float64
	Slow_TotalGridOkHours               float64
	Slow_TotalActPowerOut_kWh           float64
	Fast_YawService                     float64
	Fast_YawAngle                       float64
	Slow_WindDirection                  float64
	Slow_CapableInductivePwrFactor      float64
	Slow_TempGearBoxHSSNDE              float64
	Slow_TempHubBearing                 float64
	Slow_TotalG1ActiveHours             float64
	Slow_TotalActPowerOutG1_kWh         float64
	Slow_TotalReactPowerInG1_kVArh      float64
	Slow_NacelleDrill                   float64
	Slow_TempGearBoxIMSDE               float64
	Fast_Total_Operating_hrs            float64
	Slow_TempNacelle                    float64
	Fast_Total_Grid_OK_hrs              float64
	Fast_Total_WTG_OK_hrs               float64
	Slow_TempCabinetTopBox              float64
	Slow_TempGeneratorBearingNDE        float64
	Fast_Total_Access_hrs               float64
	Slow_TempBottomPowerSection         float64
	Slow_TempGeneratorBearingDE         float64
	Slow_TotalReactPowerIn_kVArh        float64
	Slow_TempBottomControlSection       float64
	Slow_TempConv1                      float64
	Fast_ActivePowerRated_kW            float64
	Fast_NodeIP                         float64
	Fast_PitchSpeed1                    float64
	Slow_CFCardSize                     float64
	Slow_CPU_Number                     float64
	Slow_CFCardSpaceLeft                float64
	Slow_TempBottomCapSection           float64
	Slow_RatedPower                     float64
	Slow_TempConv3                      float64
	Slow_TempConv2                      float64
	Slow_TotalActPowerIn_kWh            float64
	Slow_TotalActPowerInG1_kWh          float64
	Slow_TotalActPowerInG2_kWh          float64
	Slow_TotalActPowerOutG2_kWh         float64
	Slow_TotalG2ActiveHours             float64
	Slow_TotalReactPowerInG2_kVArh      float64
	Slow_TotalReactPowerOut_kVArh       float64
	Slow_UTCoffset_int                  float64

	Fast_CurrentL3CountSecs                      int
	Fast_ActivePower_kWCountSecs                 int
	Fast_CurrentL1CountSecs                      int
	Fast_ActivePowerSetpoint_kWCountSecs         int
	Fast_CurrentL2CountSecs                      int
	Fast_DrTrVibValueCountSecs                   int
	Fast_GenSpeed_RPMCountSecs                   int
	Fast_PitchAccuV1CountSecs                    int
	Fast_PitchAngleCountSecs                     int
	Fast_PitchAngle3CountSecs                    int
	Fast_PitchAngle2CountSecs                    int
	Fast_PitchConvCurrent1CountSecs              int
	Fast_PitchConvCurrent3CountSecs              int
	Fast_PitchConvCurrent2CountSecs              int
	Fast_PowerFactorCountSecs                    int
	Fast_ReactivePowerSetpointPPC_kVArCountSecs  int
	Fast_ReactivePower_kVArCountSecs             int
	Fast_RotorSpeed_RPMCountSecs                 int
	Fast_VoltageL1CountSecs                      int
	Fast_VoltageL2CountSecs                      int
	Fast_WindSpeed_msCountSecs                   int
	Slow_CapableCapacitiveReactPwr_kVArCountSecs int
	Slow_CapableInductiveReactPwr_kVArCountSecs  int
	Slow_DateTime_SecCountSecs                   int
	Slow_NacellePosCountSecs                     int
	Fast_PitchAngle1CountSecs                    int
	Fast_VoltageL3CountSecs                      int
	Slow_CapableCapacitivePwrFactorCountSecs     int
	Fast_Total_Production_kWhCountSecs           int
	Fast_Total_Prod_Day_kWhCountSecs             int
	Fast_Total_Prod_Month_kWhCountSecs           int
	Fast_ActivePowerOutPWCSell_kWCountSecs       int
	Fast_Frequency_HzCountSecs                   int
	Slow_TempG1L2CountSecs                       int
	Slow_TempG1L3CountSecs                       int
	Slow_TempGearBoxHSSDECountSecs               int
	Slow_TempGearBoxIMSNDECountSecs              int
	Slow_TempOutdoorCountSecs                    int
	Fast_PitchAccuV3CountSecs                    int
	Slow_TotalTurbineActiveHoursCountSecs        int
	Slow_TotalTurbineOKHoursCountSecs            int
	Slow_TotalTurbineTimeAllHoursCountSecs       int
	Slow_TempG1L1CountSecs                       int
	Slow_TempGearBoxOilSumpCountSecs             int
	Fast_PitchAccuV2CountSecs                    int
	Slow_TotalGridOkHoursCountSecs               int
	Slow_TotalActPowerOut_kWhCountSecs           int
	Fast_YawServiceCountSecs                     int
	Fast_YawAngleCountSecs                       int
	Slow_WindDirectionCountSecs                  int
	Slow_CapableInductivePwrFactorCountSecs      int
	Slow_TempGearBoxHSSNDECountSecs              int
	Slow_TempHubBearingCountSecs                 int
	Slow_TotalG1ActiveHoursCountSecs             int
	Slow_TotalActPowerOutG1_kWhCountSecs         int
	Slow_TotalReactPowerInG1_kVArhCountSecs      int
	Slow_NacelleDrillCountSecs                   int
	Slow_TempGearBoxIMSDECountSecs               int
	Fast_Total_Operating_hrsCountSecs            int
	Slow_TempNacelleCountSecs                    int
	Fast_Total_Grid_OK_hrsCountSecs              int
	Fast_Total_WTG_OK_hrsCountSecs               int
	Slow_TempCabinetTopBoxCountSecs              int
	Slow_TempGeneratorBearingNDECountSecs        int
	Fast_Total_Access_hrsCountSecs               int
	Slow_TempBottomPowerSectionCountSecs         int
	Slow_TempGeneratorBearingDECountSecs         int
	Slow_TotalReactPowerIn_kVArhCountSecs        int
	Slow_TempBottomControlSectionCountSecs       int
	Slow_TempConv1CountSecs                      int
	Fast_ActivePowerRated_kWCountSecs            int
	Fast_NodeIPCountSecs                         int
	Fast_PitchSpeed1CountSecs                    int
	Slow_CFCardSizeCountSecs                     int
	Slow_CPU_NumberCountSecs                     int
	Slow_CFCardSpaceLeftCountSecs                int
	Slow_TempBottomCapSectionCountSecs           int
	Slow_RatedPowerCountSecs                     int
	Slow_TempConv3CountSecs                      int
	Slow_TempConv2CountSecs                      int
	Slow_TotalActPowerIn_kWhCountSecs            int
	Slow_TotalActPowerInG1_kWhCountSecs          int
	Slow_TotalActPowerInG2_kWhCountSecs          int
	Slow_TotalActPowerOutG2_kWhCountSecs         int
	Slow_TotalG2ActiveHoursCountSecs             int
	Slow_TotalReactPowerInG2_kVArhCountSecs      int
	Slow_TotalReactPowerOut_kVArhCountSecs       int
	Slow_UTCoffset_intCountSecs                  int

	// Line int
	File string
}

func (*ScadaThreeSecsExt) New

func (*ScadaThreeSecsExt) RecordID

func (m *ScadaThreeSecsExt) RecordID() interface{}

func (*ScadaThreeSecsExt) TableName

func (m *ScadaThreeSecsExt) TableName() string

type StrangethresholdMaster

type StrangethresholdMaster struct {
	ID          string ` bson:"_id" json:"_id" `
	Max         float64
	Min         float64
	ProjectName []string
	Tags        string
	Type        string
}

func (*StrangethresholdMaster) New

func (*StrangethresholdMaster) RecordID

func (m *StrangethresholdMaster) RecordID() interface{}

func (*StrangethresholdMaster) TableName

func (m *StrangethresholdMaster) TableName() string

type StrangethresholdOld

type StrangethresholdOld struct {
	StrangethresholdId string
	Max                float64
	Min                float64
	ProjectName        []string
	Tags               string
	Type               string
}

type TurbineCollaborationModel

type TurbineCollaborationModel struct {
	orm.ModelBase `bson:"-" json:"-"`
	Id            string ` bson:"_id" json:"_id" `
	ResponseFor   string
	ProjectId     string
	TurbineId     string
	TurbineName   string
	Feeder        string
	Date          time.Time
	DateInfo      DateInfo
	Status        string
	Remark        string
	CreatedBy     string
	CreatedByName string
	CreatedOn     time.Time
	CreatedIp     string
	CreatedLoc    string
	IsDeleted     bool
}

func (*TurbineCollaborationModel) New

func (*TurbineCollaborationModel) RecordID

func (m *TurbineCollaborationModel) RecordID() interface{}

func (*TurbineCollaborationModel) TableName

func (m *TurbineCollaborationModel) TableName() string

type TurbineMaster

type TurbineMaster struct {
	orm.ModelBase  `bson:"-" json:"-"`
	ID             bson.ObjectId ` bson:"_id" json:"_id" `
	TurbineId      string
	TurbineName    string
	Feeder         string
	Project        string
	Latitude       float64
	Longitude      float64
	Elevation      float64
	CapacityMW     float64
	Routine        string
	TotalTurbine   int
	Active         bool
	TopCorrelation []string
	Engine         string
	Cluster        float64
	ProjectDgr     string
	TurbineDgr     string
}

func (*TurbineMaster) New

func (m *TurbineMaster) New() *TurbineMaster

func (*TurbineMaster) RecordID

func (m *TurbineMaster) RecordID() interface{}

func (*TurbineMaster) TableName

func (m *TurbineMaster) TableName() string

type TurbineModel

type TurbineModel struct {
	orm.ModelBase  `bson:"-" json:"-"`
	Id             string ` bson:"_id" json:"_id" `
	TurbineId      string
	TurbineName    string
	Feeder         string
	Project        string
	Latitude       float64
	Longitude      float64
	Elevation      float64
	Capacitymw     float64
	TopCorrelation []string
	Routine        string
	Engine         string
}

func (*TurbineModel) New

func (m *TurbineModel) New() *TurbineModel

func (*TurbineModel) RecordID

func (m *TurbineModel) RecordID() interface{}

func (*TurbineModel) TableName

func (m *TurbineModel) TableName() string

type TurbineOut

type TurbineOut struct {
	Project    string
	Turbine    string
	Value      string
	Capacity   float64
	Feeder     string
	Engine     string
	Coords     []float64
	Cluster    float64
	DgrProject string
	DgrTurbine string
}

type TurbineStatus

type TurbineStatus struct {
	orm.ModelBase `bson:"-" json:"-"`
	ID            string ` bson:"_id" , json:"_id" `
	ProjectName   string
	Turbine       string
	TimeUpdate    time.Time
	Status        int // 0 : down, 1 : up
	AlarmCode     int
	AlarmDesc     string
	IsWarning     bool
	DateStart     time.Time
}

func (*TurbineStatus) New

func (m *TurbineStatus) New() *TurbineStatus

func (*TurbineStatus) RecordID

func (m *TurbineStatus) RecordID() interface{}

func (*TurbineStatus) TableName

func (m *TurbineStatus) TableName() string

type UserModel

type UserModel struct {
	orm.ModelBase `bson:"-",json:"-"`
	Id            bson.ObjectId ` bson:"_id" , json:"_id" `
	UserId        string
	UserName      string
	Password      string
	Email         string
	DataAccess    map[string][]string
}

func NewUserModel

func NewUserModel() *UserModel

func (*UserModel) RecordID

func (e *UserModel) RecordID() interface{}

func (*UserModel) TableName

func (m *UserModel) TableName() string

type UserPreferences

type UserPreferences struct {
	orm.ModelBase  `bson:"-",json:"-"`
	Id             string ` bson:"_id" , json:"_id" ` // the id will be the user id
	LoginID        string
	KPIAnalysis    []KPIAnalysis
	AnalysisStudio []AnalysisStudio
}

func (*UserPreferences) RecordID

func (e *UserPreferences) RecordID() interface{}

func (*UserPreferences) TableName

func (m *UserPreferences) TableName() string

type WRA

type WRA struct {
	orm.ModelBase `bson:"-",json:"-"`
	Id            bson.ObjectId ` bson:"_id" , json:"_id" `
	Time          string
	Jan           string
	Feb           string
	Mar           string
	Apr           string
	May           string
	Jun           string
	Jul           string
	Aug           string
	Sep           string
	Oct           string
	Nov           string
	Des           string
}

func (*WRA) RecordID

func (e *WRA) RecordID() interface{}

func (*WRA) TableName

func (m *WRA) TableName() string

type WindRoseContribute

type WindRoseContribute struct {
	WSCategoryNo   int
	WSCategoryDesc string
	Contribute     float64
	Frequency      int
	Hours          float64
}

type WindRoseContributeMT

type WindRoseContributeMT struct {
	WSCategoryNo   int
	WSCategoryDesc string
	Contribute     float64
	Frequency      int
	Hours          float64
}

type WindRoseContributeNew

type WindRoseContributeNew struct {
	WSCategoryNo   int
	WSCategoryDesc string
	Contribute     float64
	Frequency      int
	Hours          float64
}

type WindRoseItem

type WindRoseItem struct {
	DirectionNo    int
	DirectionDesc  string
	WSCategoryNo   int
	WSCategoryDesc string
	Contribute     float64
	Frequency      int
	Hours          float64
}

type WindRoseItemMT

type WindRoseItemMT struct {
	DirectionNo    int
	DirectionDesc  string
	WSCategoryNo   int
	WSCategoryDesc string
	Contribute     float64
	Frequency      int
	Hours          float64
}

type WindRoseItemNew

type WindRoseItemNew struct {
	DirectionNo    int
	DirectionDesc  string
	WSCategoryNo   int
	WSCategoryDesc string
	Contribute     float64
	Frequency      int
	Hours          float64
}

type WindRoseMTModel

type WindRoseMTModel struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo         DateInfo
	ProjectId        string
	WindRoseItems    []WindRoseItemMT
	TotalContributes []WindRoseContributeMT
}

func (*WindRoseMTModel) New

func (m *WindRoseMTModel) New() *WindRoseMTModel

func (*WindRoseMTModel) RecordID

func (m *WindRoseMTModel) RecordID() interface{}

func (*WindRoseMTModel) TableName

func (m *WindRoseMTModel) TableName() string

type WindRoseModel

type WindRoseModel struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo         DateInfo
	ProjectId        string
	TurbineId        string
	WindRoseItems    []WindRoseItem
	TotalContributes []WindRoseContribute
}

func (*WindRoseModel) New

func (m *WindRoseModel) New() *WindRoseModel

func (*WindRoseModel) RecordID

func (m *WindRoseModel) RecordID() interface{}

func (*WindRoseModel) TableName

func (m *WindRoseModel) TableName() string

type WindRoseNewModel

type WindRoseNewModel struct {
	orm.ModelBase    `bson:"-",json:"-"`
	ID               bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo         DateInfo
	ProjectId        string
	TurbineId        string
	WindRoseItems    []WindRoseItemNew
	TotalContributes []WindRoseContributeNew
}

func (*WindRoseNewModel) New

func (*WindRoseNewModel) RecordID

func (m *WindRoseNewModel) RecordID() interface{}

func (*WindRoseNewModel) TableName

func (m *WindRoseNewModel) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL