getInstrumentationConfiguration method

Future<GetInstrumentationConfigurationResponse> getInstrumentationConfiguration({
  1. required String environment,
  2. required InstrumentationType instrumentationType,
  3. required LocationIdentifier locationIdentifier,
  4. required String service,
  5. required DynamicInstrumentationSignalType signalType,
})

Returns the details of a single instrumentation configuration identified by service, environment, signal type, and location. Use this to audit or display configuration details.

May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter environment : Environment name for the instrumentation configuration.

Parameter instrumentationType : Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to retrieve.

Parameter locationIdentifier : Location identifier - either full code location or a pre-computed hash.

Parameter service : Service name for the instrumentation configuration.

Parameter signalType : Signal type for the instrumentation configuration.

Implementation

Future<GetInstrumentationConfigurationResponse>
    getInstrumentationConfiguration({
  required String environment,
  required InstrumentationType instrumentationType,
  required LocationIdentifier locationIdentifier,
  required String service,
  required DynamicInstrumentationSignalType signalType,
}) async {
  final $payload = <String, dynamic>{
    'Environment': environment,
    'InstrumentationType': instrumentationType.value,
    'LocationIdentifier': locationIdentifier,
    'Service': service,
    'SignalType': signalType.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/get-instrumentation-configuration',
    exceptionFnMap: _exceptionFns,
  );
  return GetInstrumentationConfigurationResponse.fromJson(response);
}