Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common
1.0.1
Prefix Reserved
dotnet add package Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common --version 1.0.1
NuGet\Install-Package Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common -Version 1.0.1
<PackageReference Include="Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common" Version="1.0.1" />
<PackageVersion Include="Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common" Version="1.0.1" />
<PackageReference Include="Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common" />
paket add Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common --version 1.0.1
#r "nuget: Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common, 1.0.1"
#:package Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common@1.0.1
#addin nuget:?package=Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common&version=1.0.1
#tool nuget:?package=Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common&version=1.0.1
Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common
A NuGet package providing the models, repositories and helper classes for interacting with the DataMiner SatOps (Satellite Operations) solution.
Getting Started
Prerequisites: A running DataMiner system with the SatOps solution installed.
SatOpsApi is the single entry point of this library. Give it a DataMiner IConnection — or use the GetSatOpsApi() extension method — and it exposes one repository per satellite-operations entity (Satellites, Beams, Transponders, TransponderPlans, TransponderPlanRows, TransponderRangeReservations, TransponderSlots), each created lazily on first use.
Create the API and verify the solution is installed:
using Skyline.DataMiner.Solutions.SatOps.Common.API;
using Skyline.DataMiner.Solutions.SatOps.Common.API.Extensions;
var api = connection.GetSatOpsApi(); // equivalent to new SatOpsApi(connection)
if (!api.IsInstalled(out var version))
{
throw new InvalidOperationException("The SatOps solution is not installed on this DMS.");
}
Read entities:
var allSatellites = api.Satellites.Read();
var satellite = api.Satellites.Read(satelliteId);
var count = api.Transponders.Count();
Filter with exposers:
using Skyline.DataMiner.Solutions.SatOps.Common.API.Querying.TransponderSlot;
var wideSlots = api.TransponderSlots.Read(
TransponderSlotExposers.Bandwidth.GreaterThan(36.0));
Filter exposers translate API filters to DOM filters on the server. Lifecycle status is available
as a typed Status exposer on satellites, beams, transponders and transponder plans. Other
repository-specific filters (such as hemisphere, band and polarization) are also available through
the typed ReadFiltered methods:
using Skyline.DataMiner.Solutions.SatOps.Common.API.Objects.SatelliteManagement;
using Skyline.DataMiner.Solutions.SatOps.Common.API.Objects.SatelliteManagement.Beam;
using Skyline.DataMiner.Solutions.SatOps.Common.API.Objects.SatelliteManagement.Satellite;
using Skyline.DataMiner.Solutions.SatOps.Common.API.Objects.SatelliteManagement.Transponder;
using Skyline.DataMiner.Solutions.SatOps.Common.API.Querying.Beam;
using Skyline.DataMiner.Solutions.SatOps.Common.API.Querying.Satellite;
using Skyline.DataMiner.Solutions.SatOps.Common.API.Querying.Transponder;
var activeSatellites = api.Satellites.Read(
SatelliteExposers.Status.Equal(InstanceStatus.Active));
var activeKu = api.Transponders.ReadFiltered(
status: InstanceStatus.Active,
band: TransponderBandType.Ku,
filter: TransponderExposers.Satellite.Equal(satelliteId));
var easternSatellites = api.Satellites.ReadFiltered(
status: InstanceStatus.Active,
hemisphere: HemisphereType.Eastern);
var feederBeams = api.Beams.ReadFiltered(
transmissionType: BeamTransmissionType.TX,
linkType: BeamLinkType.Feeder);
Each exposer class exposes the entity's ID through its Guid exposer. The transponder-slot
repository has no Read(Guid) overload, so filter by TransponderSlotExposers.Guid to find a
single slot:
using Skyline.DataMiner.Solutions.SatOps.Common.API.Querying.TransponderSlot;
var slot = api.TransponderSlots
.Read(TransponderSlotExposers.Guid.Equal(slotId))
.FirstOrDefault();
Create an entity:
Every repository exposes Initialize() to obtain a new, correctly backed instance. Fill in the properties and pass it to Create.
var satellite = api.Satellites.Initialize();
satellite.Name = "Astra 1N";
satellite.Abbreviation = "A1N";
satellite.Orbit = OrbitType.GEO;
satellite.LongitudeForGEODegrees = 28.2;
satellite.Hemisphere = HemisphereType.Eastern;
satellite = api.Satellites.Create(satellite);
Update, activate/deprecate and delete:
satellite.Operator = "SES";
api.Satellites.Update(satellite);
api.Satellites.Activate(satellite); // Draft -> Active
api.Satellites.Deprecate(satellite); // Active -> Deprecated
api.Satellites.Reactivate(satellite); // Deprecated -> Active
api.Satellites.Delete(satellite.Id);
Navigate the entity hierarchy:
A Satellite owns Beams and Transponders, a Transponder owns TransponderPlans, and a TransponderPlan owns TransponderPlanRows and TransponderSlots.
var transponders = api.Transponders.ReadBySatellite(satellite.Id);
var beams = api.Beams.ReadBySatellite(satellite.Id);
var plans = api.TransponderPlans.ReadByTransponder(transponder.Id);
var rows = api.TransponderPlanRows.ReadByTransponderPlan(plan.Id);
var slots = api.TransponderSlots.ReadByTransponderPlan(plan.Id);
// Batch related reads into bounded server-side queries; missing IDs yield no results.
var relatedPlans = api.TransponderPlans.ReadByTransponders(transponders.Select(t => t.Id));
var relatedSlots = api.TransponderSlots.ReadByTransponderPlans(relatedPlans.Select(p => p.Id));
Generate or edit slots:
Use Update(slot) or Update(slots) to edit existing slots without changing their identifiers.
Names must remain unique within the plan, and slots of the same bandwidth must not overlap.
Regeneration recalculates slots from plan rows and overwrites individual edits.
Pass the id of the transponder plan, or submit a slot that only has its TransponderPlan filled in, and the API
replaces it by the slots calculated from the plan rows. The slots that already exist for the plan are removed as
part of the same call, and the calculated slots pass the same validation as manually created slots. Regenerating
the slots of a plan is therefore simply calling Create again.
var createdSlots = api.TransponderSlots.Create(plan.Id);
// Equivalent, using a slot that only has its transponder plan filled in:
var sameSlots = api.TransponderSlots.Create(new TransponderSlot { TransponderPlan = plan.Id });
Work with range reservations:
var reservations = api.TransponderRangeReservations.ReadByTransponderAndTimeWindow(
transponder.Id,
DateTime.UtcNow,
DateTime.UtcNow.AddDays(7));
api.TransponderRangeReservations.ReserveRange(reservation.Id, startFrequency: 10.0, endFrequency: 12.0);
Time-window reads filter jobs by start and end time in MediaOps.Plan before resolving reservation details. Creating or updating a reservation checks overlaps only for the selected transponder and the incoming time window. Slot-name lookups filter property values by reservation ID instead of loading all property values.
New range reservations are confirmed through MediaOps (Draft → Tentative → Confirmed).
If the underlying reservation has already started, MediaOps can return Active or Completed instead.
ReserveRange applies the same confirmation policy when recovering an externally created Draft job;
editing an existing Tentative booking does not implicitly confirm it.
Reservation reads expose a SatOps-owned TransponderReservationState through reservation.State.
Allocation contexts also expose State; their existing MediaOps JobState property remains available
for compatibility. Active corresponds to MediaOps Running, including pre-roll and post-roll.
Reads preserve PreRollStart and PostRollEnd alongside the service start and end times.
State and timing are snapshots, not permission to modify a booking or a guaranteed proposal deadline.
MediaOps decides whether time changes, resource swaps, name edits and deletion are permitted.
SatOps does not duplicate MediaOps timing or post-roll rules. The additional SatOps lifecycle policy
is that frequency range, bandwidth and satellite capability cannot change while a booking is Active.
A transponder swap is delegated to MediaOps only if it leaves those allocation values unchanged;
the satellite capability is derived from the selected transponder. Unchanged allocation values
are not treated as changes.
When MediaOps rejects an operation for lifecycle reasons, SatOps throws ReservationOperationException.
Its ReservationId, Operation, LastKnownState and Errors are all usable without importing MediaOps
types. Each error contains a typed ReservationOperationErrorCode and an explanatory Message.
SatOps allocation-policy rejections use the same exception. MediaOps lifecycle errors retain the
original failure as the inner exception, and mixed validation reasons are preserved.
Unrelated failures are not disguised as lifecycle rejections.
using Skyline.DataMiner.Solutions.SatOps.Common.API.Exceptions;
try
{
api.TransponderRangeReservations.Update(reservation);
}
catch (ReservationOperationException exception)
{
foreach (var error in exception.Errors)
{
Console.WriteLine($"{error.Code}: {error.Message}");
}
}
Validation happens when the operation executes, not through an authoritative proposal preflight API.
Read the booking again after a rejection: LastKnownState is a snapshot, and MediaOps may synchronize
its lifecycle state before rejecting an operation. Bulk operations are not transactional.
If a transition is rejected, ReservationTransitionException exposes the persisted ReservationId,
the failed Operation, and LastKnownState, retaining the MediaOps exception as its inner exception.
The booking is not automatically deleted or rolled back: read it again before retrying or cleaning up.
Enable logging (optional):
Provide an ILogger implementation to surface diagnostics from the middleware pipeline. By default the API
uses a NullLogger, so logging is a no-op until you set one.
Derive from LoggerBase and implement the single Log(string, LogType) method; the Debug, Information,
Warning and Error helpers are routed through it for you.
using Skyline.DataMiner.Solutions.SatOps.Common.Logging;
public class ConsoleLogger : LoggerBase
{
public override void Log(string message, LogType type = LogType.Information)
{
Console.WriteLine($"{FormatDateTimeNow()}|{GetLogTypeAbbreviation(type)}|{message}");
}
}
api.SetLogger(new ConsoleLogger());
Ready made loggers are shipped with the host specific DevPacks:
| Package | Logger | Writes to |
|---|---|---|
...SatOps.Automation |
EngineLogger(IEngine) |
Automation script log |
...SatOps.Protocol |
ProtocolLogger(SLProtocol) |
Protocol (connector) log |
api.SetLogger(new EngineLogger(engine));
LogTypeis defined by this package (Skyline.DataMiner.Solutions.SatOps.Common.Logging.LogType) rather than reusingSkyline.DataMiner.Automation.LogType. This keeps the Common assembly free of any dependency onSLManagedAutomation, which is not resolvable in hosts such as the GQI DxM process.
About
Core API library of the SatOps DevPack solution. It contains the domain models, repositories, querying exposers and validation middleware used by the SatOps Automation, GQI and Protocol DevPacks.
About DataMiner
DataMiner is a transformational platform that provides vendor-independent control and monitoring of devices and services. Out of the box and by design, it addresses key challenges such as security, complexity, multi-cloud, and much more. It has a pronounced open architecture and powerful capabilities enabling users to evolve easily and continuously.
The foundation of DataMiner is its powerful and versatile data acquisition and control layer. With DataMiner, there are no restrictions to what data users can access. Data sources may reside on premises, in the cloud, or in a hybrid setup.
A unique catalog of 7000+ connectors already exists. In addition, you can leverage DataMiner Development Packages to build your own connectors (also known as "protocols" or "drivers").
Note See also: About DataMiner.
About Skyline Communications
At Skyline Communications, we deal in world-class solutions that are deployed by leading companies around the globe. Check out our proven track record and see how we make our customers' lives easier by empowering them to take their operations to the next level.
Architecture
The SDM.SatOps.GQI, SDM.SatOps.Automation and SatOps.Protocol packages are thin DevPacks that build on top of this core library rather than talking to DOM directly: automation scripts consume SDM.SatOps.Automation, low-code apps/dashboards consume SDM.SatOps.GQI as a data source, and connectors consume SatOps.Protocol. SDM.SatOps.CommonTests provides MSTest coverage for the core library.
Every repository is built as a small pipeline: the public interface (e.g. IBeamRepository) is implemented by a repository-specific decorator middleware (e.g. BeamRepositoryMiddleware), which optionally forwards the call to a validation middleware (e.g. BeamValidationMiddleware) before reaching the actual repository (e.g. BeamRepository) that talks to DataMiner DOM instances through DomHelper. This keeps validation/business rules decoupled from persistence, and lets new cross-cutting behavior be added without touching the storage code.
The domain entities also form a hierarchy: a Satellite owns Beams and Transponders, a Transponder owns TransponderPlans, and each TransponderPlan owns TransponderPlanRows and TransponderSlots. Validation middleware enforces that these parent references exist before a child entity can be created or updated.
TransponderSlots support create, update, delete, paged reads and count. Create(planId) regenerates the plan's slots; all replacement validation runs before deletion and excludes the slots being replaced. SlotValidationException distinguishes invalid requests from conflicts, and SlotNotFoundException identifies a missing slot selected for update. Persistence failures after replacement starts throw SlotRegenerationException with the affected plan IDs, failing stage and original exception. Refresh and reconcile before retrying: replacement is not transactional. A process-local guard rejects concurrent regenerations; callers in different processes or DataMiner agents must coordinate externally.
The core library also depends on Skyline.DataMiner.Dev.Utils.Solutions.MediaOps.Plan: a SatOps Transponder is also represented as a Resource in the MediaOps data model, so TransponderResourceCreationMiddleware keeps a matching MediaOps resource in sync whenever a transponder is created or updated.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.4)
- Skyline.DataMiner.CICD.CSharpAnalysis.Analyzer (>= 2.1.2)
- Skyline.DataMiner.Dev.Utils.SDM.Abstractions (>= 1.0.5)
- Skyline.DataMiner.Dev.Utils.Solutions.MediaOps.Plan (>= 2.0.0)
- Skyline.DataMiner.SDM (>= 1.0.5)
- Skyline.DataMiner.SDM.Registration.Common (>= 2.1.3)
- Skyline.DataMiner.SDM.SourceGenerator.Runtime (>= 1.0.5)
- Skyline.DataMiner.Utils.DOM (>= 10.6.1.1)
- Skyline.DataMiner.Utils.SecureCoding.Analyzers (>= 2.2.3)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Common:
| Package | Downloads |
|---|---|
|
Skyline.DataMiner.Dev.Utils.Solutions.SatOps.GQI
SatOps GQI Dev Pack for DataMiner. Minimum DataMiner version: 10.6.1.1. Use this package to access SatOps data from custom GQI data sources for low-code apps and dashboards. Entry point: GQIDMS.GetSatOpsApi(). |
|
|
Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Automation
SatOps Automation Dev Pack for DataMiner. Minimum DataMiner version: 10.6.1.1. Use this package to access the SatOps API from DataMiner Automation scripts. Entry point: IEngine.GetSatOpsApi(). |
|
|
Skyline.DataMiner.Dev.Utils.Solutions.SatOps.Protocol
SatOps Protocol Dev Pack for DataMiner. Minimum DataMiner version: 10.6.1.1. Use this package to access the SatOps API from connector QActions. Entry point: SLProtocol.GetSatOpsApi(). |
GitHub repositories
This package is not used by any popular GitHub repositories.