Creating alert definitions with CLI
Jay Shaughnessy
jshaughn at redhat.com
Tue Nov 11 14:15:46 UTC 2014
Right, automatic migration of resource-specific defs doesn't really make
sense because we wouldn't know how to map things. In general, any
mapping involving ID's would be hard. But export of a definition, even
if it then involves some massaging, or includes some sort of
variable-name where necessary, should still be very useful.
On 11/11/2014 3:27 AM, Michael Burman wrote:
> Hi,
>
> Yes, I think it should be possible (can't see any obstacles when
> looking quickly) to export alert definition templates - the
> transformation from these builders to current DB Entitities is quite
> simple to reverse. However, I don't think our inventory model allows
> sensible exporting at this point (Lukas, can you look at this
> possibility in the .next?) so resource-specific alert definitions are
> not going to necessarily match anything. Unless we would provide the
> user a possibility of exporting those also, just without any exact
> metric / resources information?
>
> The other issue is in which format do we want to export stuff.
> Something that can be read and parsed by external stuff (+ scripts to
> insert these) or ready-to-be-executed JavaScript?
>
> - Micke
>
> On 11/10/2014 08:30 PM, Jay Shaughnessy wrote:
>>
>> Any thoughts on then being able to export scripts that can build
>> existing alert definitions? And in that way make it easier to import
>> existing definitions into other environments?
>>
>> On 11/3/2014 4:42 AM, Michael Burman wrote:
>>> Hi,
>>>
>>> I have written some documentation (mainly examples of usage) here:
>>>
>>> https://docs.jboss.org/author/display/RHQ/Adding+alert+definitions+using+the+remote+API
>>>
>>>
>>> The code is in PR #143 (I forgot to post that info here). I had to
>>> change some things because of the limitations of our remote CLI
>>> (mainly autocomplete issues).
>>>
>>> - Micke
>>>
>>> _______________________________________________
>>> rhq-devel mailing list
>>> rhq-devel at lists.fedorahosted.org
>>> https://lists.fedorahosted.org/mailman/listinfo/rhq-devel
>>
>> _______________________________________________
>> rhq-devel mailing list
>> rhq-devel at lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/rhq-devel
>
> _______________________________________________
> rhq-devel mailing list
> rhq-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/rhq-devel
More information about the rhq-devel
mailing list