PluginProbe
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / trunk
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress vtrunk
4.12.0 4.10.0 4.9.0 4.8.1 trunk 1.0 1.1 1.12.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 All 171 releases
custom-facebook-feed / inc / UsageTracking / ReporterInterface.php
ReporterInterface.php
49 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Usage Tracking Reporter Interface
4 *
5 * Implemented by plugin-specific reporters for the Smash Usage Tracking module.
6 *
7 * @package CustomFacebookFeed\UsageTracking
8 * @since 4.0
9 */
10
11 namespace CustomFacebookFeed\UsageTracking;
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 interface ReporterInterface {
18
19 /**
20 * Plugin identifier for payload root (e.g. 'facebook').
21 *
22 * @return string
23 */
24 public function get_plugin_slug();
25
26 /**
27 * Schema version for the report payload.
28 *
29 * @return string
30 */
31 public function get_schema_version();
32
33 /**
34 * Configuration snapshot (environment, settings, sources, extensions, feeds).
35 *
36 * @return array
37 */
38 public function get_configuration_snapshot();
39
40 /**
41 * Dynamic metrics for a time period (performance, errors, events).
42 *
43 * @param string $period_start Start of period (e.g. ISO 8601 or timestamp).
44 * @param string $period_end End of period (e.g. ISO 8601 or timestamp).
45 * @return array
46 */
47 public function get_dynamic_metrics( $period_start, $period_end );
48 }
49