springBootStarterActuatorQpsAutoConfiguration top-level property

  1. @AutoConfigurationModule(after: ['springBootStarterWebDebugQpsAutoConfiguration'], build: AutoConfigurationBuild('spring.web.debug.qps.enabled', whenMissing: BuildInclusion.never), platform: ModulePlatform.native)
BeanModule springBootStarterActuatorQpsAutoConfiguration
final

The qps endpoint (QpsEndpoint) of the web starter's debug feature qps: in the build by the same property, spring.web.debug.qps.enabled: true, so without the feature the application has neither.

Implementation

@AutoConfigurationModule(
  after: ['springBootStarterWebDebugQpsAutoConfiguration'],
  build: AutoConfigurationBuild(
    'spring.web.debug.qps.enabled',
    whenMissing: BuildInclusion.never,
  ),
  platform: ModulePlatform.native,
)
final BeanModule springBootStarterActuatorQpsAutoConfiguration = BeanModule(
  'springBootStarterActuatorQpsAutoConfiguration',
  [
    BeanDefinition<QpsEndpoint>(
      name: 'qpsEndpoint',
      factoryMethodName: 'qpsEndpoint',
      source: _qps,
      annotations: const [Endpoint(id: 'qps')],
      conditions: const [
        ConditionGroup('$_qps.qpsEndpoint', [
          // In every isolate of a pool: the filter is, the rates are in
          // the first one, asked from the others.
          ConditionalOnBean(RequestRateFilter),
          ConditionalOnMissingBean(QpsEndpoint),
        ]),
      ],
      create: (r) => QpsEndpoint(r.dependency<PrimaryIsolate>()),
      annotatedMethods: [
        BeanMethod<QpsEndpoint>(
          'qps',
          invoke: (bean, _) => bean.qps(),
          annotations: const [ReadOperation()],
        ),
        BeanMethod<QpsEndpoint>(
          'window',
          invoke: (bean, arguments) => bean.window(arguments.single! as String),
          parameters: const [
            BeanParameter(
              'window',
              type: ClassType<String>(),
              isRequired: true,
              annotations: [Selector()],
            ),
          ],
          annotations: const [ReadOperation()],
        ),
      ],
    ),
  ],
);