SymetryML6.1
  • Introduction
  • Guides
    • Onboarding Guide
    • Technical Requirements
    • Admin User Guide
    • Installation Guide
      • Installation Guide - GPU
      • Installation Guide - Spark
  • SymetryML GUI
    • ML Toolkit
      • The SymetryML Difference
      • Data Mining Lifecycle
      • SymetryML Concepts
      • Data Sources
      • Streams
      • Encoders
      • Projects
      • Models
    • Sequence Models
    • SymetryML Federated Learning
      • Creating the Federation
      • Load data to local project
      • Requesting Federation Information from Admin Node
      • Joining a Federation with a peer node
      • Federated Data & Modelling
      • Appendix
    • DEM Generator
  • SymetryML Rest Client
    • REST API Reference Guide
      • SymetryML REST API Security
      • SymetryML JSON API Objects
      • Encoder Object REST API
      • SymetryML Projects REST API
      • About Federated Learning
      • Hipaa Compliance and Federated Learning
      • Federated Learning API
        • Federated Learning Topologies
        • Federated Learning with Nats
        • Federated Learning with AWS
        • Fusion Projects
      • Exploration API
      • Modeling API
      • Exporting and Importing Model
      • Third Party Model Rest API
      • SymetryML Job Information
      • Prediction API
      • Data Source API
      • Project Data Source Logs
      • Stream Data Source API
      • AutoML with SymetryML
      • Transform Dataframe
      • Select Model with SymetryML
      • Auto Select with SymetryML
      • Tasks API
      • Miscellaneous API
      • WebSocket API
      • Appendix A JSON Data Structure Schema
      • Appendix B Sample Code
  • SymetryML SaaS
    • SaaS Homepage
    • SaaS Dashboard
    • SaaS Account
    • SaaS Users
    • SaaS Licence
Powered by GitBook
On this page
  • Data Source Log Information
  • Data Source Log Definitions
  • Real Streaming, AKA Learn / Forget Log Information
  • Learn / Forget Log Definitions
  • Data Source Logs Rest API
  • Data Source Get Log
  • HTTP Responses
  • SymetryML Project Learn / Forget Logs
  1. SymetryML Rest Client
  2. REST API Reference Guide

Project Data Source Logs

PreviousData Source APINextStream Data Source API

Last updated 2 years ago

This functionality allows to get report metrics on the various data sources that were processed by a SymetryML project. Data Sources logs can be requested as well as the logs about the SymetryML streaming API and .

Data Source Log Information

The data source log contains information about each data source that was processed (learn / forget) by a SymetryML project. It also contains other meta information about each invocation:

Data Source Log Definitions

Key

Description

client_id

Client id who made the call

ds_client_ip

Ip address of the client

ds_request_type

Learn or Forget

ds_name

Data Source name

ds_request_datetime

Date of the request

ds_request_df_numrows

Number of rows processed

ds_request_process_time

Process time

ds_request_response_code

HTTP Response code (E.g. 200, 4xx, etc)

Real Streaming, AKA Learn / Forget Log Information

The Learn / Forget Stream log is a bit different. As these REST endpoints are designed to continuously stream data into a project, they can easily grow large if we keep track of meta-data for each invocation that pushes new data into a SymetryML project. For more information on the SymetryML streaming API consult the following sections:

The learn / forget logging REST endpoint aggregate data based on the type of data that was pushed into the learn / forget streaming API for a given project. More particularly the following fields - or primary keys - are used to aggregate logging information:

  • client_id

  • client_request_type

  • client_request_reponse_code

  • client_request_df_attributes_names

  • client_request_df_attributes_types

Learn / Forget Log Definitions

The following table lists what information is returned for the learn / forget logging rest API based on the previous list. The primary keys are in listed in bold.

Key

Description

client_id

Client id who made the call

client_request_type

Learn or forget

client_request_reponse_code

HTTP Response code (e.g. 200, 4xx, etc)

client_request_df_attributes_names

DataFrame attributes names

client_request_df_attributes_types

DataFrame attributes types

client_request_process_time

Total process time across all invocations

client_request_count

Number of times such Dataframe were pushed via the learn or forget rest endpoint

client_request_df_attributes_numrows_total

Total number of rows processed so far

Data Source Logs Rest API

Data Source Get Log

Get a given project data source log. This log contains information about the data sources that were processed by a given project.

URL

GET /symetry/rest/{cid}/projects/{pid}/getDsLog

HTTP Responses

HTTP Status Code

HTTP Status Message

Description

200

OK

Success.

HTTP Response Entity

HTTP Response Entity

Example

Sample Request/Response Fed Create

Example response with project with two data sources successfully learned:

GET url="http://charm:8080/symetry/rest/c1/projects/p1/getDsLog"

Response:
{"statusCode":"OK","statusString":"OK","values":
        {"stringList":{
                "values":
                ["{"ds_request_datetime":"1605629571980","ds_request_response_code":"200","ds_name":"Iris_category_csv","ds_request_type":"learn","ds_client_id":"web-api","ds_request_process_time":"266","ds_client_ip":"172_16_104_1","ds_request_df_numrows":"150"}",
                "{"ds_request_datetime":"1605629597958","ds_request_response_code":"200","ds_name":"Iris_rtlm2_csv","ds_request_type":"learn","ds_client_id":"web-api","ds_request_process_time":"257","ds_client_ip":"172_16_104_1","ds_request_df_numrows":"150"}"]
                }
        }
}

SymetryML Project Learn / Forget Logs

The REST endpoint provides logging information about data that was pushed to a given project via the various stream APIs.

URL

GET /symetry/rest/{cid}/projects/{pid}/getLFStats

HTTP Responses

HTTP Status Code

HTTP Status Message

Description

200

OK

Success.

HTTP Response Entity

HTTP Response Entity

Example

Sample Request/Response

GET url="http://charm:8080/symetry/rest/c1/projects/p1/getLFStats"

Response:
{"statusCode":"OK","statusString":"OK","values":
        {"stringList":{
                "values":
                ["{"client_request_df_attributes_numrows_total":"506","client_request_type":"learn","client_request_df_attributes_names":"CRIM,ZN,INDUS,CHAS,NOX,RM,AGE,DIS,RAD,TAX,PTRATIO,B,LSTAT,MEDV","client_request_reponse_code":"200","client_request_count":"1","client_request_df_attributes_types":"C,C,C,B,C,C,C,C,C,C,C,C,C,C","client_id":"default-rest-client","client_request_process_time":"301"}"]
                }
        }
}

Each string represents a Map containing the key value information described in the .

Each string represent a Map containing the key value information described in the .

Data Source Log Definitions
Learn / Forget Log Definitions
Learn
Forget
Real Time Streaming Data
Incremental Learning
Decremental Forget
StringList
StringList