зеркало из https://github.com/mozilla/glean.git
Merge pull request #2428 from rosahbruno/1823676-server-knobs-for-mobile
This commit is contained in:
Коммит
cf39d7aaa6
|
@ -394,6 +394,16 @@ open class GleanInternalAPI internal constructor() {
|
||||||
return gleanSetSourceTags(tags.toList())
|
return gleanSetSourceTags(tags.toList())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set configuration for metrics' disabled property, typically from a remote_settings
|
||||||
|
* experiment or rollout.
|
||||||
|
*
|
||||||
|
* @param json Stringified JSON map of metrics and their associated `disabled` property.
|
||||||
|
*/
|
||||||
|
fun setMetricsDisabledConfig(json: String) {
|
||||||
|
gleanSetMetricsDisabledConfig(json)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the logPing debug option, when this is `true`
|
* Set the logPing debug option, when this is `true`
|
||||||
* the payload of assembled ping requests get logged.
|
* the payload of assembled ping requests get logged.
|
||||||
|
|
|
@ -312,6 +312,15 @@ public class Glean {
|
||||||
gleanSetSourceTags(tags)
|
gleanSetSourceTags(tags)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Set configuration for metrics' disabled property, typically from remote_settings
|
||||||
|
/// experiment or rollout.
|
||||||
|
///
|
||||||
|
/// - parameters:
|
||||||
|
/// * json: Stringified JSON map of metrics and their associated `disabled` property.
|
||||||
|
public func setMetricsDisabledConfig(_ json: String) {
|
||||||
|
gleanSetMetricsDisabledConfig(json)
|
||||||
|
}
|
||||||
|
|
||||||
/// When applications are launched using the custom URL scheme, this helper function will process
|
/// When applications are launched using the custom URL scheme, this helper function will process
|
||||||
/// the URL and parse the debug commands
|
/// the URL and parse the debug commands
|
||||||
///
|
///
|
||||||
|
|
|
@ -29,6 +29,9 @@ namespace glean {
|
||||||
void glean_set_experiment_inactive(string experiment_id);
|
void glean_set_experiment_inactive(string experiment_id);
|
||||||
RecordedExperiment? glean_test_get_experiment_data(string experiment_id);
|
RecordedExperiment? glean_test_get_experiment_data(string experiment_id);
|
||||||
|
|
||||||
|
// Server Knobs API
|
||||||
|
void glean_set_metrics_disabled_config(string json);
|
||||||
|
|
||||||
boolean glean_set_debug_view_tag(string tag);
|
boolean glean_set_debug_view_tag(string tag);
|
||||||
boolean glean_set_source_tags(sequence<string> tags);
|
boolean glean_set_source_tags(sequence<string> tags);
|
||||||
void glean_set_log_pings(boolean value);
|
void glean_set_log_pings(boolean value);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче