GetInstrumentationConfigurationStatus
Retrieves the status history for a single instrumentation configuration during a specified time range. The response lists when the configuration was ACTIVE, READY, ERROR, or DISABLED.
If no status or time window is provided, the operation defaults to ACTIVE events from the last hour.
Request Syntax
POST /get-instrumentation-configuration-status HTTP/1.1
Content-type: application/json
{
"EndTime": number,
"Environment": "string",
"InstrumentationType": "string",
"LocationIdentifier": { ... },
"MaxResults": number,
"NextToken": "string",
"Service": "string",
"SignalType": "string",
"StartTime": number,
"Status": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- EndTime
-
The end of the time range to retrieve status events for.
StartTimeandEndTimemust both be provided together or both be omitted. When both are omitted, the time range defaults to the last hour.Type: Timestamp
Required: No
- Environment
-
The environment name for the instrumentation configuration.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes
- InstrumentationType
-
The type of instrumentation configuration (
BREAKPOINTorPROBE). Required to identify the configuration to retrieve.Type: String
Valid Values:
BREAKPOINT | PROBERequired: Yes
- LocationIdentifier
-
The location identifier - either the full code location or a pre-computed location hash.
Type: LocationIdentifier object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: Yes
- MaxResults
-
The maximum number of status events to return in one call. The default is 60.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- NextToken
-
Use the token returned by a previous call to retrieve the next page of status events.
Type: String
Required: No
- Service
-
The service name for the instrumentation configuration.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes
- SignalType
-
The telemetry signal type for instrumentation.
-
SNAPSHOT- Captures a snapshot of the instrumentation point.
Type: String
Valid Values:
SNAPSHOTRequired: Yes
-
- StartTime
-
The start of the time range to retrieve status events for.
StartTimeandEndTimemust both be provided together or both be omitted. When both are omitted, the time range defaults to the last hour.Type: Timestamp
Required: No
- Status
-
The single status to query for. If omitted, only
ACTIVEstatus events are returned.Type: String
Valid Values:
READY | ERROR | ACTIVE | DISABLEDRequired: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"Environment": "string",
"Events": [
{
"ErrorCause": "string",
"Time": number
}
],
"Location": { ... },
"NextToken": "string",
"Service": "string",
"SignalType": "string",
"Status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- Environment
-
The environment echoed from the request.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
- Events
-
The list of status events within the requested time window, sorted with the most recent first. Error events include an error cause.
Type: Array of InstrumentationStatusEvent objects
- Location
-
The code location echoed from the request.
Type: Location object
Note: This object is a Union. Only one member of this object can be specified or returned.
- NextToken
-
Pagination token to continue retrieving status events.
Type: String
- Service
-
The service name echoed from the request.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
- SignalType
-
The telemetry signal type echoed from the request.
Type: String
Valid Values:
SNAPSHOT - Status
-
The status that was queried. If not specified in the request, this is
ACTIVE.Type: String
Valid Values:
READY | ERROR | ACTIVE | DISABLED
Errors
For information about the errors that are common to all actions, see Common Error Types.
- ResourceNotFoundException
-
Resource not found.
- ResourceId
-
Can't find the resource id.
- ResourceType
-
The resource type is not valid.
HTTP Status Code: 404
- ThrottlingException
-
The request was throttled because of quota limits.
HTTP Status Code: 429
- ValidationException
-
The resource is not valid.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: