SlideShare une entreprise Scribd logo
1  sur  9
Analytics Event API
• The Anypoint Platform for APIs gathers powerful analytics data for
each API that is managed using the platform. This data is displayed
visually in your API’s dashboard, but many scenarios require access to
the raw data so that it can be analyzed or transformed. To meet this
need, the Analytics Reporting API makes it easy to create a report
that queries the desired data and exposes it via an API endpoint. You
can also create reports that span more than one API, or create
different reports for the same API.
Creating a Report
• The following steps show you how to create a report.
• As an Organization Administrator, you have access to the Analytics
Dashboards for your organization. Go
to http://anypoint.mulesoft.com/analytics to access your Analytics
Dashboards. You can also click Analytics in the drop-down menu in
the top-right of the window.
• On the top menu, click Manage Reports.
• On the Manage Reports page, click New to create a new report.
• On the Create Report page, select your desired data source, range,
format, and fields. A URL generates for the configured report, which
represents the endpoint that can be called.
• Click Save Report to save the report and make it available at the
specified endpoint. You are redirected to the Manage Reports page.
Running a Report in the Browser
• The following steps show you how to run a report from the Manage
Reports page in the dashboard.
• On the Manage Reports page, click Run for the specified report.
• After the report has finished running, the resulting file is saved in the
data format that was selected when the report was created. For
example, ShippingAPI Usage.csv. This file contains all of the raw
analytics data for the parameters you specified in the report.
Calling a Report Programmatically
• The following steps show you how to call the report’s API endpoint
and programmatically retrieve the analytics data.
• Open a new terminal window and execute the following command:
• TOKEN=$(curl -s https://anypoint.mulesoft.com/accounts/login -d
"username=<YOUR-USERNAME>&password=<YOUR-PASSWORD>" |
jq -r .access_token)
• This command sends a request to the authentication servers of the
Anypoint Platform and, if the request is successful, returns an access
token that’s stored in the $TOKEN variable. The value of this variable
is displayed below:
• Once the access token has been received, it must be appended to the
Authorization header in the request to the Analytics Reporting API endpoint for
your report. To make a request to this endpoint, copy it from the Manage Reports
page in the Analytics dashboard. Using the $TOKEN variable from the previous
step, include it in the next request as shown below:
• curl -H "Authorization: bearer $TOKEN"
"https://anypoint.mulesoft.com/analytics/1.0/47f40446-9f0b-43c0-a8ca-
c7aea5136f32/events?format=csv&apiIds=2447&startDate=2014-12-
02&endDate=2015-01-
08&fields=Application%20Name.Client%20IP.Resource%20Path > output.csv"
• If the request is successful, the response includes a CSV file (as requested) that
downloads as a file with the specified name (output.csv) in the directory where
the curl request was made.
Data Fields for Reports
• Your report can query data for one, many, or all of the available data
fields. These fields are explained in the table below.
•

Contenu connexe

Tendances

Mule cloud hub console overview
Mule   cloud hub console overviewMule   cloud hub console overview
Mule cloud hub console overviewD.Rajesh Kumar
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBSanjeet Pandey
 
Running mule as worker role on azure
Running mule as worker role on azureRunning mule as worker role on azure
Running mule as worker role on azureSon Nguyen
 
Query in share point by mule
Query in share point by muleQuery in share point by mule
Query in share point by muleSon Nguyen
 
Mule organization
Mule organizationMule organization
Mule organizationSon Nguyen
 
Mule access management - Managing Environments and Permissions
Mule access management - Managing Environments and PermissionsMule access management - Managing Environments and Permissions
Mule access management - Managing Environments and PermissionsShanky Gupta
 
Deploy mule application
Deploy mule applicationDeploy mule application
Deploy mule applicationSon Nguyen
 
Dataweavewithflowreflookup
DataweavewithflowreflookupDataweavewithflowreflookup
Dataweavewithflowreflookuphimajareddys
 
The anypoint platform for API's
The anypoint platform for API'sThe anypoint platform for API's
The anypoint platform for API'sAchyuta Lakshmi
 
Mule environments
Mule environmentsMule environments
Mule environmentsSon Nguyen
 
User Manual Guide: Case Management App on Salesforce AppExchange
User Manual Guide: Case Management App on Salesforce AppExchangeUser Manual Guide: Case Management App on Salesforce AppExchange
User Manual Guide: Case Management App on Salesforce AppExchangeAjeet Singh
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in muleAchyuta Lakshmi
 
Less02 2 e_testermodule_1
Less02 2 e_testermodule_1Less02 2 e_testermodule_1
Less02 2 e_testermodule_1Suresh Mishra
 

Tendances (19)

Mule cloud hub console overview
Mule   cloud hub console overviewMule   cloud hub console overview
Mule cloud hub console overview
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESB
 
Anypoint platform
Anypoint platformAnypoint platform
Anypoint platform
 
Running mule as worker role on azure
Running mule as worker role on azureRunning mule as worker role on azure
Running mule as worker role on azure
 
Query in share point by mule
Query in share point by muleQuery in share point by mule
Query in share point by mule
 
Mule organization
Mule organizationMule organization
Mule organization
 
Manage and consume the api
Manage and consume the apiManage and consume the api
Manage and consume the api
 
Mule access management - Managing Environments and Permissions
Mule access management - Managing Environments and PermissionsMule access management - Managing Environments and Permissions
Mule access management - Managing Environments and Permissions
 
Deploy mule application
Deploy mule applicationDeploy mule application
Deploy mule application
 
Dataweavewithflowreflookup
DataweavewithflowreflookupDataweavewithflowreflookup
Dataweavewithflowreflookup
 
The anypoint platform for API's
The anypoint platform for API'sThe anypoint platform for API's
The anypoint platform for API's
 
Mule environments
Mule environmentsMule environments
Mule environments
 
User Manual Guide: Case Management App on Salesforce AppExchange
User Manual Guide: Case Management App on Salesforce AppExchangeUser Manual Guide: Case Management App on Salesforce AppExchange
User Manual Guide: Case Management App on Salesforce AppExchange
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
 
Bam
BamBam
Bam
 
Mule esb stripe
Mule esb stripeMule esb stripe
Mule esb stripe
 
Mule Integration with Dropbox
Mule Integration with DropboxMule Integration with Dropbox
Mule Integration with Dropbox
 
Bam
BamBam
Bam
 
Less02 2 e_testermodule_1
Less02 2 e_testermodule_1Less02 2 e_testermodule_1
Less02 2 e_testermodule_1
 

En vedette

Judul skripsi untuk pembuatan proposal
Judul skripsi untuk pembuatan proposalJudul skripsi untuk pembuatan proposal
Judul skripsi untuk pembuatan proposalWidi Rahayu
 
Managerial Accounting & It;s Overview
Managerial Accounting & It;s OverviewManagerial Accounting & It;s Overview
Managerial Accounting & It;s OverviewMoin Sarker
 
Bab x konsep pendapatan
Bab x   konsep pendapatanBab x   konsep pendapatan
Bab x konsep pendapatanAzwan Habibie
 
Caching & validating
Caching & validatingCaching & validating
Caching & validatingSon Nguyen
 
Cover dan daftar isi Proposal Tugas Akhir
Cover dan daftar isi Proposal Tugas AkhirCover dan daftar isi Proposal Tugas Akhir
Cover dan daftar isi Proposal Tugas AkhirZdulkurnain Muhamad
 
Metabolisme mikroba
Metabolisme mikrobaMetabolisme mikroba
Metabolisme mikrobaVita Amanah
 
Tugas proposal penelitian
Tugas proposal penelitianTugas proposal penelitian
Tugas proposal penelitianMuhammad Hendra
 
KUHP(KITAB UNDANG-UNDANG HUKUM PIDANA); DADANG DJOKO KARYANTO; MODUL 1
KUHP(KITAB UNDANG-UNDANG HUKUM PIDANA); DADANG DJOKO KARYANTO; MODUL 1KUHP(KITAB UNDANG-UNDANG HUKUM PIDANA); DADANG DJOKO KARYANTO; MODUL 1
KUHP(KITAB UNDANG-UNDANG HUKUM PIDANA); DADANG DJOKO KARYANTO; MODUL 1Dadang DjokoKaryanto
 
Laporan Resmi Praktikum Biologi Fermentasi Alkohol
Laporan Resmi Praktikum Biologi Fermentasi AlkoholLaporan Resmi Praktikum Biologi Fermentasi Alkohol
Laporan Resmi Praktikum Biologi Fermentasi AlkoholDhiarrafii Bintang Matahari
 
8 Keutamaan Sholat Subuh Berjamaah Di Masjid
8 Keutamaan Sholat Subuh Berjamaah Di Masjid8 Keutamaan Sholat Subuh Berjamaah Di Masjid
8 Keutamaan Sholat Subuh Berjamaah Di Masjidpresentasionline
 

En vedette (17)

Judul skripsi untuk pembuatan proposal
Judul skripsi untuk pembuatan proposalJudul skripsi untuk pembuatan proposal
Judul skripsi untuk pembuatan proposal
 
Managerial Accounting & It;s Overview
Managerial Accounting & It;s OverviewManagerial Accounting & It;s Overview
Managerial Accounting & It;s Overview
 
Bab x konsep pendapatan
Bab x   konsep pendapatanBab x   konsep pendapatan
Bab x konsep pendapatan
 
Clarus campus, Klaarkamp 1165-1965
Clarus campus, Klaarkamp 1165-1965Clarus campus, Klaarkamp 1165-1965
Clarus campus, Klaarkamp 1165-1965
 
Tugas akhir
Tugas akhirTugas akhir
Tugas akhir
 
Caching & validating
Caching & validatingCaching & validating
Caching & validating
 
TENDENZA EVOLUTIVA E SOLUZIONI PER LA SPIAGGIA DI LEVANTO
TENDENZA EVOLUTIVA E SOLUZIONI PER LA SPIAGGIA DI LEVANTOTENDENZA EVOLUTIVA E SOLUZIONI PER LA SPIAGGIA DI LEVANTO
TENDENZA EVOLUTIVA E SOLUZIONI PER LA SPIAGGIA DI LEVANTO
 
Cover dan daftar isi Proposal Tugas Akhir
Cover dan daftar isi Proposal Tugas AkhirCover dan daftar isi Proposal Tugas Akhir
Cover dan daftar isi Proposal Tugas Akhir
 
KHI (Kompilasi Hukum Islam)
KHI (Kompilasi Hukum Islam)KHI (Kompilasi Hukum Islam)
KHI (Kompilasi Hukum Islam)
 
Metabolisme mikroba
Metabolisme mikrobaMetabolisme mikroba
Metabolisme mikroba
 
1 udangvaname
1 udangvaname1 udangvaname
1 udangvaname
 
Tugas proposal penelitian
Tugas proposal penelitianTugas proposal penelitian
Tugas proposal penelitian
 
Sholat jumat
Sholat jumatSholat jumat
Sholat jumat
 
KUHP(KITAB UNDANG-UNDANG HUKUM PIDANA); DADANG DJOKO KARYANTO; MODUL 1
KUHP(KITAB UNDANG-UNDANG HUKUM PIDANA); DADANG DJOKO KARYANTO; MODUL 1KUHP(KITAB UNDANG-UNDANG HUKUM PIDANA); DADANG DJOKO KARYANTO; MODUL 1
KUHP(KITAB UNDANG-UNDANG HUKUM PIDANA); DADANG DJOKO KARYANTO; MODUL 1
 
Laporan Resmi Praktikum Biologi Fermentasi Alkohol
Laporan Resmi Praktikum Biologi Fermentasi AlkoholLaporan Resmi Praktikum Biologi Fermentasi Alkohol
Laporan Resmi Praktikum Biologi Fermentasi Alkohol
 
Ppt virus dan bakteri
Ppt virus dan bakteriPpt virus dan bakteri
Ppt virus dan bakteri
 
8 Keutamaan Sholat Subuh Berjamaah Di Masjid
8 Keutamaan Sholat Subuh Berjamaah Di Masjid8 Keutamaan Sholat Subuh Berjamaah Di Masjid
8 Keutamaan Sholat Subuh Berjamaah Di Masjid
 

Similaire à Analytics event api

SFDC Other Platform Features
SFDC Other Platform FeaturesSFDC Other Platform Features
SFDC Other Platform FeaturesSujit Kumar
 
Intro of Key Features of Auto T-CAAT Pro 2021Dec01
Intro of Key Features of Auto T-CAAT Pro 2021Dec01Intro of Key Features of Auto T-CAAT Pro 2021Dec01
Intro of Key Features of Auto T-CAAT Pro 2021Dec01rafeq
 
Server and application monitoring webinars [Applications Manager] - Part 4
Server and application monitoring webinars [Applications Manager] - Part 4Server and application monitoring webinars [Applications Manager] - Part 4
Server and application monitoring webinars [Applications Manager] - Part 4ManageEngine, Zoho Corporation
 
Anypoint platform release highlights
Anypoint platform release highlightsAnypoint platform release highlights
Anypoint platform release highlightsD.Rajesh Kumar
 
Azure integration in dynamic crm
Azure integration in dynamic crmAzure integration in dynamic crm
Azure integration in dynamic crmssuser93127c1
 
Oracle Fusion Payroll tracing for debugging
Oracle Fusion Payroll tracing for debuggingOracle Fusion Payroll tracing for debugging
Oracle Fusion Payroll tracing for debuggingFeras Ahmad
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlightshimajareddys
 
(ATS6-DEV05) Building Interactive Web Applications with the Reporting Collection
(ATS6-DEV05) Building Interactive Web Applications with the Reporting Collection(ATS6-DEV05) Building Interactive Web Applications with the Reporting Collection
(ATS6-DEV05) Building Interactive Web Applications with the Reporting CollectionBIOVIA
 
Sure Outputs
Sure OutputsSure Outputs
Sure OutputsSAP Sure
 
03 part 1_requirement_elicitation
03 part 1_requirement_elicitation03 part 1_requirement_elicitation
03 part 1_requirement_elicitationAnurag Rajandekar
 
20160913_AlteryxPHX.PPTX
20160913_AlteryxPHX.PPTX20160913_AlteryxPHX.PPTX
20160913_AlteryxPHX.PPTXMichelleSaver
 
vCenter Hyperic Administration Guide 5.8
vCenter Hyperic Administration Guide 5.8vCenter Hyperic Administration Guide 5.8
vCenter Hyperic Administration Guide 5.8Kumaran Balachandran
 
Oracle fccs creating new application
Oracle fccs creating new applicationOracle fccs creating new application
Oracle fccs creating new applicationRati Sharma
 
Session on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log managementSession on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log managementpqrs1234
 

Similaire à Analytics event api (20)

SFDC Other Platform Features
SFDC Other Platform FeaturesSFDC Other Platform Features
SFDC Other Platform Features
 
Intro of Key Features of Auto T-CAAT Pro 2021Dec01
Intro of Key Features of Auto T-CAAT Pro 2021Dec01Intro of Key Features of Auto T-CAAT Pro 2021Dec01
Intro of Key Features of Auto T-CAAT Pro 2021Dec01
 
Server and application monitoring webinars [Applications Manager] - Part 4
Server and application monitoring webinars [Applications Manager] - Part 4Server and application monitoring webinars [Applications Manager] - Part 4
Server and application monitoring webinars [Applications Manager] - Part 4
 
Anypoint platform release highlights
Anypoint platform release highlightsAnypoint platform release highlights
Anypoint platform release highlights
 
Azure integration in dynamic crm
Azure integration in dynamic crmAzure integration in dynamic crm
Azure integration in dynamic crm
 
YM API Xperience 2016
YM API Xperience 2016YM API Xperience 2016
YM API Xperience 2016
 
Teams Automation with Graph API
Teams Automation with Graph APITeams Automation with Graph API
Teams Automation with Graph API
 
Oracle Fusion Payroll tracing for debugging
Oracle Fusion Payroll tracing for debuggingOracle Fusion Payroll tracing for debugging
Oracle Fusion Payroll tracing for debugging
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlights
 
Hplan classic
Hplan classicHplan classic
Hplan classic
 
(ATS6-DEV05) Building Interactive Web Applications with the Reporting Collection
(ATS6-DEV05) Building Interactive Web Applications with the Reporting Collection(ATS6-DEV05) Building Interactive Web Applications with the Reporting Collection
(ATS6-DEV05) Building Interactive Web Applications with the Reporting Collection
 
Sure Outputs
Sure OutputsSure Outputs
Sure Outputs
 
03 part 1_requirement_elicitation
03 part 1_requirement_elicitation03 part 1_requirement_elicitation
03 part 1_requirement_elicitation
 
Creating an Invoice in a Spreadsheet_Cosocius Proof of Concept
Creating an Invoice in a Spreadsheet_Cosocius Proof of ConceptCreating an Invoice in a Spreadsheet_Cosocius Proof of Concept
Creating an Invoice in a Spreadsheet_Cosocius Proof of Concept
 
20160913_AlteryxPHX.PPTX
20160913_AlteryxPHX.PPTX20160913_AlteryxPHX.PPTX
20160913_AlteryxPHX.PPTX
 
vCenter Hyperic Administration Guide 5.8
vCenter Hyperic Administration Guide 5.8vCenter Hyperic Administration Guide 5.8
vCenter Hyperic Administration Guide 5.8
 
Oracle fixed assets
Oracle fixed assetsOracle fixed assets
Oracle fixed assets
 
How to Test Oracle BI Report by SOAP UI?
How to Test Oracle BI Report by SOAP UI?How to Test Oracle BI Report by SOAP UI?
How to Test Oracle BI Report by SOAP UI?
 
Oracle fccs creating new application
Oracle fccs creating new applicationOracle fccs creating new application
Oracle fccs creating new application
 
Session on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log managementSession on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log management
 

Plus de Son Nguyen

Your new maven friend – the mule maven
Your new maven friend – the mule mavenYour new maven friend – the mule maven
Your new maven friend – the mule mavenSon Nguyen
 
Soa governance for the modern business
Soa governance for the modern businessSoa governance for the modern business
Soa governance for the modern businessSon Nguyen
 
Quality sdk for your apis in minutes!
Quality sdk for your apis in minutes!Quality sdk for your apis in minutes!
Quality sdk for your apis in minutes!Son Nguyen
 
Maven tools & archetypes
Maven tools & archetypesMaven tools & archetypes
Maven tools & archetypesSon Nguyen
 
Let api change your relationship with your doctor
Let api change your relationship with your doctorLet api change your relationship with your doctor
Let api change your relationship with your doctorSon Nguyen
 
Increase revenue and reinvigorate your business with api
Increase revenue and reinvigorate your business with apiIncrease revenue and reinvigorate your business with api
Increase revenue and reinvigorate your business with apiSon Nguyen
 
How to – wrap soap web service around a database
How to – wrap soap web service around a databaseHow to – wrap soap web service around a database
How to – wrap soap web service around a databaseSon Nguyen
 
How to – rest api proxy to soap webservice
How to – rest api proxy to soap webserviceHow to – rest api proxy to soap webservice
How to – rest api proxy to soap webserviceSon Nguyen
 
A good api strategy can help turn your
A good api strategy can help turn yourA good api strategy can help turn your
A good api strategy can help turn yourSon Nguyen
 
10 steps to design and build the perfect
10 steps to design and build the perfect10 steps to design and build the perfect
10 steps to design and build the perfectSon Nguyen
 
What is the difference between using private flow
What is the difference between using private flowWhat is the difference between using private flow
What is the difference between using private flowSon Nguyen
 
Troubleshooting mule
Troubleshooting muleTroubleshooting mule
Troubleshooting muleSon Nguyen
 
Real time data processing with anypoint connector for kafka
Real time data processing with anypoint connector for kafkaReal time data processing with anypoint connector for kafka
Real time data processing with anypoint connector for kafkaSon Nguyen
 
Performance tuning in mule
Performance tuning in mulePerformance tuning in mule
Performance tuning in muleSon Nguyen
 
Mule intelli j tips
Mule intelli j tipsMule intelli j tips
Mule intelli j tipsSon Nguyen
 
Introducing the anypoint connector for redis
Introducing the anypoint connector for redisIntroducing the anypoint connector for redis
Introducing the anypoint connector for redisSon Nguyen
 
How to – data integrity checks in batch processing
How to – data integrity checks in batch processingHow to – data integrity checks in batch processing
How to – data integrity checks in batch processingSon Nguyen
 
How soa paved the way for cloud
How soa paved the way for cloudHow soa paved the way for cloud
How soa paved the way for cloudSon Nguyen
 
Anypoint mq queues and exchanges
Anypoint mq queues and exchangesAnypoint mq queues and exchanges
Anypoint mq queues and exchangesSon Nguyen
 
Anypoint mq acknowledgement mode
Anypoint mq acknowledgement modeAnypoint mq acknowledgement mode
Anypoint mq acknowledgement modeSon Nguyen
 

Plus de Son Nguyen (20)

Your new maven friend – the mule maven
Your new maven friend – the mule mavenYour new maven friend – the mule maven
Your new maven friend – the mule maven
 
Soa governance for the modern business
Soa governance for the modern businessSoa governance for the modern business
Soa governance for the modern business
 
Quality sdk for your apis in minutes!
Quality sdk for your apis in minutes!Quality sdk for your apis in minutes!
Quality sdk for your apis in minutes!
 
Maven tools & archetypes
Maven tools & archetypesMaven tools & archetypes
Maven tools & archetypes
 
Let api change your relationship with your doctor
Let api change your relationship with your doctorLet api change your relationship with your doctor
Let api change your relationship with your doctor
 
Increase revenue and reinvigorate your business with api
Increase revenue and reinvigorate your business with apiIncrease revenue and reinvigorate your business with api
Increase revenue and reinvigorate your business with api
 
How to – wrap soap web service around a database
How to – wrap soap web service around a databaseHow to – wrap soap web service around a database
How to – wrap soap web service around a database
 
How to – rest api proxy to soap webservice
How to – rest api proxy to soap webserviceHow to – rest api proxy to soap webservice
How to – rest api proxy to soap webservice
 
A good api strategy can help turn your
A good api strategy can help turn yourA good api strategy can help turn your
A good api strategy can help turn your
 
10 steps to design and build the perfect
10 steps to design and build the perfect10 steps to design and build the perfect
10 steps to design and build the perfect
 
What is the difference between using private flow
What is the difference between using private flowWhat is the difference between using private flow
What is the difference between using private flow
 
Troubleshooting mule
Troubleshooting muleTroubleshooting mule
Troubleshooting mule
 
Real time data processing with anypoint connector for kafka
Real time data processing with anypoint connector for kafkaReal time data processing with anypoint connector for kafka
Real time data processing with anypoint connector for kafka
 
Performance tuning in mule
Performance tuning in mulePerformance tuning in mule
Performance tuning in mule
 
Mule intelli j tips
Mule intelli j tipsMule intelli j tips
Mule intelli j tips
 
Introducing the anypoint connector for redis
Introducing the anypoint connector for redisIntroducing the anypoint connector for redis
Introducing the anypoint connector for redis
 
How to – data integrity checks in batch processing
How to – data integrity checks in batch processingHow to – data integrity checks in batch processing
How to – data integrity checks in batch processing
 
How soa paved the way for cloud
How soa paved the way for cloudHow soa paved the way for cloud
How soa paved the way for cloud
 
Anypoint mq queues and exchanges
Anypoint mq queues and exchangesAnypoint mq queues and exchanges
Anypoint mq queues and exchanges
 
Anypoint mq acknowledgement mode
Anypoint mq acknowledgement modeAnypoint mq acknowledgement mode
Anypoint mq acknowledgement mode
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Dernier (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

Analytics event api

  • 2. • The Anypoint Platform for APIs gathers powerful analytics data for each API that is managed using the platform. This data is displayed visually in your API’s dashboard, but many scenarios require access to the raw data so that it can be analyzed or transformed. To meet this need, the Analytics Reporting API makes it easy to create a report that queries the desired data and exposes it via an API endpoint. You can also create reports that span more than one API, or create different reports for the same API.
  • 3. Creating a Report • The following steps show you how to create a report. • As an Organization Administrator, you have access to the Analytics Dashboards for your organization. Go to http://anypoint.mulesoft.com/analytics to access your Analytics Dashboards. You can also click Analytics in the drop-down menu in the top-right of the window.
  • 4. • On the top menu, click Manage Reports. • On the Manage Reports page, click New to create a new report. • On the Create Report page, select your desired data source, range, format, and fields. A URL generates for the configured report, which represents the endpoint that can be called. • Click Save Report to save the report and make it available at the specified endpoint. You are redirected to the Manage Reports page.
  • 5. Running a Report in the Browser • The following steps show you how to run a report from the Manage Reports page in the dashboard. • On the Manage Reports page, click Run for the specified report. • After the report has finished running, the resulting file is saved in the data format that was selected when the report was created. For example, ShippingAPI Usage.csv. This file contains all of the raw analytics data for the parameters you specified in the report.
  • 6. Calling a Report Programmatically • The following steps show you how to call the report’s API endpoint and programmatically retrieve the analytics data.
  • 7. • Open a new terminal window and execute the following command: • TOKEN=$(curl -s https://anypoint.mulesoft.com/accounts/login -d "username=<YOUR-USERNAME>&password=<YOUR-PASSWORD>" | jq -r .access_token) • This command sends a request to the authentication servers of the Anypoint Platform and, if the request is successful, returns an access token that’s stored in the $TOKEN variable. The value of this variable is displayed below:
  • 8. • Once the access token has been received, it must be appended to the Authorization header in the request to the Analytics Reporting API endpoint for your report. To make a request to this endpoint, copy it from the Manage Reports page in the Analytics dashboard. Using the $TOKEN variable from the previous step, include it in the next request as shown below: • curl -H "Authorization: bearer $TOKEN" "https://anypoint.mulesoft.com/analytics/1.0/47f40446-9f0b-43c0-a8ca- c7aea5136f32/events?format=csv&apiIds=2447&startDate=2014-12- 02&endDate=2015-01- 08&fields=Application%20Name.Client%20IP.Resource%20Path > output.csv" • If the request is successful, the response includes a CSV file (as requested) that downloads as a file with the specified name (output.csv) in the directory where the curl request was made.
  • 9. Data Fields for Reports • Your report can query data for one, many, or all of the available data fields. These fields are explained in the table below. •