GithubHelp home page GithubHelp logo

mike-gough / mule-maven-health-check Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

Mule flow showing how to mavenise a flow and import it into other projects to offer a API endpoint which performs a deep health check on upstream systems

mule-maven-health-check's Introduction

Health check flow

How to package

  1. open the command line
  2. navigate to the project directory
  3. run the commane 'mvn package'
  4. a package will be created at target/maven-health-check-1.0.0-SNAPSHOT-flows.zip

How to import into JFrog Artifactory

  1. Open JFrog artifactory
  2. Click deploy
  3. Select a repository
  4. Upload the maven-health-check-1.0.0-SNAPSHOT-flows.zip file
  5. Check deploy as maven artifact
  6. Enter au.gov.csc as the Group ID
  7. Enter maven-health-check as the Artifact ID
  8. Enter 1.0.0 as the Version
  9. Enter zip as the type
  10. Check generate default pom

How to use

Add the following to your .pom file

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-dependency-plugin</artifactId>
	<version>2.10</version>
	<executions>
		<execution>
			<id>unpack</id>
			<phase>initialize</phase>
			<goals>
				<goal>unpack</goal>
			</goals>
			<configuration>
				<artifactItems>
					<artifactItem>
						<groupId>au.gov.csc</groupId>
					    <artifactId>maven-health-check</artifactId>
					    <version>1.0.0</version>
					    <type>zip</type>
						<overWrite>true</overWrite>
						<outputDirectory>${basedir}/src/main/app</outputDirectory>
					</artifactItem>
				</artifactItems>
      			</configuration>
    			</execution>
	</executions>
</plugin>

Add the following to your properties file within the mule application

app.id=maven-health-check

http.listener.ref=HTTP_Listener_Configuration

health.check.path=/health-check

health.check.generic.properties=system-a,system-b

health.check.generic.system-a.type=HTTP
health.check.generic.system-a.flow.name=global:/success-flow

health.check.generic.system-b.type=Oracle Database
health.check.generic.system-b.flow.name=global:/error-flow

mule-maven-health-check's People

Contributors

mike-gough avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.