Hello Anish,
Thanks for your reply. What we are going to do is a little application
that sends it's own metrics to the collector so we can retrieve that
data using de Analytics API.
For example:
struct TestAgent {
1: string name(key="ObjectTableName")
2: optional i32 valueToBeSent1
}
uve sandesh TestTrage {
1: TestAgent data;
}
This kind of message should be stored in some way in Cassandra
databases and be available to the API users. I understand that
(key="ObjectTableName") makes reference to a new table with that name
that can be queried from the API. For me that is the concept of
"custom table", tables that are administrator/developer defined
different from base contrail tables.
It would be retrieved with a POST query to the API similar to this:
{
"end_time": "now",
"select_fields": [
"valueToBeSent1"
],
"sort_fields": [],
"start_time": "now-60m",
"table": "ObjectTableName",
"where": [
[
{
"name": "Source",
"op": 1,
"suffix": null,
"value": "GeneratorApplication",
"value2": null
}
]
]
}
Is this possible? If it is, do I have to do any step apart from send
the structure using the code generated by Sandesh compiler?
If it is not possible, is there any workaround? The only way that
comes to my mind is that we could query directly to message table,
filter the messages we don't want and process the XMLs but that
solution wouldn't be clean.
I hope I explained it correctly. Thank you for your assistance.
Best regards,
Alberto Gutiérrez.
Quoting Anish Mehta <[email protected]>:
The schemas for new Sandesh types do not need to be compiled or loaded
onto the Collector.
The collector gets XML-encoded messages from the generators and stores
them according to their sandesh types and the contained annotations.
Sandesh Types and how they work are explained here:
http://www.opencontrail.org/sandesh-a-sdn-analytics-interface/
I¹m not sure what you mean by ³custom tables².
Please send us a sample sandesh file and describe what you are trying to
do, and we can discuss further.
Regards,
Anish
On 4/22/15, 6:53 AM, "[email protected]" <[email protected]> wrote:
Dear all,
When creating a new sandesh structure, do I need to send somehow the
schema to the collectors so they will understand it or it will be
added automatically with the first message it recieves?
Thanks for your attention,
Alberto.
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org