GithubHelp home page GithubHelp logo

ibmstocktrader / loyalty-level Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 19.0 10.77 MB

Deprecated. Stock Trader now uses an ODM business rule instead of this microservice.

License: Apache License 2.0

Java 84.81% Dockerfile 15.19%

loyalty-level's Introduction

This service determines the loyalty level of a given portfolio owner, based on their total portfolio value. It also provides notifications whenever the loyalty level changes.

Currently the set of loyalty levels includes Basic, Bronze, Silver, Gold, and Platinum.

When it detects a change in level, it does a POST to an OpenWhisk action sequence, which builds a message and posts it to a Slack channel (#slack-test on ibm-cloud.slack.com).

This service expects query params named owner, total, and loyalty (the current loyalty level). It returns a JSON object containing the owner and their loyalty.

For example, if you did a GET to http://localhost:9080/loyalty-level?owner=John&total=123456.78&loyalty=Silver, it would return {"owner": "John", "loyalty": "Gold"}, and would post the following message to Slack: "John has changed status from Silver to Gold."

loyalty-level's People

Contributors

greghint avatar rtclauss avatar

Stargazers

 avatar

Watchers

 avatar

loyalty-level's Issues

Build tag missing from pom.xml for docker plugin

[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.stocktrader:loyalty-level:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for io.fabric8:docker-maven-plugin is missing. @ line 126, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]

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.