Giter VIP home page Giter VIP logo

buildlabs's People

Contributors

eknowledger avatar

Watchers

 avatar  avatar

buildlabs's Issues

Try Issue Mgmt

Description

Authentication Service must log Service Start, End, and Heartbeat events to Service Health Logs Repository
Notes:

  1. Service Errors logged to separate log store.
  2. Service must have a configurable value to turn infomation logs on/off
  3. Service must have a configurable value to turn set HeartbeatDuration in seconds ( zero value means off, default value is 90sec)

Service Start Event:

  1. Start a new runtime session
  2. Assign a unique id to to runtime session
  3. Collect hosting server info
  4. Log Service Starting (Info) event
  5. Load Service required resources
  6. Log Service Started (Info) event
    Exception: Service raises Authentication Service System Error
  • Id: 100
  • Error Category: Error
  • Description: Error starting authentication service
  • Severity: Critical 0
  • Include general log info items

Service Stop Event:

  1. Log Service Stoping (Info) event
  2. Gracifully end current requests
  3. Disopse system resources
  4. Close Service runtime session
  5. Log Service Stopped (Info) event
  6. Shutdown service host
    Exception: Service raises Authentication Service System Error
  • Id: 100
  • Error Category: Error
  • Description: Error stopping authentication service
  • Severity: Critical 0
  • Include general log info items

Service Heartbeat Event:

  1. If HeartbeatDuration flag is set to 0 service will not log heartbeat events
  2. If HeartbeatDuration flag is greater than 0, service will log Heartbeat event with log detailed info periodically based on the duration configured in seconds
    Exception: Service raises Authentication Service System Error
  • Id: 100
  • Error Cateogy: Error
  • Description: Error logging heartbeat for authentication service
  • Severity: Critical 0
  • Include general log info items

Information must be present at log:

  1. Service Runtime Session Unique Identifier
  2. Server IP or hosting App Id
  3. Server Timestamp in UTC
  4. Event Id
  5. Event Description
  6. Event Category
  7. Service Unique Id

Acceptance Criteria

  1. Start Authentication Service with ServiceLogsFlag on, Verify Service Starting and Service Started Events with details are logged
  2. Stop Authentication Service with ServiceLogsFlag on, Verify Service Stopping and Service Stopped Events with details are logged
  3. Start Authentication Service with ServiceLogsFlag off, Verify No Service Starting and Service Started Events with details are logged.
  4. Start Authentication Service with ServiceLogsFlag on and invalid db connection, Verify only Service Starting Event with details is logged, and Authenitcation Service Error (100) Severity (0) was logged
  5. Start Authentication Service with ServiceLogsFlag on and HeartbeatDuration set to 120Sec, Verify service log Hearbeat with details every 120Sec
  6. Start Authentication Service with ServiceLogsFlag off and HeartbeatDuration set to 120Sec, Verify service doesn't log Hearbeat with details every 120Sec

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.