Performance Log REST Endpoint

Slides:



Advertisements
Similar presentations
Batches, Buckets and Bookbags Elizabeth B. Thomsen NOBLE: North of Boston Library Exchange EGILS2014.
Advertisements

Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin TECHNOLOGY PLUG-IN T3 PROBLEM SOLVING USING EXCEL.
Using Excel to Understand Your Data Clayton County Public Schools Department of Research, Evaluation and Assessment Assistant Principal In-Service.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Spreadsheets and Non- Spatial Databases Unit 4: Module 15, Lecture 2- Advanced Microsoft Excel.
MyFloridaMarketPlace Analysis 2.0 Functional Overview December 18 - December 19, 2007.
PIVOT TABLES AND CHARTS Leena Razzaq CS1100 Computer Science and its Applications CS1100Pivot tables and charts1.
Excel: Pivot Tables Computer Information Technology Section 6-18.
EXCEL ADVANCED 1. Mathematical Operators for Excel < > = >=
Tutorial: Crime & Violence Data Cubes at NCOVR Data Center Last Update:September 12, 2005 by:Jacqueline Cohen.
Mary K. Olson PS Reporting Instance – Query Tool 101.
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
EXCEL ADVANCED 1. Mathematical Operators for Excel < > = >=
Excel 2007 Part (2) Dr. Susan Al Naqshbandi
Problem Solving Using Excel
131 Agenda Overview Review Roles Lists Libraries Columns.
Gadgets & More…. “Date Range” Gadgets Allows you to choose a specific date, before or after a date or a range of dates using the Workflows calendar.
System for Administration, Training, and Educational Resources for NASA SATERN Overview for Learners May 2006.
PIVOT TABLES AND CHARTS CS1100 Computer Science and its Applications CS1100Pivot tables and charts1.
Reporting in Version 5 Application Reports AKA: In Context or Right Click AKA: In Context or Right Click Export to Excel from Listing pages Management.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
AESuniversity Ad hoc Reporting Version 5. for the special purpose or end presently under consideration concerned or dealing with a specific subject, purpose,
Lesson 7 – Microsoft Excel 2010 Working with Tables, PivotTables, and PivotCharts.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T3: Problem Solving Using Excel 2007.
PIVOT TABLES AND CHARTS Leena Razzaq CS1100 Computer Science and its Applications CS1100Pivot tables and charts1.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
COM: 111 Introduction to Computer Applications Department of Information & Communication Technology Panayiotis Christodoulou.
Microsoft ® Excel ® 2013 Enhanced Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts.
MyFloridaMarketPlace Analysis 2.0 Functional Overview.
Chapter 8 Working with Trendlines, PivotTable Reports, PivotChart Reports, and Slicers Microsoft Excel 2013.
CCS Information and Support Center Introduction. What is the information center for? Not only does our web-based.
Orders – Create Responses Boeing Supply Chain Platform (BSCP) Detailed Training July 2016.
Introduction to EBSCOhost
Problem Solving Using Excel
User Manual for Contact Management Customer Relationship Management (CRM) for Bursa Malaysia 2014 Version 1.0 | 4 September 2014.
Analyzing Data Module 4.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Focal Point Responsibilities
Plug-In T7: Problem Solving Using Access 2007
Hiring Center An Inside Look… Your inside look at the hiring center.
Kanban Task Manager for Outlook ‒ Introduction
Adding Post Type Archive in WordPress Navigation Menus Guided By: wpglobalsupportwpglobalsupport.
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Advanced Microsoft Excel
Navigation Details Boeing 787 SCMP March 2018.
Navigating GBVIMS+ Logging In
FTS 2 Failure Tracking System 2 User‘s Guide Process Flow
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Excel 101.
Navya Thum January 30, 2013 Day 5: MICROSOFT EXCEL Navya Thum January 30, 2013.
IBM SCPM Basic Navigation
Overview of Contract Association Batch Upload
Topic 8 – Pivot tables and Charts Lesson 1 – Pivot tables
EBSCOhost Digital Archives Viewer
Tutorial 7 – Integrating Access With the Web and With Other Programs
REACH Computer Resource Center
Tutorial 8 Sharing, Integrating, and Analyzing Data
Upload/Download Inventory
Quick Guide for Online Ordering
Upload/Download Inventory
Assignment resource Working with Excel Tables, PivotTables, and Pivot Charts Fairhurst pp The commands on these slides work with the Week 2 Excel.
Navigating NEIU Blackboard 417 – 418a
Presentation transcript:

Performance Log REST Endpoint REST API’s Performance Log REST Endpoint Nolan Bock nolan.bock@oracle.com Customer Success Manager

Another Log … what value does this add? CPQ Cloud offers several tools to monitor and track transactional data. This REST API helps us understand what’s happening on the server directly Determine how long it takes actions to process on the server Investigate server activity between dates Record the number of times a library is referenced Determine how many users are logged in during a time period Monitor specific user activity across transactions

What information is included in the Logs? The Performance REST endpoint returns many valuable pieces of information: Component This is the specific instance of an event, such as the action variable name, integration variable name etc. Event The is the event that occurred like action, login, logout, integration, invocation, query etc. referenceObject The object upon which the action was performed. This is a configuration hierarchy or a commerce process and document. Server Time Time elapsed in milliseconds for the event.

Example: Converted Output tracking Action Processing Time 2 2 1

At the end of this session you should be able to.. Generate a performance log Extract performance logs, from a site, to Microsoft Excel Create a Pivot Table and Pivot Chart that help to illustrate the data from performance logs Call as many logs within performance logging as you need Create performance logs on specific data (e.g. specific users/actions)

Agenda 1 Learning the Basics Deep Dives Continued Learning 2 3

Performance Logging in 2016 R1 1. Selecting “Performance Logs” on a site with 2016 R1 will take you to an abbreviated version of the performance logs.

Performance Logging in 2016 R1 1. You will be taken to the performance log page. Select the “View” tab. 2. Select “Query By Example.” This will allow you to search by any of the headers, which can be selected under the “Columns” dropdown menu.

Performance Logging in 2016 R1 1. Now, the boxes above each column allow you to filter that column by content. 2. Here, I have filtered by the user “nbock” and all of his actions are listed here.

Performance Logging in 2016 R1 Need more info? Check My Oracle Support! Doc ID 2173294.1

Query-by-example is useful, but what if you want specifics? Averages? Maximum value? Minimum value? Sum? Count? Export logs to Excel! But how?

Pre-Requisites (Recommended) Generating performance logs will be much easier with two applications: JSON View for Firefox and the website, www.convertcsv.com These are NOT Oracle applications and, therefore, can not be guaranteed by Oracle 1. Make sure to select the JSON to CSV converter, ` which will create an Excel output. ` 2. JSONView, an application for Firefox, will make the performance log screen more manageable. 3. This process is best done in Mozilla Firefox, although it can be recreated in Chrome. 1 2

Beginning from your CPQ site of choice, add /rest/v1/performanceLogs to the end of the bigmachines.com URL—this format will be https://SITENAME/rest/v1/performanceLogs Select all and copy the items on this page—there will be a fair amount, use the shortcut “control + A” to select all.

Paste the items into the “input” box on convertcsv.com Click “JSON to Excel” at the bottom of the page. Open with Microsoft Excel 1 2 3

Output

Output –Server Time 1 1. Notice the value serverTime, this value is not recorded in seconds, but milliseconds.

Output – The Seconds Column 2. Create a column for seconds and assign the value as serverTime/1000, this is the conversion from milliseconds to seconds. 3. Fill down for all items, most values will be on the order of 0.001! 2

Output – Creating a Pivot Table 2 1 1. On the “Insert” tab, select “Pivot Table.” 2. The table range should be the entire set of data.

Output – Creating a Pivot Table 2 3 1 1. First, select the fields—in this case, the rows are “component” and the values are “seconds.” 2. Notice the seconds variable is organized as a sum, not useful in this case—we want averages. 3. Click on the dropdown menu next to “sum of seconds” 2 3

Output – Creating a Pivot Table 1. Select the “average” under “summarize value field by” and click ok. 2 3

Output – Creating a Pivot Table 1. Each actions average seconds taken to complete is recorded here. 2. Clicking the filter button will allow you to choose which actions to include in your report. 2 2 1

Output – Creating a Chart 2 1. Click the insert tab. 2. Click the recommended chart or PivotChart icons to display your data in a chart. 2 1

Output – The Basics, Complete! 2 2 1

Agenda 1 Learning the Basics Deep Dives Continued Learning 2 3

Deep Dives – Calling more than 1000 log items 2 1 1. Using a URL as shown (e.g. https://SITENAME/rest/v1/performanceLogs?totalResults=true) will show the total number of logs at the bottom of the page—notice that “items” is collapsed. 2. There are 3500 logs, but only 1000 items listed on each page, so what is the next step to seeing all the logs?

Deep Dives – Calling more than 1000 log items 1. Entering the URL as https://SITENAME/rest/v1/performanceLogs?offset=1001 will show the items starting from the 1001st recorded. This will allow you to incrementally access all the performance logs. 2. The variable hasMore is true when there are more logs to be collected, in this case, there are about 3500. 3. You can check the offset here. 2 1 2 3

Deep Dives – Calling more than 1000 log items 1. Now the offset in the URL is set to 3001. 2. There are about 3500 logs in total and 1000 can be displayed at a time, so the variable hasMore equals “false” because all the logs are shown. The count variable shows how many items are listed on this page. 1 2 2

Deep Dives – Narrow Queries You can use narrow queries to collect performance logs on specific information, such as activity between dates for a user (1) or specific event on a date (2). The process for extracting this data is the same as a regular performance log, but this records a much more specific type of data. Objects in red need to be changed to meet your specific needs (i.e. USER changed to an actual user). 1. https://SITENAME/rest/v1/performanceLogs/?q={$and: [{eventDate:{$gte: '2016-01-11'}}, {eventDate:{$lte: '2016-01-13'}}, {login:{$eq: 'TESTUSER'}}]}&orderby=eventDate:desc 2. https://SITENAME/rest/v1/performanceLogs/?q={$and: [{event:{$eq: 'EVENTNAME'}}, {modifiedDate:{$eq: '2016-01-11'}}, {login:{$eq: 'USER'}}]}&orderby=eventDate:desc 1 2

Deep Dives – Log Time Troubleshooting Imagine that, after generating performance logs, you notice that one action is taking a significant amount of time. For this example, let’s say the action “Get Standard Approval History” is taking 40 seconds, on average. Obviously, there is an issue, but it could be in several places given that this action is called multiple times in multiple processes. You can now use log time troubleshooting to identify which specific call of Get Standard Approval History is causing the problem. 1 2

2. Open the quote list by clicking the + to expand the section 1. First, use the process quick links button to navigate to library functions. 2. Open the quote list by clicking the + to expand the section 3. Open the library functions and select the Get standard Approval History Data function. 1 2 1 2 3

Deep Dives – Log Time Troubleshooting 1 2 1 1. Define a variable, like lib_start, to record the time in milliseconds when the process begins.

Deep Dives – Log Time Troubleshooting 3 2 1 2 2. At the end of the function, add a variable (lib_end) to record the time after the function processes. 3. lib_processingtime, records the amount of time the process takes by finding the difference between the end of the process and beginning.

Deep Dives – Log Time Troubleshooting 2 1 3 1. Now, your performance logs will record “Library-SetStandardApprovalAttributes” and its processing time. 2. Notice the serverTime is 124, this is the processing time.

Agenda 1 Learning the Basics Deep Dives Continued Learning 2 3

MOS Knowledge Articles and More! Performance Log Rest Endpoints Rest APIs for Transactional Objects (Doc ID 2035200.1) What is the Logtime Function in BML? (Doc ID 1982095.1) MondoDB Syntax Query By Example (Doc ID 2173294.1)