[Hawkular-dev] resource config and operations
Heiko W.Rupp
hrupp at redhat.com
Tue Jun 9 09:22:45 EDT 2015
On 8 Jun 2015, at 18:27, John Mazzitelli wrote:
> I am working in my own branch, but am about to introduce resource
> configuration and operations to the resource type metadata. This was
> in part due to the UI folks needing the hostname to show in the GUI.
>
> I wanted to let people know what this looks like - speak now if you
> see problems.
>
> The resourceType will now have as part of its attached metadata a list
> named "resourceConfiguration" which consists of config property types
> (today, there is only "name" associated with resource config property
> types, but you can envision other things like "dataType" (for boolean,
> integers, etc)).
>
> There is also a list of operations (today, consists of only a name and
> optional "operationName").
>
> The JSON for resourceType looks like this inside inventory (this is
> for the top level "WildFly Server" type):
>
> "tenant": "28026b36-8fe4-4332-84c8-524e173a68bf",
> "id": "WildFly Server",
Are we sure that for the same thing (e.g. 'WildFly 8.2") we want to
have potentially different and/or duplicate definitions per tenant?
> "version": "0.1",
> "properties":
> {
> "name": "WildFly Server",
> "operations":
> [
> {
> "name": "Reload Server",
> "operationName": "reload"
We need to add some security level to each operation
from the very start. None vs required may be enough
though.
> }
> ],
> "resourceConfiguration":
> [
> {
> "name": "Hostname"
> },
> {
> "name": "Max Heap"
> },
> {
> "name": "Version"
> }
> ]
> }
>
> A resource of this type would look like:
>
> "tenant": "28026b36-8fe4-4332-84c8-524e173a68bf",
> "environment": "test",
> "feed": "mazztower",
> "id": "[Local Host~/]",
> "type": <<<what I showed above>>>,
Is that a "link" or embedded?
More information about the hawkular-dev
mailing list