Jump to content

Metrics Platform/Contextual attributes/PHP

From Wikitech

This page documents the contextual attributes supported by the Metrics Platform PHP client. For property descriptions and types, see the web base schema definition.

The PHP client supports these contextual attributes:[1]

Included automatically:[2]

  • agent_client_platform
  • agent_client_platform_family

Optional:

  • page_id
  • page_title
  • page_namespace
  • page_namespace_name
  • page_revision_id
  • page_wikidata_id
  • page_wikidata_qid
  • page_content_language
  • page_is_redirect
  • page_user_groups_allowed_to_move
  • page_user_groups_allowed_to_edit
  • mediawiki_skin
  • mediawiki_version
  • mediawiki_is_production
  • mediawiki_is_debug_mode
  • mediawiki_database
  • mediawiki_site_content_language
  • mediawiki_site_content_language_variant
  • performer_is_logged_in
  • performer_id
  • performer_name
  • performer_groups
  • performer_is_bot
  • performer_is_temp
  • performer_language
  • performer_language_variant
  • performer_can_probably_edit_page
  • performer_edit_count
  • performer_edit_count_bucket
  • performer_registration_dt
  1. gitlab:repos/data-engineering/metrics-platform/-/blob/main/php/src/StreamConfig/StreamConfig.php
  2. gitlab:repos/data-engineering/metrics-platform/-/blob/main/php/src/ContextController.php