MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetTargetForVar

Method GetTargetForVar

lib/remote/filterutility.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18using namespace icinga;
19
20Dictionary::Ptr FilterUtility::GetTargetForVar(const String& name, const Value& value)
21{
22 return new Dictionary({
23 { "name", name },
24 { "type", value.GetReflectionType()->GetName() },
25 { "value", value }
26 });
27}
28
29/**
30 * Controls access to an object or variable based on an ApiUser's permissions.

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.45
GetReflectionTypeMethod · 0.45

Tested by

no test coverage detected