SendAppUsageRequest

pydantic model openapi_client.models.send_app_usage_request.SendAppUsageRequest

POST /usage-metrics body. Keys depend on usageMetricsFor. No schema-level required. cicd reads CREATE, UPDATE, UPDATE_ON_CHANGES, DELETE, IMPORT. sdk reads Action. Both read AdditionalInfo.

Fields:
field create: Optional[Dict[str, Any]] = None (alias 'CREATE')

cicd. Counts of resources created. Missing treated as {}.

field update: Optional[Dict[str, Any]] = None (alias 'UPDATE')

cicd. Combined with UPDATE_ON_CHANGES in the SNS message, not in the HTTP response.

field update_on_changes: Optional[Dict[str, Any]] = None (alias 'UPDATE_ON_CHANGES')

cicd. Added into AmorphicResourcesUpdated with UPDATE.

field delete: Optional[Dict[str, Any]] = None (alias 'DELETE')

cicd. Counts of resources deleted. Missing treated as {}.

field var_import: Optional[Dict[str, Any]] = None (alias 'IMPORT')

cicd. Counts of resources imported. Missing treated as {}.

field action: Optional[StrictStr] = None (alias 'Action')

sdk. API method name. Defaults to N/A when omitted.

field additional_info: Optional[SendAppUsageRequestAdditionalInfo] = None (alias 'AdditionalInfo')
to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of SendAppUsageRequest from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of SendAppUsageRequest from a dict

Return type:

Optional[Self]