Giter Club home page Giter Club logo

refocus-sgt-trust1's Introduction

refocus-sgt-trust1

Description

A Refocus Sample Generator Template for generating samples based on Salesforce's Trust1 API.

Context Variables

The following context variables may be specified by the Sample Generator and will be available to build the connection url, or as contexet data passed into the transform function and toUrl function:

  • baseTrustUrl (required): The base url of your Trust1 API endpoint, e.g. https://api.status.salesforce.com.
  • errorValue: An error sample's value, e.g. -1. Defaults to -1 if not specified.
  • statusLinkUrl (required): The base url of your Trust1 endpoint for a sample's related links, e.g. http://status.salesforce.com/status/.
  • statusMap: An object which maps each Trust1 status enum value to a sample value, messageCode and messageBody. Defaults to the following if not specified:
     	{
             "OK": {
               "value": "0"
             },
             "INFORMATIONAL_NONCORE": {
               "value": "1"
             },
             "MAINTENANCE_NONCORE": {
               "value": "1"
             },
             "MINOR_INCIDENT_NONCORE": {
               "value": "2"
             },
             "MAJOR_INCIDENT_NONCORE": {
               "value": "3"
             },
             "INFORMATIONAL_CORE": {
               "value": "1",
               "messageCode": "CORE"
             },
             "MAINTENANCE_CORE": {
               "value": "1",
               "messageCode": "CORE"
             },
             "MINOR_INCIDENT_CORE": {
               "value": "2",
               "messageCode": "CORE"
             },
             "MAJOR_INCIDENT_CORE": {
               "value": "3",
               "messageCode": "CORE"
             }
           }

Transform Algorithm

Generate a sample based on the instance status.

Revision History

  • 2.0.0 - Use individual instance API endpoint instead of bulk
  • 1.0.2 - include isActive=false in sample messageBody when isActive=false

refocus-sgt-trust1's People

Contributors

iamigo avatar jgraff2 avatar jamesward 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.