Skip to content

Commit

Permalink
chore: update test data
Browse files Browse the repository at this point in the history
Update the scenario data to match the transition of LoggingLogMetric
to direct actuation.
  • Loading branch information
justinsb committed Jun 4, 2024
1 parent dd97ab1 commit a93f167
Show file tree
Hide file tree
Showing 16 changed files with 464 additions and 1,127 deletions.
Original file line number Diff line number Diff line change
@@ -1,70 +1,5 @@
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

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,
"errors": [
{
"domain": "global",
"message": "logMetric \"projects/${projectId}/metrics/logginglogmetric-${uniqueId}\" not found",
"reason": "notFound"
}
],
"message": "logMetric \"projects/${projectId}/metrics/logginglogmetric-${uniqueId}\" not found",
"status": "NOT_FOUND"
}
}

---

GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

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,
"errors": [
{
"domain": "global",
"message": "logMetric \"projects/${projectId}/metrics/logginglogmetric-${uniqueId}\" not found",
"reason": "notFound"
}
],
"message": "logMetric \"projects/${projectId}/metrics/logginglogmetric-${uniqueId}\" not found",
"status": "NOT_FOUND"
}
}

---

GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5

404 Not Found
Cache-Control: private
Expand All @@ -80,23 +15,16 @@ X-Xss-Protection: 0
{
"error": {
"code": 404,
"errors": [
{
"domain": "global",
"message": "logMetric \"projects/${projectId}/metrics/logginglogmetric-${uniqueId}\" not found",
"reason": "notFound"
}
],
"message": "logMetric \"projects/${projectId}/metrics/logginglogmetric-${uniqueId}\" not found",
"message": "Metric logginglogmetric-${uniqueId} does not exist.",
"status": "NOT_FOUND"
}
}

---

POST https://logging.googleapis.com/v2/projects/${projectId}/metrics?alt=json
POST https://logging.googleapis.com/v2/projects/${projectId}/metrics?alt=json&prettyPrint=false
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1
User-Agent: google-api-go-client/0.5

{
"bucketOptions": {
Expand Down Expand Up @@ -172,9 +100,8 @@ X-Xss-Protection: 0

---

GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5

200 OK
Cache-Control: private
Expand Down Expand Up @@ -221,20 +148,9 @@ X-Xss-Protection: 0

---

GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
PUT https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

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
User-Agent: google-api-go-client/0.5

{
"bucketOptions": {
Expand All @@ -255,74 +171,18 @@ X-Xss-Protection: 0
"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}",
"updateTime": "2024-04-01T12:34:56.123456Z",
"valueExtractor": "EXTRACT(jsonPayload.response)"
}

---

GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

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"
"key": "testkey",
"valueType": "STRING"
}
],
"metricKind": "DELTA",
"name": "projects/${projectId}/metricDescriptors/logging.googleapis.com/user/logginglogmetric-${uniqueId}",
"type": "logging.googleapis.com/user/logginglogmetric-${uniqueId}",
"valueType": "DISTRIBUTION"
},
"name": "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
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

200 OK
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Expand Down Expand Up @@ -368,9 +228,8 @@ X-Xss-Protection: 0

---

GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5

200 OK
Cache-Control: private
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5

200 OK
Cache-Control: private
Expand Down Expand Up @@ -47,9 +46,39 @@ X-Xss-Protection: 0

---

GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
PUT https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1
User-Agent: google-api-go-client/0.5

{
"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",
"valueType": "DISTRIBUTION"
},
"name": "logginglogmetric-${uniqueId}",
"updateTime": "2024-04-01T12:34:56.123456Z",
"valueExtractor": "EXTRACT(jsonPayload.response)"
}

200 OK
Cache-Control: private
Expand Down Expand Up @@ -96,9 +125,8 @@ X-Xss-Protection: 0

---

GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1
GET https://logging.googleapis.com/v2/projects/${projectId}/metrics/logginglogmetric-${uniqueId}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5

200 OK
Cache-Control: private
Expand Down
Loading

0 comments on commit a93f167

Please sign in to comment.