![]() |
VOOZH | about |
dotnet add package Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation --version 1.2.7
NuGet\Install-Package Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation -Version 1.2.7
<PackageReference Include="Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation" Version="1.2.7" />
<PackageVersion Include="Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation" Version="1.2.7" />Directory.Packages.props
<PackageReference Include="Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation" />Project file
paket add Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation --version 1.2.7
#r "nuget: Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation, 1.2.7"
#:package Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation@1.2.7
#addin nuget:?package=Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation&version=1.2.7Install as a Cake Addin
#tool nuget:?package=Skyline.DataMiner.Dev.Utils.Solutions.Categories.Automation&version=1.2.7Install as a Cake Tool
The Categories API provides a flexible way to organize and categorize items using a hierarchical tree structure. This API is part of the DataMiner Categories application, and can be used by other solutions to manage categories via code.
ModuleId and InstanceId are strings that uniquely identify items within DataMiner. These typically refer to DOM instances, but can represent any item type.
using Skyline.DataMiner.Solutions.Categories.API;
// Initialize the API
var api = new CategoriesApi(connection);
// Create a scope
var scope = new Scope { Name = "Network Devices" };
api.Scopes.CreateOrUpdate([scope]);
// Create categories
var routers = new Category { Name = "Routers", Scope = scope };
api.Categories.CreateOrUpdate([routers]);
// Add items
var items = new[]
{
new CategoryItemIdentifier("(slc)resources", "0a542997-d771-45d4-b9e7-ad3cffdf7b40"),
new CategoryItemIdentifier("(slc)resources", "0a069d67-0b1a-48bd-99f0-fb291f9732c7")
};
api.CategoryItems.AddChildItems(routers, items);
// Query with LINQ
var results = api.Categories.Query()
.Where(c => c.Name.Contains("Router"))
.ToList();
dotnet add package Skyline.DataMiner.Dev.Utils.Solutions.Categories
var devices = new Category { Name = "Devices", Scope = scope };
var routers = new Category
{
Name = "Routers",
Scope = scope,
ParentCategory = devices,
};
api.Categories.CreateOrUpdate([devices, routers]);
// Get all categories in a scope
var categories = api.Categories.GetByScope(scope);
// Get category tree
var tree = api.Categories.GetTree(scope);
// Get ancestor path
var path = api.Categories.GetAncestorPath(category);
using Skyline.DataMiner.Solutions.Categories.API;
var cache = StaticCategoriesCache.GetOrCreate(connection);
// Fast O(1) lookup by name
var scope = cache.GetScope("Network Devices");
// Get categories for scope
var categories = cache.GetCategoriesForScope(scope);
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.
At Skyline Communications, we deal with 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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 net48 is compatible. net481 net481 was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.