forked from GoogleCloudPlatform/k8s-config-connector
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alex Pana <[email protected]>
- Loading branch information
Showing
2 changed files
with
468 additions
and
0 deletions.
There are no files selected for viewing
296 changes: 296 additions & 0 deletions
296
tests/e2e/testdata/scenarios/fields/management/logging/logmetric/set-zero/_http00.log.real
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,296 @@ | ||
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false | ||
User-Agent: kcc/controller-manager | ||
|
||
404 Not Found | ||
Cache-Control: private | ||
Content-Type: application/json; charset=UTF-8 | ||
Server: ESF | ||
Vary: Origin | ||
Vary: X-Origin | ||
Vary: Referer | ||
X-Content-Type-Options: nosniff | ||
X-Frame-Options: SAMEORIGIN | ||
X-Xss-Protection: 0 | ||
|
||
{ | ||
"error": { | ||
"code": 404, | ||
"details": [ | ||
{ | ||
"@type": "type.googleapis.com/google.rpc.DebugInfo", | ||
"detail": "[ORIGINAL ERROR] generic::not_found: Metric logginglogmetric-${uniqueId} does not exist. [google.rpc.error_details_ext] { message: \"Metric logginglogmetric-${uniqueId} does not exist.\" }" | ||
} | ||
], | ||
"message": "Metric logginglogmetric-${uniqueId} does not exist.", | ||
"status": "NOT_FOUND" | ||
} | ||
} | ||
|
||
--- | ||
|
||
POST https://logging.googleapis.com/v2/projects/${projectId}/metrics?alt=json&prettyPrint=false | ||
Content-Type: application/json | ||
User-Agent: kcc/controller-manager | ||
|
||
{ | ||
"bucketOptions": { | ||
"explicitBuckets": { | ||
"bounds": [ | ||
1.5, | ||
4.5 | ||
] | ||
} | ||
}, | ||
"filter": "resource.type=gae_app AND severity\u003c=ERROR", | ||
"labelExtractors": { | ||
"testkey": "EXTRACT(jsonPayload.request)" | ||
}, | ||
"metricDescriptor": { | ||
"displayName": "a concise name", | ||
"labels": [ | ||
{ | ||
"description": "a label description", | ||
"key": "testkey", | ||
"valueType": "STRING" | ||
} | ||
], | ||
"launchStage": "EARLY_ACCESS", | ||
"metadata": { | ||
"ingestDelay": "1s", | ||
"samplePeriod": "1s" | ||
}, | ||
"metricKind": "DELTA", | ||
"valueType": "DISTRIBUTION" | ||
}, | ||
"name": "logginglogmetric-${uniqueId}", | ||
"valueExtractor": "EXTRACT(jsonPayload.response)" | ||
} | ||
|
||
200 OK | ||
Cache-Control: private | ||
Content-Type: application/json; charset=UTF-8 | ||
Server: ESF | ||
Vary: Origin | ||
Vary: X-Origin | ||
Vary: Referer | ||
X-Content-Type-Options: nosniff | ||
X-Frame-Options: SAMEORIGIN | ||
X-Xss-Protection: 0 | ||
|
||
{ | ||
"bucketOptions": { | ||
"explicitBuckets": { | ||
"bounds": [ | ||
1.5, | ||
4.5 | ||
] | ||
} | ||
}, | ||
"createTime": "2024-04-01T12:34:56.123456Z", | ||
"filter": "resource.type=gae_app AND severity\u003c=ERROR", | ||
"labelExtractors": { | ||
"testkey": "EXTRACT(jsonPayload.request)" | ||
}, | ||
"metricDescriptor": { | ||
"displayName": "a concise name", | ||
"labels": [ | ||
{ | ||
"description": "a label description", | ||
"key": "testkey" | ||
} | ||
], | ||
"metricKind": "DELTA", | ||
"name": "projects/${projectId}/metricDescriptors/logging.googleapis.com/user/logginglogmetric-${uniqueId}", | ||
"type": "logging.googleapis.com/user/logginglogmetric-${uniqueId}", | ||
"valueType": "DISTRIBUTION" | ||
}, | ||
"name": "logginglogmetric-${uniqueId}", | ||
"resourceName": "projects/${projectId}/metrics/logginglogmetric-${uniqueId}", | ||
"updateTime": "2024-04-01T12:34:56.123456Z", | ||
"valueExtractor": "EXTRACT(jsonPayload.response)" | ||
} | ||
|
||
--- | ||
|
||
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false | ||
User-Agent: kcc/controller-manager | ||
|
||
200 OK | ||
Cache-Control: private | ||
Content-Type: application/json; charset=UTF-8 | ||
Server: ESF | ||
Vary: Origin | ||
Vary: X-Origin | ||
Vary: Referer | ||
X-Content-Type-Options: nosniff | ||
X-Frame-Options: SAMEORIGIN | ||
X-Xss-Protection: 0 | ||
|
||
{ | ||
"bucketOptions": { | ||
"explicitBuckets": { | ||
"bounds": [ | ||
1.5, | ||
4.5 | ||
] | ||
} | ||
}, | ||
"createTime": "2024-04-01T12:34:56.123456Z", | ||
"filter": "resource.type=gae_app AND severity\u003c=ERROR", | ||
"labelExtractors": { | ||
"testkey": "EXTRACT(jsonPayload.request)" | ||
}, | ||
"metricDescriptor": { | ||
"displayName": "a concise name", | ||
"labels": [ | ||
{ | ||
"description": "a label description", | ||
"key": "testkey" | ||
} | ||
], | ||
"metricKind": "DELTA", | ||
"name": "projects/${projectId}/metricDescriptors/logging.googleapis.com/user/logginglogmetric-${uniqueId}", | ||
"type": "logging.googleapis.com/user/logginglogmetric-${uniqueId}", | ||
"valueType": "DISTRIBUTION" | ||
}, | ||
"name": "logginglogmetric-${uniqueId}", | ||
"resourceName": "projects/${projectId}/metrics/logginglogmetric-${uniqueId}", | ||
"updateTime": "2024-04-01T12:34:56.123456Z", | ||
"valueExtractor": "EXTRACT(jsonPayload.response)" | ||
} | ||
|
||
--- | ||
|
||
PUT https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false | ||
Content-Type: application/json | ||
User-Agent: kcc/controller-manager | ||
|
||
{ | ||
"bucketOptions": { | ||
"explicitBuckets": { | ||
"bounds": [ | ||
1.5, | ||
4.5 | ||
] | ||
} | ||
}, | ||
"createTime": "2024-04-01T12:34:56.123456Z", | ||
"filter": "resource.type=gae_app AND severity\u003c=ERROR", | ||
"labelExtractors": { | ||
"testkey": "EXTRACT(jsonPayload.request)" | ||
}, | ||
"metricDescriptor": { | ||
"displayName": "a concise name", | ||
"labels": [ | ||
{ | ||
"description": "a label description", | ||
"key": "testkey", | ||
"valueType": "STRING" | ||
} | ||
], | ||
"launchStage": "EARLY_ACCESS", | ||
"metadata": { | ||
"ingestDelay": "1s", | ||
"samplePeriod": "1s" | ||
}, | ||
"metricKind": "DELTA", | ||
"valueType": "DISTRIBUTION" | ||
}, | ||
"name": "logginglogmetric-${uniqueId}", | ||
"resourceName": "projects/${projectId}/metrics/logginglogmetric-${uniqueId}", | ||
"updateTime": "2024-04-01T12:34:56.123456Z", | ||
"valueExtractor": "EXTRACT(jsonPayload.response)" | ||
} | ||
|
||
200 OK | ||
Cache-Control: private | ||
Content-Type: application/json; charset=UTF-8 | ||
Server: ESF | ||
Vary: Origin | ||
Vary: X-Origin | ||
Vary: Referer | ||
X-Content-Type-Options: nosniff | ||
X-Frame-Options: SAMEORIGIN | ||
X-Xss-Protection: 0 | ||
|
||
{ | ||
"bucketOptions": { | ||
"explicitBuckets": { | ||
"bounds": [ | ||
1.5, | ||
4.5 | ||
] | ||
} | ||
}, | ||
"createTime": "2024-04-01T12:34:56.123456Z", | ||
"filter": "resource.type=gae_app AND severity\u003c=ERROR", | ||
"labelExtractors": { | ||
"testkey": "EXTRACT(jsonPayload.request)" | ||
}, | ||
"metricDescriptor": { | ||
"displayName": "a concise name", | ||
"labels": [ | ||
{ | ||
"description": "a label description", | ||
"key": "testkey" | ||
} | ||
], | ||
"metricKind": "DELTA", | ||
"name": "projects/${projectId}/metricDescriptors/logging.googleapis.com/user/logginglogmetric-${uniqueId}", | ||
"type": "logging.googleapis.com/user/logginglogmetric-${uniqueId}", | ||
"valueType": "DISTRIBUTION" | ||
}, | ||
"name": "logginglogmetric-${uniqueId}", | ||
"resourceName": "projects/${projectId}/metrics/logginglogmetric-${uniqueId}", | ||
"updateTime": "2024-04-01T12:34:56.123456Z", | ||
"valueExtractor": "EXTRACT(jsonPayload.response)" | ||
} | ||
|
||
--- | ||
|
||
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false | ||
User-Agent: kcc/controller-manager | ||
|
||
200 OK | ||
Cache-Control: private | ||
Content-Type: application/json; charset=UTF-8 | ||
Server: ESF | ||
Vary: Origin | ||
Vary: X-Origin | ||
Vary: Referer | ||
X-Content-Type-Options: nosniff | ||
X-Frame-Options: SAMEORIGIN | ||
X-Xss-Protection: 0 | ||
|
||
{ | ||
"bucketOptions": { | ||
"explicitBuckets": { | ||
"bounds": [ | ||
1.5, | ||
4.5 | ||
] | ||
} | ||
}, | ||
"createTime": "2024-04-01T12:34:56.123456Z", | ||
"filter": "resource.type=gae_app AND severity\u003c=ERROR", | ||
"labelExtractors": { | ||
"testkey": "EXTRACT(jsonPayload.request)" | ||
}, | ||
"metricDescriptor": { | ||
"displayName": "a concise name", | ||
"labels": [ | ||
{ | ||
"description": "a label description", | ||
"key": "testkey" | ||
} | ||
], | ||
"metricKind": "DELTA", | ||
"name": "projects/${projectId}/metricDescriptors/logging.googleapis.com/user/logginglogmetric-${uniqueId}", | ||
"type": "logging.googleapis.com/user/logginglogmetric-${uniqueId}", | ||
"valueType": "DISTRIBUTION" | ||
}, | ||
"name": "logginglogmetric-${uniqueId}", | ||
"resourceName": "projects/${projectId}/metrics/logginglogmetric-${uniqueId}", | ||
"updateTime": "2024-04-01T12:34:56.123456Z", | ||
"valueExtractor": "EXTRACT(jsonPayload.response)" | ||
} |
Oops, something went wrong.