2017 © Pedro Peláez
 

magento-module magento1-mpi

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

image

yireo/magento1-mpi

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  • Thursday, August 17, 2017
  • by yireo
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Yireo MPI (Magento Performance Insights)

This repository contains the sources for a Magento 1 extension, that adds an API to Magento, used by the Magento Performance Insights (MPI) service developed by Yireo. https://www.yireo.com/services/magento-services/magento-performance-insights, (*1)

About the Magento Performance Insights service

The Yireo MPI service allows you to quickly gather numerous metrics from your Magento shop and its hosting environment. With an active MPI subscription, these data are then collected and stored on a private Yireo server. Next, the data are interpreted and presented to you visually on the Yireo site. In the end, you get an overview of performance settings, specific to your environment, and custom personal advice on how to optimize things to the max., (*2)

Authentication

Access to the API is only allowed when a specific secret is added to the URL calls. The secret must be of a length of 10 characters or more, and can be configured in the Magento System Configuration in the section Yireo MPI. After the secret is set, the URLs need to get the additional secret as follows:, (*3)

http://MAGENTO/mpi/index/index/secret/SECRET

Access to the API

There are 2 ways to access the API of this MPI extension. The first method is to call upon the modules URL starting with mpi - this is the MVC method. The second method is to call upon the file yireo_mpi.php - this is the entry-file method., (*4)

MVC method

The index action of the IndexController can be accessed as such:, (*5)

http://MAGENTO/mpi/index/index/secret/SECRET

This gives a listing of all the available metric-groups and their metrics., (*6)

To get all data from the metric-group "basic", use the following:, (*7)

http://MAGENTO/mpi/index/collect/group/basic/secret/SECRET

To get all data from the metric "test", use the following:, (*8)

http://MAGENTO/mpi/index/collect/metric/test/secret/SECRET

Note that one metric might still contain multiple results., (*9)

The API only handles basic GET and POST requests, no fancy REST or JSON-RPC., (*10)

Entry-file method

The entry-file can be accessed as such:, (*11)

http://MAGENTO/yireo_mpi.php

To get all data from the metric-group basic, use the following:, (*12)

http://MAGENTO/yireo_mpi.php?action=collect&group=basic&secret=SECRET

You can use the group all for all resources., (*13)

Format

By default, the output is JSON format. You can switch to a simple PHP dump by changing the format parameter in the URL:, (*14)

http://MAGENTO/mpi/index/index/format/json
http://MAGENTO/mpi/index/index/format/dump

Instructions for using composer

Use composer to install this extension. First make sure to initialize composer with the right settings:, (*15)

composer -n init
composer install --no-dev

Next, modify your local composer.json file:, (*16)

{
    "require": {
        "yireo/magento1-mpi": "dev-master",
        "magento-hackathon/magento-composer-installer": "*"
    },    
    "repositories":[
        {
            "packagist": false
        },
        {
            "type":"composer",
            "url":"https://packages.firegento.com"
        },
        {
            "type":"composer",
            "url":"https://satis.yireo.com"
        }
    ],
    "extra":{
        "magento-root-dir":"/path/to/magento",
        "magento-deploystrategy":"copy"           
    }
}

Make sure to set the magento-root-dir properly. Test this by running:, (*17)

composer update --no-dev

Done., (*18)

The Versions

17/08 2017

dev-master

9999999-dev https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento

15/08 2017

0.2.7

0.2.7.0 https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento

05/11 2016

0.2.6

0.2.6.0 https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento

22/01 2016

0.2.5

0.2.5.0 https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento

31/10 2015

0.2.4

0.2.4.0 https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento

29/09 2015

0.2.2

0.2.2.0 https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento

05/09 2015

0.2.1

0.2.1.0 https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento

04/09 2015

0.2.0

0.2.0.0 https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento

27/08 2015

0.1.4

0.1.4.0 https://www.yireo.com/services/magento-services/magento-performance-insights

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

  Sources   Download

OSL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Jisse Reitsma (Yireo)

composer-installer magento