This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fiberBreak = [ Rtu410AlarmType.FiberBreak ]; | |
const critical = [ | |
Rtu410AlarmType.CriticalLoss, | |
Rtu410AlarmType.CriticalReflectance, | |
Rtu410AlarmType.CriticalFiberLoss, | |
Rtu410AlarmType.NewEvent, | |
Rtu410AlarmType.NewEventAfterEof, | |
Rtu410AlarmType.NoFiber, | |
Rtu410AlarmType.PonEventCriticalLevel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal RouteCoordinates[] GetCoordinatesAlongPon(string routeName, double distance) | |
{ | |
var encodedRouteName = Uri.EscapeUriString(routeName); | |
var query = $"v3/cables/coordinates_along_pon/{encodedRouteName}/{distance.ToString(CultureInfo.InvariantCulture)}"; | |
try | |
{ | |
SetOrRefreshHeaders(); | |
var json = CallGetString(query, true); | |
var routeCoordinates = DeserializeJson<RouteCoordinates[]>(json); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async setupLocationLayer() { | |
if (this.map == null) return; | |
let b = this.map.getBounds(); | |
let wf: WithinForm = { | |
latitude: b.getNorthWest().lat, | |
longitude: b.getNorthWest().lng, | |
distance: 0, | |
latitude_bottom_right: b.getSouthEast().lat, | |
longitude_bottom_right: b.getSouthEast().lng, | |
min_zoom: this.map.getZoom() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IAnnotation { | |
xMin: number | null; | |
xMax: number | null; | |
} | |
private static getAnnotations( | |
dataPointsStartX: number | null, | |
alarms: MonitoringAlarmEvent[] | null | |
): IAnnotation[] { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files\VeEx\SOR Shell Extension\SORSEConfig.exe" /nogui /enableall /registerdll "C:\Program Files\VeEx\SOR Shell Extension\SORSE.dll" /reregisterschema /log install.log | |
"C:\Program Files\VeEx\SOR Shell Extension\SORSEConfig64.exe" /nogui /enableall /registerdll "C:\Program Files\VeEx\SOR Shell Extension\SORSE64.dll" /reregisterschema /log install.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
ChangeDetectorRef, | |
Component, | |
ElementRef, | |
Input, | |
OnDestroy, | |
ViewChild | |
} from '@angular/core'; | |
import { Store } from '@ngrx/store'; | |
import { TranslateService } from '@ngx-translate/core'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static async Task PutAlarm(OspiAlarmId ospiAlarmId, Func<SystemAlarmProperties> getSystemAlarmProps) | |
{ | |
string uri = null; | |
try | |
{ | |
var result = await BearerTokenCache.GetValueAsync(getSystemAlarmProps).ConfigureAwait(false); | |
if (!result.IsOk) return; | |
uri = UrlUtils.Combine(result.ApiUrl, $"networks/{ospiAlarmId.NetworkId}/alarms/{ospiAlarmId.Id}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ProtoContract] | |
public class PonOnDemandInfo | |
{ | |
[ProtoMember(1)] | |
public PonOnDemandStatus Status { get; set; } | |
[ProtoMember(2)] | |
public int EventNumber { get; set; } | |
[ProtoMember(3)] | |
public string Comment { get; set; } | |
[ProtoMember(4)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CreateLocation(new GisLocationNoId { | |
location = new GisLocationMetadata | |
{ | |
name = "Oleg test XYZ", | |
type = "Home", | |
latitude = -32.96, | |
longitude = -60.63 | |
}, | |
address = "Some address", | |
origin = "VESION", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"filter": "where name like 'Oleg%'" | |
--------------------------------------------------------------- | |
[ | |
{ | |
"name": "Oleg", | |
"type": "Home", | |
"address": "Minsk office", | |
"geo": { |
NewerOlder