r3-legacy/src/r3-api-query-alerts-0.js

26 lines
504 B
JavaScript
Raw Normal View History

2019-10-06 21:11:18 +02:00
/**
* R3.API.Query.Alerts
* @param apiComponent
* @constructor
*/
R3.API.Query.Alerts = function(
apiComponent
) {
2019-10-15 22:21:34 +02:00
__DEFINE_API_COMPONENT__
2019-10-06 21:11:18 +02:00
if (R3.Utils.UndefinedOrNull(apiComponent.path)) {
apiComponent.path = '/alerts/_search';
}
this.path = apiComponent.path;
2019-10-15 22:21:34 +02:00
R3.API.Query.call(
this,
apiComponent
);
2019-10-06 21:11:18 +02:00
};
R3.API.Query.Alerts.prototype = Object.create(R3.API.Query.prototype);
R3.API.Query.Alerts.prototype.constructor = R3.API.Query.Alerts;