diff options
Diffstat (limited to 'sdnr/wt/odlux/apps/performanceHistoryApp/src/models')
10 files changed, 45 insertions, 18 deletions
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/adaptiveModulationDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/adaptiveModulationDataType.ts index 686e3bc96..701d54a38 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/adaptiveModulationDataType.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/adaptiveModulationDataType.ts @@ -47,7 +47,6 @@ export type AdaptiveModulationDataType = { "time8192-states-l": string; }; - export type AdaptiveModulationResult = { "performance-data": AdaptiveModulationDataType }; -export type AdaptiveModulation = AdaptiveModulationDataType & { _id: string };
\ No newline at end of file +export type AdaptiveModulation = AdaptiveModulationDataType & { _id: string }; diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/availableLtps.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/availableLtps.ts index 15a27f147..d5a6c6888 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/availableLtps.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/availableLtps.ts @@ -1,14 +1,14 @@ - export type Ltp = { + export type LtpIds = { key: string } - export type Bucket={ - buckets: Ltp[] + export type Bucket<T>={ + buckets: T[] } /** * Represents distinct available ltps using elasticsearch aggregations structure. */ export type DistinctLtp = { - "uuid-interface": Bucket + "uuid-interface": Bucket<LtpIds> } diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/chartTypes.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/chartTypes.ts new file mode 100644 index 000000000..8ea59e2ec --- /dev/null +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/chartTypes.ts @@ -0,0 +1,33 @@ +export interface IData { + x: string; + y: string; +} + +/** + * Structure of chartjs dataset with the chart properties. + */ + export interface IDataSet { + name: string, + label: string, + lineTension: 0, + bezierCurve: boolean; + fill: boolean, + borderColor: string, + data: IData[], + columnLabel:string + } + +/** + * Structure of chartjs dataset which is sent to the chart. + */ + export interface IDataSetsObject { + datasets: IDataSet[] + } + +/** + * Interface used by chart for sorting on time-stamp + */ + export interface ITimeStamp { + "time-stamp": string; + } +
\ No newline at end of file diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/connectedNetworkElements.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/connectedNetworkElements.ts index f4afa645d..b7277f777 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/connectedNetworkElements.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/connectedNetworkElements.ts @@ -1,6 +1,7 @@ /** * Represents connected network elements. */ -export type ConnectedNetworkElements = { - mountId: string, + +export type ConnectedNetworkElementIds = { + mountId: string; } diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/crossPolarDiscriminationDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/crossPolarDiscriminationDataType.ts index 2dc183eda..43e74eb3e 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/crossPolarDiscriminationDataType.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/crossPolarDiscriminationDataType.ts @@ -14,7 +14,6 @@ export type CrossPolarDiscriminationDataType = { "xpd-max": string; }; - export type CrossPolarDiscriminationResult = { "performance-data": CrossPolarDiscriminationDataType }; export type CrossPolarDiscrimination = CrossPolarDiscriminationDataType & { _id: string };
\ No newline at end of file diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/performanceDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/performanceDataType.ts index 6972998b6..3c9b5cb21 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/performanceDataType.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/performanceDataType.ts @@ -14,7 +14,6 @@ export type PerformanceDataType = { "unavailability": string; }; - export type PerformanceResult = { "performance-data": PerformanceDataType }; export type Performance = PerformanceDataType & { _id: string };
\ No newline at end of file diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/receiveLevelDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/receiveLevelDataType.ts index 9f51c8fee..57ea48cce 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/receiveLevelDataType.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/receiveLevelDataType.ts @@ -14,7 +14,6 @@ export type ReceiveLevelDataType = { "rx-level-max": string; }; - export type ReceiveLevelResult = { "performance-data": ReceiveLevelDataType }; -export type ReceiveLevel = ReceiveLevelDataType & { _id: string };
\ No newline at end of file +export type ReceiveLevel = ReceiveLevelDataType & { _id: string }; diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/signalToInteferenceDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/signalToInteferenceDataType.ts index 73934bd85..51d43b455 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/signalToInteferenceDataType.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/signalToInteferenceDataType.ts @@ -14,7 +14,6 @@ export type SignalToInterferenceDataType = { "snir-max": string; }; - export type SignalToInterferenceResult = { "performance-data": SignalToInterferenceDataType }; -export type SignalToInterference = SignalToInterferenceDataType & { _id: string };
\ No newline at end of file +export type SignalToInterference = SignalToInterferenceDataType & { _id: string }; diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/temperatureDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/temperatureDataType.ts index e5be6e36c..3179d7b6a 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/temperatureDataType.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/temperatureDataType.ts @@ -14,7 +14,6 @@ export type TemperatureDataType = { "rf-temp-max": string; }; - export type TemperatureResult = { "performance-data": TemperatureDataType }; -export type Temperature = TemperatureDataType & { _id: string };
\ No newline at end of file +export type Temperature = TemperatureDataType & { _id: string }; diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/transmissionPowerDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/transmissionPowerDataType.ts index 948baff12..af6f9892d 100644 --- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/transmissionPowerDataType.ts +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/transmissionPowerDataType.ts @@ -14,7 +14,6 @@ export type TransmissionPowerDataType = { "tx-level-max": string; }; - export type TransmissionPowerResult = { "performance-data": TransmissionPowerDataType }; -export type TransmissionPower = TransmissionPowerDataType & { _id: string };
\ No newline at end of file +export type TransmissionPower = TransmissionPowerDataType & { _id: string }; |