Is it possible create OpsGenie incident (not alert) by Java API? - alerts

I am trying integrate Camunda spring boot app with Opsgenie space of our project. After adding Java SDK as the dependency, it's possible now to create alert to the Opsgenie project. But i need create incident (it is the type of alert as docs say), but i found only incident Rest API for this purpose - Java API creates only alerts.
Should i write custom implementation of this API method in Java?
Help, please, thank you.

From doc: incidents can be created manually, or their creation can be automated
by consolidating Alerts through the use of Incident Rules
Thats why, maybe, Java API creates only alerts

Yes, you can create incidents. You can use opsgenie-oas project and generate the API client code using open API generator.

Related

DIfference between Application and Integration service in IIB

Could anyone please explain the difference between application and integration service in IIB. I have referred through documentation but it was not clear. For example, if I have to create a service based on wsdl which has some 3 operations.Should I create it as integration service or application.Please suggest
So with an Application it's roll your own in that you have to build everything.
With an Integration Service you can import a WSDL and the framework of your flow will be generated for you.
So if you are being given WSDL's for the services you want to build then using an IS may be the way to go.
Personally I don't like some of the aspects of the generated code but that's me. I'm currently working on a project that uses REST API's and am using the REST API project option for my projects and it generates code.

How to automatically create DynamoDB table on application startup using Spring Data DynamoDB?

I am using spring-data-dynamodb Spring Data extension to integrate AWS DynamDB with Spring Boot 2.0. I was able to make it work.
My question is, is there a way that the table is automatically created on application startup if it doesn't already exists, similar to what Hiberate offers via hibernate.hbm2ddl.auto ?. Right now, I have to create the table manually or in the application using the AWS DynamoDB sdk. Many Thanks.
Right now there is no such feature but there is an open feature request: https://github.com/derjust/spring-data-dynamodb/issues/17 (which I'm actually working on these days)
Note: I'm the maintainer of this GitHub project.

Create a web service client in Hybris

Im new in Hybris and I need to build a web service client that consumes a web service rest.
Someone have an example? or something that give me an idea, I dont know if is the same like build a web service client in spring.
Thank you.
For REST you can use the default Spring framework for rest client. See this tutorial. here You can create a new extension or use one of yours. See below for more info.
I used Apache Axis2 for consuming the WSDL (the web service). There are a lot of examples and tutorials on the internet for this. It can easily be integrated in Hybris.
The clearest solution is to create another extension using extgen
. Some tips here . You have to modify other the
extensioninfo.xml file of the other extension, where you want to use
the client. (more info in the link above).
The easiest solution is to just add the axis2 lib to the extension
you want to handle the client and use it there. If you want to play
around and test it as a prove of concept, you can do that. Later you
can move it to a separate extension.

Spring boot , Elasticsearch

Searched over the net but unable to find the satisfying approach.
I am new to spring boot and aware of starter dependancies,
I want to develop a springboot app using elastic search as a storage system.
Wherever i searched i found that somewhere my service class will have to implement some interface from springframework for ES crud operations.
Is there any other way without implementing or extending the components.
I myself want to create transport client and want to query ES by my code or methods not by overidden ones.
Please if you ahve ever seen any projects you can redirect me to that link .
Thanks.
Assuming I understand you correctly, you can use the Elasticsearch REST client: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html
You supply the JSON entities for the queries and parse the responses yourself. Its pretty basic in what it does, so you're not dependent on a lot of third party stuff to perform operations.

Consuming a web service in a MULE domain project

I'm developing a set of MULE 3.7.0 app projects under a MULE domain project which contains a set of shared parameters for all these apps and I need to consume an external webservice before any of the apps is loaded in order to get an additional parameter which is needed for all the apps and also for the domain itself.
As there are no flows in the domain project, I don't know how to achieve this.
Can this be done? If so, how? Maybe a bean-oriented approach?
Any help will be much appreciated.
As per problem description provide here, you can go for Spring bean approach to achieve this. Check out similar post below.
mule - how to run code on starting mule (server listener)
Let me know if still facing any issues.

Resources